blob: 4e14e219a0839e49a41cf8631217dc3d878f457e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear
//
//e=b*l*u*sin(angle)
b=0.5
l=40
u=1.5
//when angle=90 sin(90)=1=s
s=1
e=b*l*u*s
printf("\n e= %0.1f V",e)
//when angle=30 sin(angle)=s=0.5
s=0.5
e=b*l*u*s
printf("\n e= %0.1f V",e)
|