summaryrefslogtreecommitdiff
path: root/3640/CH8/EX8.2/Ex8_2.sce
blob: 0c60516a083d68f3e5f6c52bdc33ad39b32ce086 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clc
x=0.01 //length in metres
L=0.03+(270*x*x) //equation provided in the textbook
mprintf("L(0.01)=%fH\n",L)
w=377 //angular  frequency in rad/sec
XL=w*L
mprintf("XL=wL=%fΩ\n",XL)//ans may vary due to toundoff error
I=1 //current in ampere
V=I*XL
mprintf("V=IXL=%fV\n",V)//ans may vary due to toundoff error
a=540 //comes from an equation in textbook,unit is henry/metre
f=(1/2)*(a*x)
mprintf("f=%fN\n",f)