using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter18 { /// /// Example05: Changing String Vibration with Water /// One end of a horizontal string is attached to a /// vibrating blade and the other end passes over /// a pulley. A sphere of mass 2.0 kg hangs on the end /// of the string. The string is vibrating in its second /// harmonic. A contained of water is raised under the /// sphere so that the spere is completely submerged. /// After this is done, the string vibrates in its fifth /// harmonic. What is the radius of the sphere? /// r = 7.38 cm /// public class Example05 { public Example05() { } private string result; public string Result { get{return result;} } public void Compute() { // sqrt(T/mu) = v = lambda*f = L/2*2*f // sqrt(T'/mu) = v' = lambda'*f = L/5*2*f // T' = m*g - rho_water*4*pi/3*r^3*g double ans = Math.Pow((25.0-4.0)/25.0*2.0*3.0/4.0/Math.PI/1000.0,1.0/3.0); result+=ans.ToString(); } } } //0.0737462980252866