summaryrefslogtreecommitdiff
path: root/226/CH3/EX3.26/example26_sce.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /226/CH3/EX3.26/example26_sce.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '226/CH3/EX3.26/example26_sce.sce')
-rwxr-xr-x226/CH3/EX3.26/example26_sce.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/226/CH3/EX3.26/example26_sce.sce b/226/CH3/EX3.26/example26_sce.sce
new file mode 100755
index 000000000..69ba0b5b4
--- /dev/null
+++ b/226/CH3/EX3.26/example26_sce.sce
@@ -0,0 +1,16 @@
+//chapter 3
+//example 3.26
+//page 130
+printf("\n")
+printf("given")
+E=12;Vf=.7;Rl=47*10^3;f=5000;
+Vo=2*(E-Vf)
+Il=Vo/Rl
+disp(" capacitor discharge time")
+t=1/(2*f)
+disp(" for 1% ripple allow .5% due to discharge of C2 ,.5%due to discharge of C1")
+Vc=(.5*Vo)/100
+C2=((Il*t)/Vc)*10^6;
+printf(" value of capacitor C2 is %3.2fuF\n",C2)
+C1=2*C2;
+printf("value of capacitor C1 is %3.2fuF\n",C1) \ No newline at end of file