diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1076/CH13/EX13.15 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1076/CH13/EX13.15')
-rwxr-xr-x | 1076/CH13/EX13.15/13_15.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/1076/CH13/EX13.15/13_15.sce b/1076/CH13/EX13.15/13_15.sce new file mode 100755 index 000000000..c6e1a3453 --- /dev/null +++ b/1076/CH13/EX13.15/13_15.sce @@ -0,0 +1,25 @@ +clear
+clc
+
+P=50
+pe=100
+
+
+E=10
+x=1
+e=1e-3
+
+d0=30/180 * %pi
+while (E>e)
+ f=cos(d0)+cos(x) - ((%pi - d0-x)*sin(x))
+ df= (-%pi+d0+x)*cos(x)
+ x1=x-(f/df)
+
+ E=abs(x1-x)
+ x=x1
+end
+d1=x1 * 180/%pi
+
+P1=sind(d1) *pe
+Pr=P1-P
+mprintf("\nPower Required = %.2f MW",Pr)
|