summaryrefslogtreecommitdiff
path: root/2459/CH23/EX23.5/Ex23_5.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /2459/CH23/EX23.5/Ex23_5.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '2459/CH23/EX23.5/Ex23_5.sce')
-rw-r--r--2459/CH23/EX23.5/Ex23_5.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/2459/CH23/EX23.5/Ex23_5.sce b/2459/CH23/EX23.5/Ex23_5.sce
new file mode 100644
index 000000000..e3b2db276
--- /dev/null
+++ b/2459/CH23/EX23.5/Ex23_5.sce
@@ -0,0 +1,22 @@
+//chapter23
+//example23.5
+//page515
+
+Vm=400 // V
+v=150 // V
+R_L=200 // ohm
+
+// since v=Vm*sin(theta), we get
+
+theta=asin(v/Vm)*180/%pi // in terms of degrees
+
+V_av=Vm*(1+cos(theta*%pi/180))/(2*%pi)
+I_av=V_av/R_L
+P=V_av*I_av
+
+printf("firing angle = %.2f degrees \n",theta)
+printf("average output voltage = %.3f V \n",V_av)
+printf("average current for load of 200 ohm = %.3f A \n",I_av)
+printf("power output = %.3f W \n",P)
+
+// the accurate answer for power output is 75.250 W but in book it is given as 75.15 W