diff options
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)
|