diff options
Diffstat (limited to '1958/CH3/EX3.2')
-rwxr-xr-x | 1958/CH3/EX3.2/Chapter3_example2.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1958/CH3/EX3.2/Chapter3_example2.sce b/1958/CH3/EX3.2/Chapter3_example2.sce new file mode 100755 index 000000000..be52d3539 --- /dev/null +++ b/1958/CH3/EX3.2/Chapter3_example2.sce @@ -0,0 +1,13 @@ +clc
+clear
+//Input data
+m=0.5//Mass of the sphere in kg
+vi=100//Initial velocity in m/s
+vf=20//Final velocity in m/s
+
+//Calculations
+h=(vi^2-vf^2)/(2*9.8)//Height in m
+PE=(m*9.8*h)//Potential energy in J
+
+//Calculations
+printf('Potential energy of the sphere is %i J',PE)
|