From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3754/CH21/EX21.1/21_1.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 3754/CH21/EX21.1/21_1.sce (limited to '3754/CH21/EX21.1/21_1.sce') diff --git a/3754/CH21/EX21.1/21_1.sce b/3754/CH21/EX21.1/21_1.sce new file mode 100644 index 000000000..784037c28 --- /dev/null +++ b/3754/CH21/EX21.1/21_1.sce @@ -0,0 +1,22 @@ +clear// + +//Variables + +RL = 100.0 //Resistance (in ohm) +Vm = 300.0 //Maximum voltage (in volts) +P1 = 25.0 //Load power1 (in watt) +P2 = 80.0 //Load power2 (in watt) + +//Calculation + +Vdc = Vm / (2 * %pi) //dc voltage (in volts) +//When power is 25 watt +cosinealpha = (P1 * RL / Vdc**2)**0.5 -1 //cos of alpha +alpha = acos(cosinealpha) //Value of alpha (in radians) + +//When power is 80 watt +cosinealpha1 = (P2 * RL / Vdc**2)**0.5 -1 //cos of alpha +alpha1 = acos(cosinealpha1) //Value of alpha (in radians) +//Result + +printf("\n Angular firing control when load power P = 25 W is %0.2f degree.\nAngular firing control when load power P = 80 W is %0.2f degree.",alpha*180.0/%pi,alpha1*180.0/%pi) -- cgit