コード例 #1
0
 public void TrigonometricsLargeAngles()
 {
     UIMap.RAD();
     UIMap.EEX();
     UIMap.One();
     UIMap.Zero();
     UIMap.SIN();
     UIMap.AssertNumeric("-0.49          ");
     UIMap.DSP();
     UIMap.Nine();
     UIMap.SCI();
     UIMap.AssertNumeric("-4.880805565-01");
     UIMap.EEX();
     UIMap.Two();
     UIMap.Zero();
     UIMap.COS();
     UIMap.AssertNumeric("-2.877745262-01");
     UIMap.EEX();
     UIMap.Four();
     UIMap.Zero();
     UIMap.TAN();
     UIMap.AssertNumeric("-5.020086915-02");
     UIMap.EEX();
     UIMap.Eight();
     UIMap.Zero();
     UIMap.ENTER();
     UIMap.CHS();
     UIMap.SIN();
     UIMap.AssertNumeric("-9.543913368-01");
 }
コード例 #2
0
        public void p87p89()
        {
            // Setup
            UIMap.DSP();
            UIMap.Four();
            UIMap.AssertPrinter("                DSP4");

            // Adding and Subtracting Time and Angles
            UIMap.Four();
            UIMap.Five();
            UIMap.SendKeys(".105076");
            UIMap.AssertNumeric(" 45.105076     ");
            UIMap.ENTER();
            UIMap.AssertNumeric(" 45.1051       ");
            UIMap.Two();
            UIMap.Four();
            UIMap.Period();
            UIMap.Four();
            UIMap.Nine();
            UIMap.One();
            UIMap.Zero();
            UIMap.Nine();
            UIMap.Five();
            UIMap.AssertNumeric(" 24.491095     ");
            UIMap.HMSAddition();
            UIMap.AssertNumeric(" 70.0002       ");
            UIMap.DSP();
            UIMap.Six();
            UIMap.AssertNumeric(" 70.000171     ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 70.000171     ");
            UIMap.AssertPrinter("      45.105076 ENT↑",
                                "      24.491095 HMS+",
                                "                DSP6",
                                "      70.000171  ***");

            UIMap.SendKeys("312.3217");
            UIMap.AssertNumeric(" 312.3217      ");
            UIMap.ENTER();
            UIMap.One();
            UIMap.Four();
            UIMap.Two();
            UIMap.Period();
            UIMap.Seven();
            UIMap.Eight();
            UIMap.AssertNumeric(" 142.78        ");
            UIMap.ToHMS();
            UIMap.AssertNumeric(" 142.464800    ");
            UIMap.CHS();
            UIMap.AssertNumeric("-142.464800    ");
            UIMap.HMSAddition();
            UIMap.AssertNumeric(" 169.452900    ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 169.452900    ");
            UIMap.DSP();
            UIMap.Two();
            UIMap.AssertNumeric(" 169.45        ");
            UIMap.AssertPrinter("     312.321700 ENT↑",
                                "     142.780000 →HMS",
                                "                 CHS",
                                "                HMS+",
                                "     169.452900  ***",
                                "                DSP2");

            UIMap.CLx();
            UIMap.DEG();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.Five();
            UIMap.Period();
            UIMap.Four();
            UIMap.Three();
            UIMap.FromHMS();
            UIMap.AssertNumeric(" 5.72          ");
            UIMap.One();
            UIMap.Two();
            UIMap.Period();
            UIMap.One();
            UIMap.Eight();
            UIMap.FromHMS();
            UIMap.AssertNumeric(" 12.30         ");
            UIMap.Subtraction();
            UIMap.AssertNumeric("-6.58          ");
            UIMap.COS();
            UIMap.AssertNumeric(" 0.99          ");
            UIMap.SendKeys("15.55");
            UIMap.FromHMS();
            UIMap.AssertNumeric(" 15.92         ");
            UIMap.STO();
            UIMap.One();
            UIMap.AssertNumeric(" 15.92         ");
            UIMap.COS();
            UIMap.AssertNumeric(" 0.96          ");
            UIMap.Multiplication();
            UIMap.AssertNumeric(" 0.96          ");
            UIMap.SendKeys("37.03");
            UIMap.FromHMS();
            UIMap.AssertNumeric(" 37.05         ");
            UIMap.STO();
            UIMap.Zero();
            UIMap.AssertNumeric(" 37.05         ");
            UIMap.COS();
            UIMap.AssertNumeric(" 0.80          ");
            UIMap.Multiplication();
            UIMap.AssertNumeric(" 0.76          ");
            UIMap.RCL();
            UIMap.Zero();
            UIMap.SIN();
            UIMap.AssertNumeric(" 0.60          ");
            UIMap.RCL();
            UIMap.One();
            UIMap.SIN();
            UIMap.AssertNumeric(" 0.27          ");
            UIMap.Multiplication();
            UIMap.AssertNumeric(" 0.17          ");
            UIMap.Addition();
            UIMap.AssertNumeric(" 0.93          ");
            UIMap.ArcCOS();
            UIMap.AssertNumeric(" 21.92         ");
            UIMap.Six();
            UIMap.Zero();
            UIMap.Multiplication();
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 1315.41       ");
            UIMap.AssertPrinter("                 CLX",
                                "                 DEG",
                                "           5.43 HMS→",
                                "          12.18 HMS→",
                                "                  - ",
                                "                 COS",
                                "          15.55 HMS→",
                                "                STO1",
                                "                 COS",
                                "                  × ",
                                "          37.03 HMS→",
                                "                STO0",
                                "                 COS",
                                "                  × ",
                                "                RCL0",
                                "                 SIN",
                                "                RCL1",
                                "                 SIN",
                                "                  × ",
                                "                  + ",
                                "                COS¹",
                                "          60.00   × ",
                                "        1315.41  ***");
        }
コード例 #3
0
ファイル: HP97p83p85.cs プロジェクト: mockingbirdnest/HP
        public void p83p85()
        {
            // Trigonometric Functions

            // Degrees/Radians Conversions
            UIMap.Four();
            UIMap.Five();
            UIMap.AssertNumeric(" 45.           ");
            UIMap.DegreesToRadians();
            UIMap.AssertNumeric(" 0.79          ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 0.79          ");
            UIMap.AssertPrinter("          45.00  D→R",
                                "           0.79  ***");

            UIMap.Four();
            UIMap.AssertNumeric(" 4.            ");
            UIMap.RadiansToDegrees();
            UIMap.AssertNumeric(" 229.18        ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 229.18        ");
            UIMap.AssertPrinter("           4.00  R→D",
                                "         229.18  ***");

            // Trigonometric Modes

            // Functions
            UIMap.Three();
            UIMap.Five();
            UIMap.AssertNumeric(" 35.           ");
            UIMap.COS();
            UIMap.AssertNumeric(" 0.82          ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 0.82          ");
            UIMap.AssertPrinter("          35.00  COS",
                                "           0.82  ***");

            UIMap.RAD();
            UIMap.AssertNumeric(" 0.82          ");
            UIMap.Period();
            UIMap.Nine();
            UIMap.Six();
            UIMap.Four();
            UIMap.AssertNumeric(" .964          ");
            UIMap.ArcSIN();
            UIMap.AssertNumeric(" 1.30          ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 1.30          ");
            UIMap.AssertPrinter("                 RAD",
                                "           .964 SIN¹",
                                "           1.30  ***");

            UIMap.GRD();
            UIMap.AssertNumeric(" 1.30          ");
            UIMap.SendKeys("43.66");
            UIMap.AssertNumeric(" 43.66         ");
            UIMap.TAN();
            UIMap.AssertNumeric(" 0.82          ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 0.82          ");
            UIMap.AssertPrinter("                GRAD",
                                "          43.66  TAN",
                                "           0.82  ***");
        }