diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /269/CH7 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '269/CH7')
-rw-r--r-- | 269/CH7/EX7.1/example1.sce | 10 | ||||
-rw-r--r-- | 269/CH7/EX7.10/example10.sce | 5 | ||||
-rw-r--r-- | 269/CH7/EX7.11/example11.sce | 3 | ||||
-rw-r--r-- | 269/CH7/EX7.12/example12.sce | 10 | ||||
-rw-r--r-- | 269/CH7/EX7.13/example13.sce | 7 | ||||
-rw-r--r-- | 269/CH7/EX7.14/example14.sce | 10 | ||||
-rw-r--r-- | 269/CH7/EX7.2/example2.sce | 6 | ||||
-rw-r--r-- | 269/CH7/EX7.3/example3.sce | 7 | ||||
-rw-r--r-- | 269/CH7/EX7.4/example4.sce | 5 | ||||
-rw-r--r-- | 269/CH7/EX7.5/example5.sce | 9 | ||||
-rw-r--r-- | 269/CH7/EX7.7/example7.sce | 5 | ||||
-rw-r--r-- | 269/CH7/EX7.8/example8.sce | 4 | ||||
-rw-r--r-- | 269/CH7/EX7.9/example9.sce | 4 |
13 files changed, 85 insertions, 0 deletions
diff --git a/269/CH7/EX7.1/example1.sce b/269/CH7/EX7.1/example1.sce new file mode 100644 index 000000000..01d741e35 --- /dev/null +++ b/269/CH7/EX7.1/example1.sce @@ -0,0 +1,10 @@ +Syms t s
+disp('given')
+disp('u(t)=1 for t>=0 else its 0')
+y=laplace(1,t,s)
+disp("The laplace is")
+disp(y)
+disp('similarly')
+disp('laplace of V0 is')
+x=laplace('V0',t,s)
+disp(x)
diff --git a/269/CH7/EX7.10/example10.sce b/269/CH7/EX7.10/example10.sce new file mode 100644 index 000000000..726238167 --- /dev/null +++ b/269/CH7/EX7.10/example10.sce @@ -0,0 +1,5 @@ +syms t
+s=%s
+disp('Heavisides expansion')
+[A]=pfss((2*s^2+3*s+2)/((s+1)^3))
+disp(A(1))
\ No newline at end of file diff --git a/269/CH7/EX7.11/example11.sce b/269/CH7/EX7.11/example11.sce new file mode 100644 index 000000000..022211b63 --- /dev/null +++ b/269/CH7/EX7.11/example11.sce @@ -0,0 +1,3 @@ +s=%s
+[A]=pfss((s+2)/(s^2+2*s+1)*(s+3))
+disp([A])
diff --git a/269/CH7/EX7.12/example12.sce b/269/CH7/EX7.12/example12.sce new file mode 100644 index 000000000..88982695f --- /dev/null +++ b/269/CH7/EX7.12/example12.sce @@ -0,0 +1,10 @@ +Syms t,s
+//on applying KVL we get the laplace transformed current as
+disp(' the laplace transformed current equation is i(s)=s^2+6s+5/(s*(s^2+4s+5))')
+//by partial fraction method
+[A]=pfss(s^2+6*s+5/((s)*(s^2+4*s+5)))
+b=ilt(A (1),s,t)
+c=ilt(A(2),s,t)
+d=b+c
+disp('the time domain expression is')
+disp(d)
diff --git a/269/CH7/EX7.13/example13.sce b/269/CH7/EX7.13/example13.sce new file mode 100644 index 000000000..69f7e948e --- /dev/null +++ b/269/CH7/EX7.13/example13.sce @@ -0,0 +1,7 @@ +Syms t,s
+//by network equations
+disp('by network equations i(s)=1/(s+1)^2+1')
+[A]=pfss((1*s^0+0)/((s+1)^2+1))
+b=ilt(A(1),s,t)
+disp('The inverse laplace is')
+disp(b)
diff --git a/269/CH7/EX7.14/example14.sce b/269/CH7/EX7.14/example14.sce new file mode 100644 index 000000000..7f498c1b6 --- /dev/null +++ b/269/CH7/EX7.14/example14.sce @@ -0,0 +1,10 @@ +Syms t,s
+disp('by network equations kvl and kcl ')
+disp('i2(s)=1000/s*(s^2+40s+300)')
+[A]=pfss((1000*s^0+0)/((s*(s+10)*(s+30))))
+x=ilt(A(1),s,t)
+y=ilt(A(2),s,t)
+z=ilt(A(3),s,t)
+f=x+y+z
+disp('the timedomain expression is')
+disp(f)
diff --git a/269/CH7/EX7.2/example2.sce b/269/CH7/EX7.2/example2.sce new file mode 100644 index 000000000..a2c05ba11 --- /dev/null +++ b/269/CH7/EX7.2/example2.sce @@ -0,0 +1,6 @@ +Syms t,s
+disp('given')
+disp(' f(t)= e^at ,a>0')
+disp('laplace of f(t) is')
+y=laplace('exp(a*t)', t,s)
+disp(y)
diff --git a/269/CH7/EX7.3/example3.sce b/269/CH7/EX7.3/example3.sce new file mode 100644 index 000000000..8071dfa45 --- /dev/null +++ b/269/CH7/EX7.3/example3.sce @@ -0,0 +1,7 @@ +Syms t s
+disp('f1(t)=coswt , f2(t)=sinwt')
+disp('laplace of f1(t) and f2(t) are')
+y=laplace('cos(w*t)',t,s)
+z=laplace('sin(w*t)',t,s)
+disp(y)
+disp(z)
diff --git a/269/CH7/EX7.4/example4.sce b/269/CH7/EX7.4/example4.sce new file mode 100644 index 000000000..38fed5ca4 --- /dev/null +++ b/269/CH7/EX7.4/example4.sce @@ -0,0 +1,5 @@ +Syms s t
+disp('given')
+disp('i(s)=V/R/s+(1/RC) for t>=0')
+z=ilt('(V/R*s^0+0)/(s+(1/RC))',s,t)
+disp(z,"z(t)=")
diff --git a/269/CH7/EX7.5/example5.sce b/269/CH7/EX7.5/example5.sce new file mode 100644 index 000000000..294376891 --- /dev/null +++ b/269/CH7/EX7.5/example5.sce @@ -0,0 +1,9 @@ +Syms t,s
+disp('By KVL the current equation is')
+disp('V/L*(1/s*(s+R/L))')
+//by partial fraction method the expression is split as k0/s+k1/s+(R/L)
+//The values of k0=V/R and k1=-V/R
+//taking inverse laplace
+disp('inverse laplace is')
+z=ilt('(V/R*s^0)/s-(V/R*s^0)/(s+(R/L))',s,t)
+disp(z,"z(t)=")
diff --git a/269/CH7/EX7.7/example7.sce b/269/CH7/EX7.7/example7.sce new file mode 100644 index 000000000..2bc84c65a --- /dev/null +++ b/269/CH7/EX7.7/example7.sce @@ -0,0 +1,5 @@ +syms t
+s=%s
+[A]=pfss((2*s+3)/(s^2+3*s+2))
+disp(A(1))
+disp(A(2))
\ No newline at end of file diff --git a/269/CH7/EX7.8/example8.sce b/269/CH7/EX7.8/example8.sce new file mode 100644 index 000000000..2850d2b4d --- /dev/null +++ b/269/CH7/EX7.8/example8.sce @@ -0,0 +1,4 @@ +syms t
+s=%s
+[A]=pfss((s+2)/((s+1)^2))
+disp(A(1))
diff --git a/269/CH7/EX7.9/example9.sce b/269/CH7/EX7.9/example9.sce new file mode 100644 index 000000000..18d085b24 --- /dev/null +++ b/269/CH7/EX7.9/example9.sce @@ -0,0 +1,4 @@ +syms t
+s=%s
+[A]=pfss((1/(s^2+2*s+5)))
+disp(A(1))
|