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 --- 49/CH4/EX4.11/ex11.sce | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 49/CH4/EX4.11/ex11.sce (limited to '49/CH4/EX4.11') diff --git a/49/CH4/EX4.11/ex11.sce b/49/CH4/EX4.11/ex11.sce new file mode 100755 index 000000000..41b8ad9ab --- /dev/null +++ b/49/CH4/EX4.11/ex11.sce @@ -0,0 +1,15 @@ +//CHAPTER 4_ Motion and Dimensional Measurement +//Caption : Accelerometer +// Example 11// Page 240 +disp("fn=20000") +disp("tou=0.6") +disp("f=10000 ") +fn=20000 //('enter the natural frequency of the accelerometer =:') +tou=0.6 //('enter the daping ratio of the accelerometer=:') +f=10000 //('enter the frequency at which transfer function is to be calculated=:') +r=f/fn; +H_mag=1/sqrt((1-r^2)^2+(2*tou*r)^2); +H_phase=atan((2*tou*r)/(1-r^2))*360/(2*%pi); +printf(' The magnitude is %fd and phase is %fd deg\n',H_mag,H_phase) +error=(H_mag-1)*100/1; +printf(' Error at %fd Hz is %d percent\n',f,error) -- cgit