summaryrefslogtreecommitdiff
path: root/1535/CH1/EX1.5/Ch01Ex5.sci
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1535/CH1/EX1.5/Ch01Ex5.sci
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 '1535/CH1/EX1.5/Ch01Ex5.sci')
-rwxr-xr-x1535/CH1/EX1.5/Ch01Ex5.sci17
1 files changed, 17 insertions, 0 deletions
diff --git a/1535/CH1/EX1.5/Ch01Ex5.sci b/1535/CH1/EX1.5/Ch01Ex5.sci
new file mode 100755
index 000000000..f99191b4d
--- /dev/null
+++ b/1535/CH1/EX1.5/Ch01Ex5.sci
@@ -0,0 +1,17 @@
+// Scilab Code Ex1.5 : Page-25 (2010)
+m = 0.3; // Mass attached to the string, kg
+g = 9.8; // Acceleration due to gravity, metre per sec square
+x = 0.15; // Stretchness produced in the spring, m
+F = m*g; // Restoring force acting on the mass, N
+k = F/x; // Spring constant, newton per metre
+A = 0.1; // Amplitude of the string, m
+omega = sqrt(k/m); // Angular frequency of oscillation, rad per sec
+v0 = omega*A; // Maximum velocity during the oscillations, m/s
+printf("\nThe spring constant = %4.1f newton per metre", k);
+printf("\nThe amplitude of oscillation = %2.1f m", A);
+printf("\nThe maximum velocity during oscillations = %3.2f m/s", v0);
+
+// Result
+// The spring constant = 19.6 newton per metre
+// The amplitude of oscillation = 0.1 m
+// The maximum velocity during oscillations = 0.81 m/s