diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /3137/CH12/EX12.25 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '3137/CH12/EX12.25')
-rwxr-xr-x | 3137/CH12/EX12.25/Ex12_25.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/3137/CH12/EX12.25/Ex12_25.sce b/3137/CH12/EX12.25/Ex12_25.sce new file mode 100755 index 000000000..46a441937 --- /dev/null +++ b/3137/CH12/EX12.25/Ex12_25.sce @@ -0,0 +1,26 @@ +//Initilization of variables
+theta=linspace(0,360,13)
+//Calculations
+//Defining everything in terms of matrices
+t=(theta*%pi)/(180*6) //s converting degrees to radians
+costheta=cosd(theta)
+sintheta=sind(theta)
+x=2*costheta //ft
+v=-12*sintheta //ft/s
+a=-72*costheta //ft/s^2
+//Plotting
+subplot(221)
+plot(t,x)
+xlabel('t(s)')
+ylabel('Displacement x(ft)')
+subplot(222)
+plot(t,v,t,0)
+xlabel('t(s)')
+ylabel('Velocity v(ft/s)')
+subplot(223)
+plot(t,a)
+xlabel('t(s)')
+ylabel('Acceleration a(ft/s^2)')
+//Result
+clc
+printf('The results are the plots')
|