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 /887/CH3/EX3.2 | |
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 '887/CH3/EX3.2')
-rwxr-xr-x | 887/CH3/EX3.2/3_2.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/887/CH3/EX3.2/3_2.sce b/887/CH3/EX3.2/3_2.sce new file mode 100755 index 000000000..91f1a7b23 --- /dev/null +++ b/887/CH3/EX3.2/3_2.sce @@ -0,0 +1,19 @@ +clc
+//ex3.2
+C=0.1*10^-6;
+//symbolic integration cannot be done in scilab
+t=[0:0.001*10^-3:3*%pi*10^-4];
+i=0.5*sin((10^4)*t);
+//on integrating 'i' w.r.t t
+q=0.5*10^-4*(1-cos(10^4*t));
+C=10^-7;
+V=q/C;
+subplot(221)
+plot(t,q*10^6)
+xtitle('charge vs time','time in seconds','charge in Mc') //Mc=micro coulombs(10^-6)
+subplot(222)
+plot(t,i)
+xtitle('current vs time','time in seconds','current in amperes') //Mc=micro coulombs(10^-6)
+subplot(223)
+xtitle('voltage vs time','time in seconds','voltage in volts')
+plot(t,V)
|