summaryrefslogtreecommitdiff
path: root/1535/CH1/EX1.8/Ch01Ex8.sci
blob: e493914e5d1f9094ead2fdf2fcb3c126e2ad7f23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Scilab Code Ex1.8 :  Page-26 (2010)
A = 2;    // Amplitude of the wave, cm
T = 0.5;    // Time period of the wave, sec
v = 200;    // Wave velocity, cm/s
f = 1/0.5;    // Frequency of the wave, Hz
lambda = v/f;    // Wavelength of the wave, cm
printf("\nThe Equation of the wave moving along X-axis :");
printf("u = %1d*sin*2*pi*(x/%3d-t/%2.1f)", A, lambda, T);


// Result 
// The Equation of the wave moving along X-axis :u = 2*sin*2*pi*(x/100-t/0.5)