summaryrefslogtreecommitdiff
path: root/3836/CH15/EX15.3/Ex15_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3836/CH15/EX15.3/Ex15_3.sce')
-rw-r--r--3836/CH15/EX15.3/Ex15_3.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3836/CH15/EX15.3/Ex15_3.sce b/3836/CH15/EX15.3/Ex15_3.sce
new file mode 100644
index 000000000..64890dd67
--- /dev/null
+++ b/3836/CH15/EX15.3/Ex15_3.sce
@@ -0,0 +1,16 @@
+clear
+//
+
+//Initialisation
+f=100 //frequency
+l=25*10**-3 //Inductance
+Vl=5 //AC Voltage (Sine)
+
+//Calculation
+w=2*%pi*f //Angular Frequency
+Xl=w*l //Reactance
+Il=Vl*Xl**-1
+
+//Result
+printf("\n Peak Current, IL = %d mA",Il*10**3)
+