summaryrefslogtreecommitdiff
path: root/3640/CH8/EX8.2/Ex8_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3640/CH8/EX8.2/Ex8_2.sce')
-rw-r--r--3640/CH8/EX8.2/Ex8_2.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3640/CH8/EX8.2/Ex8_2.sce b/3640/CH8/EX8.2/Ex8_2.sce
new file mode 100644
index 000000000..0c60516a0
--- /dev/null
+++ b/3640/CH8/EX8.2/Ex8_2.sce
@@ -0,0 +1,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)
+
+