blob: 2e10794f6868363e36f4adc6ffab480e4023f7bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
clear
//input
a=20*10^-4 //area
n=900 //number of turns
b=5*10^-2 //flux density
i=4.5 //current
//calculation
e=b*a*n*2*%pi*30//emf induced
p=e*i//power output
//output
printf("the emf induced is %3.3f V",e)
printf("\n the power output is %3.3f W",p)
|