Exemple #1
0
        public double UpdateRHS()
        {
            double t1       = m_M * m_M;
            double beta_rad = ThetaBetaMSolver.DegToRad(m_Beta_Deg);
            double t2       = Math.Sin(beta_rad) * Math.Sin(beta_rad);

            return(2.0 * (t1 * t2 - 1));
        }
Exemple #2
0
        public double UpdateLHS()
        {
            double theta_rad = ThetaBetaMSolver.DegToRad(m_Theta_Deg);
            double beta_rad  = ThetaBetaMSolver.DegToRad(m_Beta_Deg);

            double t3 = Math.Tan(theta_rad) * Math.Tan(beta_rad);
            double t2 = m_M * m_M;
            double t1 = gamma + Math.Cos(2.0 * beta_rad);

            return(t3 * (t2 * t1 + 2));
        }
Exemple #3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            ThetaBetaMSolver solver1 = new ThetaBetaMSolver(2.5, 20);

            MachNumber M = new MachNumber();

            M.M = 2.5;
            AngleDeg angle = new AngleDeg();

            angle.angle = 20;

            double           angleDeg = 20;
            double           angleRad = ThetaBetaMSolver.DegToRad(angleDeg);
            ThetaBetaMSolver solver   = new ThetaBetaMSolver(M, angle);
            double           beta     = solver.FindBeta();

            Console.WriteLine("Beta = " + beta + " deg");
            Console.Read();
        }