summaryrefslogtreecommitdiff
path: root/3204/CH24/EX24.10
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3204/CH24/EX24.10
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '3204/CH24/EX24.10')
-rw-r--r--3204/CH24/EX24.10/Ex24_10.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3204/CH24/EX24.10/Ex24_10.sce b/3204/CH24/EX24.10/Ex24_10.sce
new file mode 100644
index 000000000..8d659d749
--- /dev/null
+++ b/3204/CH24/EX24.10/Ex24_10.sce
@@ -0,0 +1,14 @@
+// Initilization of variables
+l=1 // m // length of the simple pendulum
+g=9.81 // m/s^2
+// Calculations
+// Let t_s be the time period when the elevator is stationary
+t_s=2*%pi*sqrt(l/g) /// seconds
+// Let t_u be the time period when the elevator moves upwards. Then from eqn 1
+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)