From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1985/CH1/EX1.1/chapter1_Example1.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 1985/CH1/EX1.1/chapter1_Example1.sce (limited to '1985/CH1/EX1.1') diff --git a/1985/CH1/EX1.1/chapter1_Example1.sce b/1985/CH1/EX1.1/chapter1_Example1.sce new file mode 100755 index 000000000..8efba1eb1 --- /dev/null +++ b/1985/CH1/EX1.1/chapter1_Example1.sce @@ -0,0 +1,14 @@ + +clc +clear + +//INPUT DATA +L=1;//Length of the bar in m +l=0.25;//Length of the pemdulum in m + +//CALCULATIONS +k=sqrt((L^2)/12);//Radius of gyration m +T=sqrt(((k^2/l)+l)/9.8)*2*3.14;//Time period of pendulum in s + +//OUTPUT +mprintf('Time period of the pendulum is %3.3f sec',T) -- cgit