summaryrefslogtreecommitdiff
path: root/2084/CH3/EX3.9w
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /2084/CH3/EX3.9w
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '2084/CH3/EX3.9w')
-rwxr-xr-x2084/CH3/EX3.9w/3_9w.sce60
1 files changed, 30 insertions, 30 deletions
diff --git a/2084/CH3/EX3.9w/3_9w.sce b/2084/CH3/EX3.9w/3_9w.sce
index 68449229e..ba7fa1827 100755
--- a/2084/CH3/EX3.9w/3_9w.sce
+++ b/2084/CH3/EX3.9w/3_9w.sce
@@ -1,30 +1,30 @@
-//developed in windows XP operating system 32bit
-//platform Scilab 5.4.1
-clc;clear;
-//example 3.9w
-//drawing graph of x versus t, v versus t and a versus t
-
-//given data
-h=19.6//height(in m) from where the ball is dropped
-//evaluating value for equation x=(u*t)+((1/2)*a*t^2)
-
-//calculation
-t=[0 1 2 2 3 4]
-x=[0 4.9 19.6 19.6 4.9 0]//values of x(in m) obtained on evaluating equation x=(u*t)+((1/2)*a*t^2) along with direction of motion
-v=[0 9.8 19.6 -19.6 -9.8 0]//values of v(in m) obtained on evaluating equation v=u+(a*t) along with direction of motion
-a=9.8//constant acceleration(m/s^2)
-
-subplot(221);
-plot(t,x);
-xlabel('time(in s)')
-ylabel('distance(in m)')
-
-subplot(222);
-plot(t,v);
-xlabel('time(in s)')
-ylabel('velocity(in m/s)')
-
-subplot(223);
-plot(t,a);
-xlabel('time(in s)')
-ylabel('acceleration (in m/s^2)')
+//developed in windows XP operating system 32bit
+//platform Scilab 5.4.1
+clc;clear;
+//example 3.9w
+//drawing graph of x versus t, v versus t and a versus t
+
+//given data
+h=19.6//height(in m) from where the ball is dropped
+//evaluating value for equation x=(u*t)+((1/2)*a*t^2)
+
+//calculation
+t=[0 1 2 2 3 4]
+x=[0 4.9 19.6 19.6 4.9 0]//values of x(in m) obtained on evaluating equation x=(u*t)+((1/2)*a*t^2) along with direction of motion
+v=[0 9.8 19.6 -19.6 -9.8 0]//values of v(in m) obtained on evaluating equation v=u+(a*t) along with direction of motion
+a=9.8//constant acceleration(m/s^2)
+
+subplot(221);
+plot(t,x);
+xlabel('time(in s)')
+ylabel('distance(in m)')
+
+subplot(222);
+plot(t,v);
+xlabel('time(in s)')
+ylabel('velocity(in m/s)')
+
+subplot(223);
+plot(t,a*ones(1,length(t)));
+xlabel('time(in s)')
+ylabel('acceleration (in m/s^2)') \ No newline at end of file