summaryrefslogtreecommitdiff
path: root/3871/CH5/EX5.4/Ex5_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3871/CH5/EX5.4/Ex5_4.sce')
-rw-r--r--3871/CH5/EX5.4/Ex5_4.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3871/CH5/EX5.4/Ex5_4.sce b/3871/CH5/EX5.4/Ex5_4.sce
new file mode 100644
index 000000000..9653f766d
--- /dev/null
+++ b/3871/CH5/EX5.4/Ex5_4.sce
@@ -0,0 +1,22 @@
+//===========================================================================
+//chapter 5 example 4
+clc;clear all;
+
+//variable declaration
+Vac = 500; //voltage in V
+Iac = 0.1; //current in A
+f = 50; //frequency in Hz
+L = 0.8; //inductance in H
+Vdc = 300; //voltage in V
+Z =5000;
+
+//calculations
+W = 2*(%pi)*f*L;
+R = (sqrt((Z^2)-(W^2))); //resistance in Ω
+Idc = Vdc/(R); //instrument current in A
+V = (Vac/(Iac))*(Idc); //Reading of instrument when connected to 300V in V
+
+//result
+mprintf("Reading of instrument when connected to 300V = %3.1f V",V);
+
+