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 /257/CH5/EX5.15/example_5_15.sce | |
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 '257/CH5/EX5.15/example_5_15.sce')
-rw-r--r-- | 257/CH5/EX5.15/example_5_15.sce | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/257/CH5/EX5.15/example_5_15.sce b/257/CH5/EX5.15/example_5_15.sce new file mode 100644 index 000000000..3cf95c9c6 --- /dev/null +++ b/257/CH5/EX5.15/example_5_15.sce @@ -0,0 +1,28 @@ +s=%s
+
+ //to find C/E
+
+a=10/(s*(s+1))
+b=a/(1+(a*0.5*s))
+c=b*(s+4) //shifting the summer to the left
+
+//(s^2+6*s)/(10*(s+4)) * C == E + 3/(s+4)*(E+C)
+Y= 10*(s+7)/(s^2+6*s-30) //solving the above equation
+
+disp(Y,"C/E = ")
+
+// to find C/R
+
+d=c/(1+c*1) //using the associative law, exchange two summing points
+e=1+(3/(s+4))
+X= d*e
+
+disp(X," C/R = ")
+
+// to find C/N if r(s)=0
+
+x= (-0.5*s)-(s+4)
+k=10/(s*(s+1))
+f=k*x //removing the summing point
+V=1/(1-f)
+disp(V,"C/N = ")
|