summaryrefslogtreecommitdiff
path: root/3886/CH12/EX12.2/12_2.sce
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3886/CH12/EX12.2/12_2.sce
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-master.tar.gz
Scilab-TBC-Uploads-master.tar.bz2
Scilab-TBC-Uploads-master.zip
Added new codeHEADmaster
Diffstat (limited to '3886/CH12/EX12.2/12_2.sce')
-rw-r--r--3886/CH12/EX12.2/12_2.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3886/CH12/EX12.2/12_2.sce b/3886/CH12/EX12.2/12_2.sce
new file mode 100644
index 000000000..9e1744a76
--- /dev/null
+++ b/3886/CH12/EX12.2/12_2.sce
@@ -0,0 +1,21 @@
+//Steel ball shot vertically up
+//refer fig.12.6
+//For upward motion
+au=18 //m/sec
+av=0
+aa=-9.81 //m/sec^2
+//s=h
+//let t1 be the time required to reach maximum height
+t1=1.83 //sec
+h=(18^2)/(2*9.81) //m
+//total height from the ground
+ah=25+h //m
+//Downward motion
+bu=0
+bs=41.51 //m
+ba=9.81 //m/sec^2
+v2=sqrt(2*9.81*41.51) //m/sec
+t2=28.54/9.81 //m/sec
+//total time during which the body is in motion
+t=t1+t2 //sec
+printf("\nt1=%.2f sec\nh=%.2f m\nv2=%.2f m/sec\nt2=%.2f sec\nt=%.2f sec",t1,h,v2,t2,t)