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 --- 3673/CH6/EX6.a.2/Example_a_6_2.sce | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 3673/CH6/EX6.a.2/Example_a_6_2.sce (limited to '3673/CH6/EX6.a.2/Example_a_6_2.sce') diff --git a/3673/CH6/EX6.a.2/Example_a_6_2.sce b/3673/CH6/EX6.a.2/Example_a_6_2.sce new file mode 100644 index 000000000..23575d587 --- /dev/null +++ b/3673/CH6/EX6.a.2/Example_a_6_2.sce @@ -0,0 +1,24 @@ +//Example_a_6_2 page no:234 +clc; +I=5; +Z1mag=10; +Z1ang=-60; +Z2mag=16; +Z2ang=70; +Z1real=Z1mag*cosd(Z1ang); +Z1img=Z1mag*sind(Z1ang); +Z1=Z1real+(Z1img*%i); +Z2real=Z2mag*cosd(Z2ang); +Z2img=Z2mag*sind(Z2ang); +Z2=Z2real+(Z2img*%i); +Z=Z1+Z2; +Zmag=sqrt(real(Z)^2+imag(Z)^2); +pf=real(Z)/Zmag; +active_power=I^2*real(Z); +apparent_power=I^2*Zmag; +reactive_power=I^2*imag(Z); +disp(pf,"the power factor is "); +disp(active_power,"the active power is (in W)"); +disp(apparent_power,"the apparent power is (in VA)"); +disp(reactive_power,"the reactive power is (in VAR)"); +disp("the calculated values varies slightly with textbook hence values are rounded off in text book"); -- cgit