diff options
Diffstat (limited to '24/CH2/EX2.3/Example2_3.sce')
-rwxr-xr-x | 24/CH2/EX2.3/Example2_3.sce | 9 |
1 files changed, 9 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 |