summaryrefslogtreecommitdiff
path: root/24/CH2/EX2.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /24/CH2/EX2.3
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '24/CH2/EX2.3')
-rwxr-xr-x24/CH2/EX2.3/Example2_3.sce9
-rwxr-xr-x24/CH2/EX2.3/Example2_3_result.txt2
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