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 /226/CH3/EX3.12/example12_sce.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 '226/CH3/EX3.12/example12_sce.sce')
-rwxr-xr-x | 226/CH3/EX3.12/example12_sce.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/226/CH3/EX3.12/example12_sce.sce b/226/CH3/EX3.12/example12_sce.sce new file mode 100755 index 000000000..45b886e50 --- /dev/null +++ b/226/CH3/EX3.12/example12_sce.sce @@ -0,0 +1,13 @@ +//chapter 3
+//example 3.12
+//page 97
+printf("\n")
+printf("given")
+Eo=20;Il=40*10^-3;R1=22;Vr=2;C1=150*10^-6;C2=C1;fr=120;
+Vo=Eo-Il*R1;
+vi=Vr/3.14
+Xc2=1/(2*3.14*fr*C2)
+vo=(vi*Xc2)/sqrt((R1^2) + (Xc2^2))
+printf(" dc output voltage is %3.3fV\n",vo)
+Vpp=2*vo;
+printf(" peak to peak voltage is %3.3fV\n",Vpp)
\ No newline at end of file |