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