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 /275/CH6/EX6.6.31 | |
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 '275/CH6/EX6.6.31')
-rwxr-xr-x | 275/CH6/EX6.6.31/Ch6_6_31.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/275/CH6/EX6.6.31/Ch6_6_31.sce b/275/CH6/EX6.6.31/Ch6_6_31.sce new file mode 100755 index 000000000..135db3c23 --- /dev/null +++ b/275/CH6/EX6.6.31/Ch6_6_31.sce @@ -0,0 +1,13 @@ +clc
+disp("Example 6.31")
+printf("\n")
+disp("calculate output voltage for given specification")
+printf("given")
+disp("Rf=360k,R1=120k,Vi=0.5,0.6sin314t,-0.3")
+Rf=360*10^3
+R1=120*10^3
+Af=1+(Rf/R1)
+t=0 //initialise t value
+Vi=[0.5, 0.6*cos(314*t),-0.3]
+Vo=Af*Vi //calculate output voltage
+printf("output voltage =%f volt,\n%f volt,\n%f volt",Vo)
|