diff options
Diffstat (limited to '24/CH2/EX2.4')
-rwxr-xr-x | 24/CH2/EX2.4/Example2_4.sce | 18 | ||||
-rwxr-xr-x | 24/CH2/EX2.4/Example2_4_result.txt | 11 |
2 files changed, 29 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 diff --git a/24/CH2/EX2.4/Example2_4_result.txt b/24/CH2/EX2.4/Example2_4_result.txt new file mode 100755 index 000000000..5912cd5e6 --- /dev/null +++ b/24/CH2/EX2.4/Example2_4_result.txt @@ -0,0 +1,11 @@ +**Sample Problem 2-4a**
+The velocity as a function of time in m/s is
+ 2
+ - 27 + 3t
+The acceleration as a function of time in m/s^2 is
+ 6t
+
+**Sample Problem 2-4b**
+velocity of the particle is zero at times in sec
+ 3.
+ - 3.
\ No newline at end of file |