From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 3204/CH18/EX18.6/Ex18_6.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 3204/CH18/EX18.6/Ex18_6.sce (limited to '3204/CH18/EX18.6/Ex18_6.sce') 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. -- cgit