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 /2297/CH2/EX2.10/Ex2_10.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 '2297/CH2/EX2.10/Ex2_10.sce')
-rwxr-xr-x | 2297/CH2/EX2.10/Ex2_10.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/2297/CH2/EX2.10/Ex2_10.sce b/2297/CH2/EX2.10/Ex2_10.sce new file mode 100755 index 000000000..260b191f8 --- /dev/null +++ b/2297/CH2/EX2.10/Ex2_10.sce @@ -0,0 +1,17 @@ +// Example 2.10 :current equation +clc; +close; +clear; +// given : +format('v',5) +v=100;//volts +r=50;//in ohms +l=0.1;//henry +c=50;//mf +d=poly(0,"d") +p=2*10^5+500*d+d^2; +x=roots(p) +c1=0;//at t=0 i=0 +c2=1000/imag(x(1,1));// +disp("it= "+string(c2)+"*e^"+string(real(x(1,1)))+"t*sin"+string(imag(x(1,1)))+"t A") + |