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.7/Ch01Ex7.sci | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 1535/CH1/EX1.7/Ch01Ex7.sci (limited to '1535/CH1/EX1.7') diff --git a/1535/CH1/EX1.7/Ch01Ex7.sci b/1535/CH1/EX1.7/Ch01Ex7.sci new file mode 100755 index 000000000..095e5c231 --- /dev/null +++ b/1535/CH1/EX1.7/Ch01Ex7.sci @@ -0,0 +1,22 @@ +// Scilab Code Ex1.7 : Page-26 (2010) +// Comparing the standard equation +// u(x,t) = A*sin(2*%pi(x/lambda-t/T)) +// with the given equation, we get +A = 1.5e-03; // Amplitude of the sound wave, m +lambda = 8; // Wavelength of the sound wave, m +T = 1/40; // Time period of the sound wave, s +nu = 1/T; // Frequency of the sound wave, Hz +v = nu*lambda; // Velocity of the sound wave, m/s +printf("\nThe amplitude of the sound wave = %3.1e m", A); +printf("\nThe wavelength of the sound wave = %1d m", lambda); +printf("\nThe time period of the sound wave = %3.2f s", T); +printf("\nThe frequency of the sound wave = %2d Hz", nu); +printf("\nThe velocity of the sound wave = %3d m/s", v); + + +// Result +// The amplitude of the sound wave = 1.5e-003 m +// The wavelength of the sound wave = 8 m +// The time period of the sound wave = 0.03 s +// The frequency of the sound wave = 40 Hz +// The velocity of the sound wave = 320 m/s -- cgit