diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /3204/CH18/EX18.6/Ex18_6.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '3204/CH18/EX18.6/Ex18_6.sce')
-rw-r--r-- | 3204/CH18/EX18.6/Ex18_6.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/3204/CH18/EX18.6/Ex18_6.sce b/3204/CH18/EX18.6/Ex18_6.sce new file mode 100644 index 000000000..ada754797 --- /dev/null +++ b/3204/CH18/EX18.6/Ex18_6.sce @@ -0,0 +1,12 @@ +// Initilization of variables
+e=0.8 // coefficient of restitution
+g=9.81 // m/s^2 // acc due to gravity
+// Calcuations
+// Squaring eqn's 1 &2 and Solving eqn's 1 & 2 using matrix for the value of h
+A=[-1 (2*g);-1 -(1.28*g)]
+B=[0.945^2;(-0.4*9.81)]
+C=inv(A)*B // m
+// Results
+clc
+printf('The height from which the ball A should be released is %f m \n',C(2))
+// The answer given in the book i.e 0.104 is wrong.
|