From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 215/CH15/EX15.1/ex15_1.sce | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 215/CH15/EX15.1/ex15_1.sce (limited to '215/CH15/EX15.1/ex15_1.sce') diff --git a/215/CH15/EX15.1/ex15_1.sce b/215/CH15/EX15.1/ex15_1.sce new file mode 100755 index 000000000..c500be9d6 --- /dev/null +++ b/215/CH15/EX15.1/ex15_1.sce @@ -0,0 +1,20 @@ +clc +//Example 15.1 +//Install Symbolic toolbox +//Calculate the voltage +//From figure 15.3 +//Writing the KVL equation for the voltage and taking the Laplace transform +syms s +s=%s +disp('V=(2*s*(s+9.5)/((s+8)*(s+0.5)))-2') +//On solving +V=(2*s-8)/((s+8)*(s+0.5)) +Vp=pfss (V) +Vp1=ilaplace(Vp(1)) +Vp2=ilaplace(Vp(2)) +v=Vp1+Vp2 +disp(v,'v(t)=') + + + + -- cgit