<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Excercises Electric Machinery Fundamentals
Chapter 3
Problem 3-10
Step1:  Description
In the early days of ac motor development, machine designers had great difficulty controlling the core losses (hysteresis and eddy currents) in machines. They had not yet developed steels with low hysteresis, and were not making laminations as thin as the ones used today. To help control these losses, early ac motors in the USA were run from a 25 Hz ac power supply, while lighting systems were run from a separate 60 Hz ac power supply.
Step2:  (a)
Develop a table showing the speed of magnetic field rotation in ac machines of 2, 4, 6, 8, 10, 12, and 14 poles operating at 25 Hz. 
What was the fastest rotational speed available to these early motors?
(b)
For a given motor operating at a constant flux density B.
How would the core losses of the motor running at 25 Hz compare to the core losses of the motor running at 60 Hz?
(c)
Why did the early engineers provide a separate 60 Hz power system for lighting?
SOLUTION
(a)
The equation relating the speed of magnetic field rotation to the number of poles and electrical frequency is
Step3:  Alternatively (and much simpler) you can use the "max()" function
Step4:  (b)
Core losses scale according to the ${1.5}^{th}$ power of the speed of rotation, so the ratio of the core losses at 25 Hz to the core losses at 60 Hz (for a given machine) would be
<ASSISTANT_TASK:>
Python Code:
%pylab notebook
Explanation: Excercises Electric Machinery Fundamentals
Chapter 3
Problem 3-10
End of explanation
fe_25 = 25 # [Hz]
fe_60 = 60 # [Hz]
Explanation: Description
In the early days of ac motor development, machine designers had great difficulty controlling the core losses (hysteresis and eddy currents) in machines. They had not yet developed steels with low hysteresis, and were not making laminations as thin as the ones used today. To help control these losses, early ac motors in the USA were run from a 25 Hz ac power supply, while lighting systems were run from a separate 60 Hz ac power supply.
End of explanation
P = array([2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0])
n = 120*fe_25 / P
print('''
|-----------------+--------------|
| Number of Poles |     n_m      |
|-----------------+--------------|''')
# We use a simple for-loop to print a row per result:
for i in range(7):
    print('|       {:2.0f}        | {:6.1f} r/min |'.format(P[i], n[i]))            
print('|================================|') 
# for-loop is used to find the max value:
n_max_25 = 0
for i in range(7):
    if n[i] > n_max_25:
        n_max_25 = n[i]
print('''
The highest possible rotational speed was {:.0f} r/min.
=====================================================
'''.format(n_max_25))
Explanation: (a)
Develop a table showing the speed of magnetic field rotation in ac machines of 2, 4, 6, 8, 10, 12, and 14 poles operating at 25 Hz. 
What was the fastest rotational speed available to these early motors?
(b)
For a given motor operating at a constant flux density B.
How would the core losses of the motor running at 25 Hz compare to the core losses of the motor running at 60 Hz?
(c)
Why did the early engineers provide a separate 60 Hz power system for lighting?
SOLUTION
(a)
The equation relating the speed of magnetic field rotation to the number of poles and electrical frequency is:
$$n_m = \frac{120f_e}{p}$$
End of explanation
max(n)
Explanation: Alternatively (and much simpler) you can use the "max()" function:
End of explanation
r = 1.5         # 1.5th power of the speed of rotation
n_max_60 = n_max_25 * (fe_60/fe_25)
ratio = (n_max_25 / n_max_60)**r
print('''
ratio = {:.3f} or {:.1f} %
=======================
'''.format(ratio ,ratio*100))
Explanation: (b)
Core losses scale according to the ${1.5}^{th}$ power of the speed of rotation, so the ratio of the core losses at 25 Hz to the core losses at 60 Hz (for a given machine) would be:
$$\text{ratio} = \left(\frac{n_\text{m,25}}{n_\text{m,60}}\right)^{1.5}$$
End of explanation
<END_TASK>