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 /24/CH10/EX10.1 | |
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 '24/CH10/EX10.1')
-rwxr-xr-x | 24/CH10/EX10.1/Example10_1.sce | 26 | ||||
-rwxr-xr-x | 24/CH10/EX10.1/Example10_1_result.txt | 9 |
2 files changed, 35 insertions, 0 deletions
diff --git a/24/CH10/EX10.1/Example10_1.sce b/24/CH10/EX10.1/Example10_1.sce new file mode 100755 index 000000000..ba9658406 --- /dev/null +++ b/24/CH10/EX10.1/Example10_1.sce @@ -0,0 +1,26 @@ +exec("degree_rad.sci",-1)
+
+//Given that
+m = 140 * 10^-3 //in kg
+Vi = -39 //in m/s
+Vf = 39 //in m/s
+
+//Sample Problem 10-1a
+printf("**Sample Problem 10-1a**\n")
+//J = Pf - Pi
+J = m *(Vf - Vi)
+printf("The magnitude of impulse acted on the ball from bat is equal to %fN-s\n", J)
+
+//Sample Problem 10-1b
+printf("\n**Sample Problem 10-1b**\n")
+t = 1.20* 10^-3 //in sec
+Favg = J/t
+printf("The average force during the collision is %fN\n", Favg)
+
+//Sample Problem 10-1c
+printf("\n**Sample Problem 10-1c**\n")
+Vf = 45* [cos(dtor(30)), sin(dtor(30))]
+Vi = [-39, 0]
+J = m* (Vf - Vi)
+printf("The magnitude of new inpulse is %fN-s\n", norm(J))
+printf("The new impulse makes an angle of %f degress with the horizontal", rtod(atan(J(2)/ J(1))))
\ No newline at end of file diff --git a/24/CH10/EX10.1/Example10_1_result.txt b/24/CH10/EX10.1/Example10_1_result.txt new file mode 100755 index 000000000..2bf084cba --- /dev/null +++ b/24/CH10/EX10.1/Example10_1_result.txt @@ -0,0 +1,9 @@ +**Sample Problem 10-1a**
+The magnitude of impulse acted on the ball from bat is equal to 10.920000N-s
+
+**Sample Problem 10-1b**
+The average force during the collision is 9100.000000N
+
+**Sample Problem 10-1c**
+The magnitude of new inpulse is 11.361368N-s
+The new impulse makes an angle of 16.096463 degress with the horizontal
\ No newline at end of file |