blob: f3ca5b658b96d99fb10c23011e53179c5725d202 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Scilab Code Ex3a.c.2: Page-144 (2008)
clc; clear;
// Comparing with the standard progressive wave equation, we have
a = 5; // Amplitude of the wave, m
nu = 0.2; // Frequency of the wave, Hz
lambda = 1/0.5; // Wavelength of the wave, m
v = nu*lambda; // Wave velocity, m/s
printf("\nThe amplitude of the wave = %3.1f m", a);
printf("\nThe wavelength of the wave = %3.1f m", lambda);
printf("\nThe velocity of the wave = %3.1f m/s", v);
printf("\nThe frequency of the wave = %3.1f Hz", nu);
// Result
// The amplitude of the wave = 5.0 m
// The wavelength of the wave = 2.0 m
// The velocity of the wave = 0.4 m/s
// The frequency of the wave = 0.2 Hz
|