blob: 3cd1eb74a5896efdc790add5e9e1f45a4cd4708f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clear
//
//given and derived from the circuit in the figure
ish=2
ia=77 //75+2
ra=0.15
v=200
e=v+ia*ra
//when dc machine runs as a motor
ia=73 //75-2
eb=v-(ia*ra)
//n1 and n2 are the speeds at which the motor is operating as a generator and motor
n1=211.55
n2=189.05
p=n1/n2
printf("\n %0.3f ",p)
|