using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter04 { /// /// Example07: The End of the Ski Jump /// A ski-jumper leaves the ski track moving in the horizontal /// direction with a speed of 25.0 m/s, as shown in /// Figure 4.16. The landing incline below him falls off /// with a slope of 35.0^{\circle}. Where does he land on the incline? /// x_f = 89.3 m, y_f = -62.5 m /// public class Example07 { public Example07() { } private string result; public string Result { get{return result;} } public void Compute() { // x = v.X*t; // y = -0.5*g*t^2; // y = -tan(35degree)*x; L.Velocity v = new L.Velocity(); v.X = 25.0; double[] coe = {0.0,Math.Tan(35.0*Math.PI/180.0), -0.5*L.Constant.AccelerationOfGravity/v.X/v.X}; L.Complex[] poly = L.Calculus.SolutionOfPolynomialEquation(coe); double x1 = poly[0].Real; double x2 = poly[1].Real; double x; if(x2 > x1) x = x2; else x = x1; double y = -Math.Tan(35.0*Math.PI/180.0)*x; result+=x.ToString(); result+=" "+y.ToString(); } } } //89.3121859961364 -62.5370658884824