summaryrefslogtreecommitdiff
path: root/257/CH7/EX7.3
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /257/CH7/EX7.3
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-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/CH7/EX7.3')
-rw-r--r--257/CH7/EX7.3/example_7_3.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/257/CH7/EX7.3/example_7_3.sce b/257/CH7/EX7.3/example_7_3.sce
new file mode 100644
index 000000000..10eaa8a71
--- /dev/null
+++ b/257/CH7/EX7.3/example_7_3.sce
@@ -0,0 +1,21 @@
+p=3/5
+q=poly([10 7 1],'s','coeff');
+G=p/q
+H=1
+y=G*H
+F1=1/(1+y)
+
+F=1/(1+y);
+disp(F,"1/(1+G(s)H(s))=")
+syms t s;
+Ko=limit(s*F/s,s,0) //Ko=Lt s->0 (1/(1+G(s)H(S))
+d=diff(s*F/s,s);
+K1=limit(diff(s*F/s,s),s,0) //K1=Lt s->0 (dF(s)/ds)
+K2=limit(diff(d,s),s,0) //K2=Lt s->0 (d2F(s)/ds)
+
+a=(6+5*t+6*(t^2)/2)
+b=diff((6+5*t+6*(t^2)/2) ,t)
+c=diff(b,t)
+e=Ko*a+K1*b+K2*c //error by dynamic coefficient method
+disp(e,"e = ")
+