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 /1733/CH7/EX7.4/7_4.sce | |
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 '1733/CH7/EX7.4/7_4.sce')
-rwxr-xr-x | 1733/CH7/EX7.4/7_4.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/1733/CH7/EX7.4/7_4.sce b/1733/CH7/EX7.4/7_4.sce new file mode 100755 index 000000000..b72e98ad9 --- /dev/null +++ b/1733/CH7/EX7.4/7_4.sce @@ -0,0 +1,23 @@ +//7.4
+clc;
+V=230;
+R=60;
+Po_max=V^2/R;
+disp('When power output is 400')
+Po=400;
+Duty_cycle=Po/Po_max;
+printf("Duty cycle=%.4f", Duty_cycle)
+Ton=0.4537;
+T=1;
+Toff=1-Ton;
+Ratio=Ton/Toff;
+printf("\nRatio of Ton and Toff when power output is 400=%.4f", Ratio)
+disp('When power output is 700')
+Po=700;
+Duty_cycle=Po/Po_max;
+printf("Duty cycle=%.4f", Duty_cycle)
+Ton=0.794;
+T=1;
+Toff=1-Ton;
+Ratio=Ton/Toff;
+printf("\nRatio of Ton and Toff when power output is 700=%.4f", Ratio)
\ No newline at end of file |