using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter16 { /// /// Example03: A Sinusoidally Driven String /// The string shown in Figure 16.10 is driven at a frequency /// of 5.00 Hz. The amplitude of the motion is 12.0 cm, and the /// wave speed is 20.0 m/s. Determine the angular frequency \omega /// and wave number k for this wave, and write an expression /// for the wave function. /// \omega = 31.4 rad/s /// k = 1.57 rad/m /// y = 0.12 \sin(1.57x - 31.4t) /// public class Example03 { public Example03() { } private string result; public string Result { get{return result;} } public void Compute() { L.SinusoidalWave y = new L.SinusoidalWave(); y.Frequency = 5.0; y.Amplitude = 0.12; y.Speed = 20.0; y.FindPeriodFromFrequency(); y.FindAngularFrequencyFromPeriod(); result+=Convert.ToString(y.AngularFrequency)+"\r\n"; y.WaveLength = y.Speed/y.Frequency; result+=Convert.ToString(y.WaveLength)+"\r\n"; y.FindWaveNumberFromWaveLength(); result+=Convert.ToString(y.WaveNumber)+"\r\n"; } } } /* 31.4159265358979 4 1.5707963267949 */