summaryrefslogtreecommitdiff
path: root/1853/CH4/EX4.24/Ex4_24.sce
diff options
context:
space:
mode:
Diffstat (limited to '1853/CH4/EX4.24/Ex4_24.sce')
-rwxr-xr-x1853/CH4/EX4.24/Ex4_24.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1853/CH4/EX4.24/Ex4_24.sce b/1853/CH4/EX4.24/Ex4_24.sce
new file mode 100755
index 000000000..0d26acc5e
--- /dev/null
+++ b/1853/CH4/EX4.24/Ex4_24.sce
@@ -0,0 +1,10 @@
+
+//determine the supply voltage
+V=200;//ohms
+L=0.4;//henry
+I=0.5;//ampss
+f=50;//hertz
+Z=V/I
+X=2*%pi*f*L
+R=sqrt(Z^2+X^2)
+disp('Resistance = '+string(R)+'ohms')