diff options
Diffstat (limited to '257/CH7/EX7.12')
-rw-r--r-- | 257/CH7/EX7.12/example_7_12.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/257/CH7/EX7.12/example_7_12.sce b/257/CH7/EX7.12/example_7_12.sce new file mode 100644 index 000000000..5046b66b4 --- /dev/null +++ b/257/CH7/EX7.12/example_7_12.sce @@ -0,0 +1,20 @@ +T=15/(s^2+4*s+18)
+
+omegaN=sqrt(18)
+zeta=4/(2*omegaN)
+disp(omegaN,"omegaN = ")
+disp(zeta,"zeta = ")
+omegaD=omegaN*sqrt(1-zeta^2)
+for(n=1:3)
+ t=n*%pi/omegaD
+ if(n==2)
+ T=t
+ disp(t,"t for 1st undershoot = ")
+ disp(T,"time period for oscillations = ")
+ end
+
+end
+
+disp(4/(zeta*omegaN),"Ts = ")
+disp(Ts/T,"total number of cycles = ")
+disp(1/T," frequency of damped oscillations = ")
\ No newline at end of file |