summaryrefslogtreecommitdiff
path: root/2096/CH1/EX1.40/ex_1_40.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2096/CH1/EX1.40/ex_1_40.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 '2096/CH1/EX1.40/ex_1_40.sce')
-rwxr-xr-x2096/CH1/EX1.40/ex_1_40.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2096/CH1/EX1.40/ex_1_40.sce b/2096/CH1/EX1.40/ex_1_40.sce
new file mode 100755
index 000000000..e16de9ecd
--- /dev/null
+++ b/2096/CH1/EX1.40/ex_1_40.sce
@@ -0,0 +1,14 @@
+//Example 1.40://output amlitude,output frequency and phase lag
+clc;
+clear;
+f=0.6;//frequency in hertz
+w=2*%pi*f;//frequency in rad/s
+t=1;//
+I1=sin(w*t);//current
+r= ((8/((%i*w)^2+(4*%i*w)+20)));//ratio of out put current to input current
+rm=sqrt(0.724^2+1.885^2);//magnitude
+rp=atand(1.885/0.724);//pahse lag
+Mo= 1/rm;//magnitude of output
+disp(w,"output frequency in rad/s")
+disp(Mo,"magnitude of amplitude is")
+disp(rp,"pahse lag in degree is")