summaryrefslogtreecommitdiff
path: root/3809/CH5/EX5.4/EX5_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH5/EX5.4/EX5_4.sce')
-rw-r--r--3809/CH5/EX5.4/EX5_4.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3809/CH5/EX5.4/EX5_4.sce b/3809/CH5/EX5.4/EX5_4.sce
new file mode 100644
index 000000000..0d7a9c429
--- /dev/null
+++ b/3809/CH5/EX5.4/EX5_4.sce
@@ -0,0 +1,15 @@
+//Chapter 5, Example 5.4
+
+clc
+//Initialisation'
+n=400 //no of turns
+l=200*10**-3 //mean circumference
+pi=3.14 //pi
+uo=4*pi*10**-7 //dielectric constant
+a=30*10**-6 //area
+
+//Calculation
+L=(uo*a*n**2)/l //inductance
+
+//Results
+printf("Inductance L = %d uH",L*10**6)