summaryrefslogtreecommitdiff
path: root/2459/CH4/EX4.3/Ex4_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '2459/CH4/EX4.3/Ex4_3.sce')
-rw-r--r--2459/CH4/EX4.3/Ex4_3.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2459/CH4/EX4.3/Ex4_3.sce b/2459/CH4/EX4.3/Ex4_3.sce
new file mode 100644
index 000000000..274385a96
--- /dev/null
+++ b/2459/CH4/EX4.3/Ex4_3.sce
@@ -0,0 +1,18 @@
+//chapter4
+//example4.3
+//page69
+
+Vm=1000 // V
+rp=500 // ohm
+Rl=4500 // ohm
+
+Im=Vm/(rp+Rl) // in A
+Idc=Im/%pi // in A
+Idc_mA=Idc*1000 // in mA
+Irms=Im/2 // since ac current is equal to rms current
+Irms_mA=Irms*1000 // in mA
+W=Irms^2*(rp+Rl) // in watts
+
+printf("dc ammeter reading = %.3f A or %.3f mA \n",Idc,Idc_mA)
+printf("reading of ac ammeter = %.3f A or %.3f mA \n",Irms,Irms_mA)
+printf("reading of wattmeter = %.3f W",W)