diff options
Diffstat (limited to '24/CH2/EX2.3')
-rwxr-xr-x | 24/CH2/EX2.3/Example2_3.sce | 9 | ||||
-rwxr-xr-x | 24/CH2/EX2.3/Example2_3_result.txt | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/24/CH2/EX2.3/Example2_3.sce b/24/CH2/EX2.3/Example2_3.sce new file mode 100755 index 000000000..fef1ed5ee --- /dev/null +++ b/24/CH2/EX2.3/Example2_3.sce @@ -0,0 +1,9 @@ +//Given that
+t = poly(0,'t');
+x = 7.8 + 9.2 * t - 2.1 * t^3;
+
+//Sample Problem 2-3
+printf("**Sample Problem 2-3**\n")
+v = derivat(x)
+velocity = horner(v,3.5)
+printf("Velocity at t=3.5 second is equal to %f m/s", velocity)
\ No newline at end of file diff --git a/24/CH2/EX2.3/Example2_3_result.txt b/24/CH2/EX2.3/Example2_3_result.txt new file mode 100755 index 000000000..37a1ed7de --- /dev/null +++ b/24/CH2/EX2.3/Example2_3_result.txt @@ -0,0 +1,2 @@ +**Sample Problem 2-3**
+Velocity at t=3.5 second is equal to -67.975000 m/s
\ No newline at end of file |