diff options
Diffstat (limited to '24/CH2/EX2.4/Example2_4.sce')
-rwxr-xr-x | 24/CH2/EX2.4/Example2_4.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/24/CH2/EX2.4/Example2_4.sce b/24/CH2/EX2.4/Example2_4.sce new file mode 100755 index 000000000..f1c7e2776 --- /dev/null +++ b/24/CH2/EX2.4/Example2_4.sce @@ -0,0 +1,18 @@ +//Given that
+t = poly(0,'t')
+x = t^3 - 27 * t + 4
+
+//Sample Problem 2-4a
+printf("**Sample Problem 2-4a**\n")
+velocity = derivat(x)
+acceleration = derivat(velocity)
+printf("The velocity as a function of time in m/s is")
+disp(velocity)
+printf("The acceleration as a function of time in m/s^2 is")
+disp(acceleration)
+
+//Sample Problem 2-4b
+printf("\n**Sample Problem 2-4b**\n")
+v0 = roots(velocity)
+printf("velocity of the particle is zero at times in sec")
+disp(v0)
\ No newline at end of file |