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 --- 1535/CH1/EX1.5/Ch01Ex5.sci | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 1535/CH1/EX1.5/Ch01Ex5.sci (limited to '1535/CH1/EX1.5/Ch01Ex5.sci') 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 -- cgit