diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1535/CH1/EX1.2 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1535/CH1/EX1.2')
-rwxr-xr-x | 1535/CH1/EX1.2/Ch01Ex2.sci | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1535/CH1/EX1.2/Ch01Ex2.sci b/1535/CH1/EX1.2/Ch01Ex2.sci new file mode 100755 index 000000000..93758df96 --- /dev/null +++ b/1535/CH1/EX1.2/Ch01Ex2.sci @@ -0,0 +1,14 @@ +// Scilab Code Ex1.2 : Page-23 (2010)
+T = 0.1; // Time period of oscillation in SHM, s
+x = 0.2; // Position of the particle from its mean position, cm
+A = 4; // Amplitude of the particle executing SHM, cm
+// As T = 2*%pi/omega, solving for omega
+omega = 2*%pi/T; // Angular speed of particle executing SHM, per sec
+a = omega^2*x; // Accelertion of particle executing SHM, cm per sec square
+v_max = omega*A; // Maximum velocity of the particle in SHM, cm per sec
+printf("\nThe accelertion of particle executing SHM = %5.1f cm per sec square", a);
+printf("\nThe maximum velocity of the particle in SHM = %5.1f cm per sec", v_max);
+
+// Result
+// The accelertion of particle executing SHM = 789.6 cm per sec square
+// The maximum velocity of the particle in SHM = 251.3 cm per sec
|