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 /1958/CH3/EX3.1/Chapter3_example1.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 '1958/CH3/EX3.1/Chapter3_example1.sce')
-rwxr-xr-x | 1958/CH3/EX3.1/Chapter3_example1.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/1958/CH3/EX3.1/Chapter3_example1.sce b/1958/CH3/EX3.1/Chapter3_example1.sce new file mode 100755 index 000000000..ca07a5fec --- /dev/null +++ b/1958/CH3/EX3.1/Chapter3_example1.sce @@ -0,0 +1,18 @@ +clc
+clear
+//Input data
+m=0.04//Mass of stone in kg
+vi=25//Initial velocity in m/s
+vf=0//Final velocity in m/s
+yi=0//Initial height in m
+
+//Calculations
+Ui=(m*9.81*yi)//Initial potential energy in J
+Ki=(1/2)*m*vi^2//Initial kinetic energy in J
+Etotal=(Ui+Ki)//Total energy in J
+h=(Etotal/(m*9.8))//Maximum height in m
+//when the stone is at (2/3)h, total energy is again same
+v=sqrt((Etotal-(m*9.8*(2/3)*h))/((1/2)*m))//Velocity at (2/3) of its maximum height in m/s
+
+//Output
+printf('Maximum height it will reach is %3.1f m \n Potential energy at that height is %3.1f J \n velocity when it is at the two-third of its maximum height is %3.2f m/s',h,Etotal,v)
|