summaryrefslogtreecommitdiff
path: root/3204/CH24/EX24.11
diff options
context:
space:
mode:
Diffstat (limited to '3204/CH24/EX24.11')
-rw-r--r--3204/CH24/EX24.11/Ex24_11.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3204/CH24/EX24.11/Ex24_11.sce b/3204/CH24/EX24.11/Ex24_11.sce
new file mode 100644
index 000000000..10b50fe6a
--- /dev/null
+++ b/3204/CH24/EX24.11/Ex24_11.sce
@@ -0,0 +1,14 @@
+// Initilization of variables
+t=1 // second // time period of the simple pendulum
+g=9.81 // m/s^2
+// Calculations
+// Length of pendulum is given as,
+l=(t/(2*%pi)^2)*g // m
+// Let t_u be the time period when the elevator moves upwards. Then the time period is given as,
+t_u=2*%pi*sqrt((l)/(g+(g/10))) // seconds
+// Let t_d be the time period when the elevator moves downwards.
+t_d=2*%pi*sqrt(l/(g-(g/10))) // seconds
+// Results
+clc
+printf('The time period of oscillation of the pendulum for upward acc of the elevator is %f seconds \n',t_u)
+printf('The time period of oscillation of the pendulum for downward acc of the elevator is %f seconds \n',t_d)