diff options
Diffstat (limited to '1958/CH1/EX1.5/Chapter1_example5.sce')
-rwxr-xr-x | 1958/CH1/EX1.5/Chapter1_example5.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1958/CH1/EX1.5/Chapter1_example5.sce b/1958/CH1/EX1.5/Chapter1_example5.sce new file mode 100755 index 000000000..d0a9575c3 --- /dev/null +++ b/1958/CH1/EX1.5/Chapter1_example5.sce @@ -0,0 +1,13 @@ +clc
+clear
+//Input data
+l=0.95//Length of the strring in m
+m=0.15//Mass of the bob in kg
+r=0.25//Radius of the circle in m
+
+//Calculations
+h=sqrt(l^2-r^2)//Height of the pendulum in m
+t=2*3.14*sqrt(h/9.8)//Period of rotation in s
+
+//Output
+printf('The period of rotation is %3.4f s',t)
|