diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3769/CH13/EX13.29/Ex13_29.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3769/CH13/EX13.29/Ex13_29.sce')
-rw-r--r-- | 3769/CH13/EX13.29/Ex13_29.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/3769/CH13/EX13.29/Ex13_29.sce b/3769/CH13/EX13.29/Ex13_29.sce new file mode 100644 index 000000000..10a34dd12 --- /dev/null +++ b/3769/CH13/EX13.29/Ex13_29.sce @@ -0,0 +1,21 @@ +clear +//Given +R1=10.0 //ohm +R2=5.0 //ohm +R3=15 //ohm +Ev=200 + +//Calculation +// +R=R1+R2+R3 +X=R3-(R1+R3) +Z=sqrt(R**2+R1**2) +Iv=Ev/Z +T=X/R +a=-atan(T)*180/3.14 +b=cos(a*3.14/180.0) +P=Iv**2*R +printf("\n (i) Circuit current is %0.2f A",Iv) +printf("\n (ii) Circuit phase angle is %0.2f degree lead",a) +printf("\n (iii)Phase angle between applied voltage and circuit current %0.3f lead",b) +printf("\n (iv)Power consumed is %0.3f W",P) |