コード例 #1
0
        public void p74p75()
        {
            // Storage Register Overflow
            UIMap.Seven();
            UIMap.Period();
            UIMap.Three();
            UIMap.Three();
            UIMap.AssertNumeric(" 7.33          ");
            UIMap.EEX();
            UIMap.Five();
            UIMap.Two();
            UIMap.AssertNumeric(" 7.33        52");
            UIMap.STO();
            UIMap.One();
            UIMap.AssertNumeric(" 7.330000000 52");
            UIMap.EEX();
            UIMap.Five();
            UIMap.Zero();
            UIMap.AssertNumeric(" 1.          50");
            UIMap.STO();
            UIMap.Multiplication();
            UIMap.One();
            UIMap.AssertText(" Error         ");
            UIMap.AssertPrinter("        7.33+52 STO1",
                                "          1.+50 ST×1",
                                "               ERROR");

            UIMap.CLx();
            UIMap.AssertNumeric(" 1.000000000 50");
            UIMap.RCL();
            UIMap.One();
            UIMap.AssertNumeric(" 7.330000000 52");
            UIMap.AssertPrinter("                RCL1");
        }
コード例 #2
0
ファイル: HP97p44.cs プロジェクト: mockingbirdnest/HP
        public void p44()
        {
            // Calculator Overflow
            UIMap.CLx();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.EEX();
            UIMap.Four();
            UIMap.Nine();
            UIMap.ENTER();
            UIMap.AssertNumeric(" 1.000000000 49");
            UIMap.EEX();
            UIMap.Five();
            UIMap.Zero();
            UIMap.Multiplication();
            UIMap.AssertNumeric(" 1.000000000 99");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 1.000000000 99");
            UIMap.AssertPrinter("                 CLX",
                                "          1.+49 ENT↑",
                                "          1.+50   × ",
                                " 1.000000000+99  ***");

            UIMap.One();
            UIMap.Zero();
            UIMap.Zero();
            UIMap.Multiplication();
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 9.999999999 99");
            UIMap.AssertPrinter(" 9.999999999+99  ***");
        }
コード例 #3
0
 public void p59()
 {
     // Recovering from Mistakes
     UIMap.One();
     UIMap.Two();
     UIMap.AssertNumeric(" 12.           ");
     UIMap.ENTER();
     UIMap.AssertNumeric(" 12.00         ");
     UIMap.Three();
     UIMap.Period();
     UIMap.One();
     UIMap.Five();
     UIMap.Seven();
     UIMap.Division();
     UIMap.AssertNumeric(" 3.80          ");
     UIMap.LASTx();
     UIMap.AssertNumeric(" 3.16          ");
     UIMap.Multiplication();
     UIMap.AssertNumeric(" 12.00         ");
     UIMap.Two();
     UIMap.Period();
     UIMap.One();
     UIMap.Five();
     UIMap.Seven();
     UIMap.Division();
     UIMap.AssertNumeric(" 5.56          ");
     UIMap.PRINTx();
     UIMap.AssertNumeric(" 5.56          ");
     UIMap.AssertPrinter("          12.00 ENT↑",
                         "          3.157   ÷ ",
                         "                LSTX",
                         "                  × ",
                         "          2.157   ÷ ",
                         "           5.56  ***");
 }
コード例 #4
0
 public void PrintXOfUnformattedNumber()
 {
     UIMap.One();
     UIMap.Two();
     UIMap.Three();
     UIMap.PRINTx();
     UIMap.AssertPrinter("           123.  ***");
 }
コード例 #5
0
ファイル: HP97p27.cs プロジェクト: mockingbirdnest/HP
        public void p27()
        {
            // One-Number Functions
            UIMap.ManTraceNorm1Left();
            UIMap.Four();
            UIMap.AssertNumeric(" 4.            ");

            UIMap.Reciprocal();
            UIMap.AssertNumeric(" 0.25          ");
            UIMap.AssertPrinter("           4.00  1/X",
                                "           0.25  ***");

            UIMap.Two();
            UIMap.Five();
            UIMap.Reciprocal();
            UIMap.AssertNumeric(" 0.04          ");

            UIMap.Two();
            UIMap.Five();
            UIMap.ZeroZero();
            UIMap.Sqrt();
            UIMap.AssertNumeric(" 50.00         ");

            UIMap.Five();
            UIMap.TenToTheXth();
            UIMap.AssertNumeric(" 100000.00     ");

            UIMap.Three();
            UIMap.Two();
            UIMap.Zero();
            UIMap.Four();
            UIMap.One();
            UIMap.ZeroZero();
            UIMap.Sqrt();
            UIMap.AssertNumeric(" 1790.00       ");

            UIMap.One();
            UIMap.Two();
            UIMap.Period();
            UIMap.Five();
            UIMap.Eight();
            UIMap.Nine();
            UIMap.Two();
            UIMap.Five();
            UIMap.Four();
            UIMap.OneOne();
            UIMap.LOG();
            UIMap.AssertNumeric(" 1.10          ");

            UIMap.Seven();
            UIMap.One();
            UIMap.Square();
            UIMap.AssertNumeric(" 5041.00       ");
        }
コード例 #6
0
ファイル: HP97p85p86.cs プロジェクト: mockingbirdnest/HP
        public void p85p86()
        {
            // Hours, Minutes, Seconds/Decimal Hours Conversions
            UIMap.Two();
            UIMap.One();
            UIMap.Period();
            UIMap.Five();
            UIMap.Seven();
            UIMap.AssertNumeric(" 21.57         ");
            UIMap.DSP();
            UIMap.Four();
            UIMap.AssertNumeric(" 21.5700       ");
            UIMap.ToHMS();
            UIMap.AssertNumeric(" 21.3412       ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 21.3412       ");
            UIMap.AssertPrinter("          21.57 DSP4",
                                "                →HMS",
                                "        21.3412  ***");

            UIMap.SendKeys("132{DECIMAL}432933");
            UIMap.AssertNumeric(" 132.432933    ");
            UIMap.FromHMS();
            UIMap.AssertNumeric(" 132.7248      ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 132.7248      ");
            UIMap.AssertPrinter("     132.432933 HMS→",
                                "       132.7248  ***");

            UIMap.Four();
            UIMap.Two();
            UIMap.Period();
            UIMap.Five();
            UIMap.Seven();
            UIMap.AssertNumeric(" 42.57         ");
            UIMap.ToHMS();
            UIMap.AssertNumeric(" 42.3412       ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 42.3412       ");
            UIMap.AssertPrinter("        42.5700 →HMS",
                                "        42.3412  ***");

            UIMap.SendKeys("38.08");
            UIMap.Five();
            UIMap.Six();
            UIMap.Seven();
            UIMap.AssertNumeric(" 38.08567      ");
            UIMap.FromHMS();
            UIMap.AssertNumeric(" 38.1491       ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 38.1491       ");
            UIMap.AssertPrinter("       38.08567 HMS→",
                                "        38.1491  ***");
        }
コード例 #7
0
ファイル: HP97p107p108.cs プロジェクト: mockingbirdnest/HP
        public void p107p108()
        {
            // Vector Arithmetic.

            UIMap.CLREG();
            UIMap.PExchangeS();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.Four();
            UIMap.Five();
            UIMap.ENTER();
            UIMap.AssertNumeric(" 45.00         ");
            UIMap.SendKeys("150");
            UIMap.AssertNumeric(" 150.          ");
            UIMap.ToRectangular();
            UIMap.AssertNumeric(" 106.07        ");
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 1.00          ");
            UIMap.Two();
            UIMap.Five();
            UIMap.ENTER();
            UIMap.AssertNumeric(" 25.00         ");
            UIMap.Four();
            UIMap.Zero();
            UIMap.AssertNumeric(" 40.           ");
            UIMap.ToRectangular();
            UIMap.SigmaMinus();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.AssertPrinter("                CLRG",
                                "                 P⇄S",
                                "          45.00 ENT↑",
                                "         150.00   →R",
                                "                  Σ+",
                                "          25.00 ENT↑",
                                "          40.00   →R",
                                "                  Σ-");

            UIMap.RCLSigma();
            UIMap.AssertNumeric(" 69.81         ");
            UIMap.ToPolar();
            UIMap.AssertNumeric(" 113.24        ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 113.24        ");
            UIMap.XExchangeY();
            UIMap.AssertNumeric(" 51.94         ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 51.94         ");
            UIMap.AssertPrinter("                RCLΣ",
                                "                  →P",
                                "         113.24  ***",
                                "                 X⇄Y",
                                "          51.94  ***");
        }
コード例 #8
0
 public void p45()
 {
     // Error Display
     UIMap.Four();
     UIMap.CHS();
     UIMap.AssertNumeric("-4.            ");
     UIMap.Sqrt();
     UIMap.AssertText(" Error         ");
     UIMap.AssertPrinter("          -4.00   √X",
                         "               ERROR");
     UIMap.CLx();
     UIMap.AssertNumeric("-4.00          ");
 }
コード例 #9
0
        public void p60p61()
        {
            // Constant Arithmetic
            UIMap.ManTraceNorm1Left();
            UIMap.One();
            UIMap.Period();
            UIMap.One();
            UIMap.Five();
            UIMap.AssertNumeric(" 1.15          ");
            UIMap.ENTER();
            UIMap.AssertNumeric(" 1.15          ");
            UIMap.ENTER();
            UIMap.AssertNumeric(" 1.15          ");
            UIMap.ENTER();
            UIMap.AssertNumeric(" 1.15          ");
            UIMap.One();
            UIMap.Zero();
            UIMap.Zero();
            UIMap.Zero();
            UIMap.AssertNumeric(" 1000.         ");
            UIMap.Multiplication();
            UIMap.AssertNumeric(" 1150.00       ");
            UIMap.AssertPrinter("           1.15 ENT↑",
                                "                ENT↑",
                                "                ENT↑",
                                "        1000.00   × ",
                                "        1150.00  ***");

            UIMap.Multiplication();
            UIMap.AssertNumeric(" 1322.50       ");
            UIMap.Multiplication();
            UIMap.AssertNumeric(" 1520.88       ");
            UIMap.Multiplication();
            UIMap.AssertNumeric(" 1749.01       ");
            UIMap.Multiplication();
            UIMap.AssertNumeric(" 2011.36       ");
            UIMap.Multiplication();
            UIMap.AssertNumeric(" 2313.06       ");
            UIMap.AssertPrinter("                  × ",
                                "        1322.50  ***",
                                "                  × ",
                                "        1520.88  ***",
                                "                  × ",
                                "        1749.01  ***",
                                "                  × ",
                                "        2011.36  ***",
                                "                  × ",
                                "        2313.06  ***");
        }
コード例 #10
0
        public void p47()
        {
            // The Stack

            // Initial Display
            UIMap.PrintStack();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.AssertPrinter("                PRST",
                                "",
                                "           0.00   T ",
                                "           0.00   Z ",
                                "           0.00   Y ",
                                "           0.00   X ",
                                "");
        }
コード例 #11
0
ファイル: HP97p53p54.cs プロジェクト: mockingbirdnest/HP
        public void p53p54()
        {
            // Two-Number Functions and the Stack
            UIMap.CLx();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.ENTER();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.ENTER();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.ENTER();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.Three();
            UIMap.Four();
            UIMap.AssertNumeric(" 34.           ");
            UIMap.ENTER();
            UIMap.AssertNumeric(" 34.00         ");
            UIMap.AssertPrinter("                 CLX",
                                "                ENT↑",
                                "                ENT↑",
                                "                ENT↑",
                                "          34.00 ENT↑");

            UIMap.Two();
            UIMap.One();
            UIMap.AssertNumeric(" 21.           ");
            UIMap.PrintStack();
            UIMap.AssertNumeric(" 21.00         ");
            UIMap.AssertPrinter("          21.00 PRST",
                                "",
                                "           0.00   T ",
                                "           0.00   Z ",
                                "          34.00   Y ",
                                "          21.00   X ",
                                "");

            UIMap.Addition();
            UIMap.AssertNumeric(" 55.00         ");
            UIMap.PrintStack();
            UIMap.AssertNumeric(" 55.00         ");
            UIMap.AssertPrinter("                  + ",
                                "                PRST",
                                "",
                                "           0.00   T ",
                                "           0.00   Z ",
                                "           0.00   Y ",
                                "          55.00   X ",
                                "");
        }
コード例 #12
0
        public void p42p43()
        {
            // Automatic Display Switching
            UIMap.CLx();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.Period();
            UIMap.Zero();
            UIMap.Five();
            UIMap.ENTER();
            UIMap.AssertNumeric(" 0.05          ");
            UIMap.Three();
            UIMap.YToTheXth();
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 1.250000000-04");
            UIMap.AssertPrinter("                 CLX",
                                "            .05 ENT↑",
                                "           3.00   Yˣ",
                                " 1.250000000-04  ***");

            UIMap.One();
            UIMap.Five();
            UIMap.Eight();
            UIMap.Two();
            UIMap.ZeroZeroZero();
            UIMap.ENTER();
            UIMap.AssertNumeric(" 1582000.00    ");
            UIMap.One();
            UIMap.Eight();
            UIMap.Four();
            UIMap.Two();
            UIMap.Multiplication();
            UIMap.AssertNumeric(" 2914044000.   ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 2914044000.   ");
            UIMap.AssertPrinter("     1582000.00 ENT↑",
                                "        1842.00   × ",
                                "    2914044000.  ***");

            UIMap.One();
            UIMap.Zero();
            UIMap.Multiplication();
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 2.914044000 10");
            UIMap.AssertPrinter("          10.00   × ",
                                " 2.914044000+10  ***");
        }
コード例 #13
0
 public void p65()
 {
     // The I Register
     UIMap.Three();
     UIMap.Period();
     UIMap.Seven();
     UIMap.Eight();
     UIMap.Five();
     UIMap.STO();
     UIMap.I();
     UIMap.AssertNumeric(" 3.79          ");
     UIMap.Two();
     UIMap.Multiplication();
     UIMap.AssertNumeric(" 7.57          ");
     UIMap.PRINTx();
     UIMap.AssertNumeric(" 7.57          ");
     UIMap.One();
     UIMap.Four();
     UIMap.Period();
     UIMap.Four();
     UIMap.I();
     UIMap.Multiplication();
     UIMap.AssertNumeric(" 54.50         ");
     UIMap.PRINTx();
     UIMap.AssertNumeric(" 54.50         ");
     UIMap.Five();
     UIMap.Five();
     UIMap.I();
     UIMap.Multiplication();
     UIMap.AssertNumeric(" 208.18        ");
     UIMap.PRINTx();
     UIMap.AssertNumeric(" 208.18        ");
     UIMap.AssertPrinter("          3.785 STOI",
                         "           2.00   × ",
                         "           7.57  ***",
                         "          14.40 RCLI",
                         "                  × ",
                         "          54.50  ***",
                         "          55.00 RCLI",
                         "                  × ",
                         "         208.18  ***");
 }
コード例 #14
0
ファイル: HP97p82p83.cs プロジェクト: mockingbirdnest/HP
        public void p82p83()
        {
            // Percentages
            UIMap.SendKeys("1500{ENTER}");
            UIMap.AssertNumeric(" 1500.00       ");
            UIMap.Six();
            UIMap.Period();
            UIMap.Five();
            UIMap.AssertNumeric(" 6.5           ");
            UIMap.Percent();
            UIMap.AssertNumeric(" 97.50         ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 97.50         ");
            UIMap.AssertPrinter("        1500.00 ENT↑",
                                "           6.50   % ",
                                "          97.50  ***");

            UIMap.Addition();
            UIMap.AssertNumeric(" 1597.50       ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 1597.50       ");
            UIMap.AssertPrinter("                  + ",
                                "        1597.50  ***");

            // Percent of Change
            UIMap.Seven();
            UIMap.Zero();
            UIMap.ENTER();
            UIMap.AssertNumeric(" 70.00         ");
            UIMap.Two();
            UIMap.Four();
            UIMap.Zero();
            UIMap.PercentChange();
            UIMap.AssertNumeric(" 242.86        ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 242.86        ");
            UIMap.AssertPrinter("          70.00 ENT↑",
                                "         240.00  %CH",
                                "         242.86  ***");
        }
コード例 #15
0
        public void p81()
        {
            // Using Pi
            UIMap.Three();
            UIMap.Pi();
            UIMap.Multiplication();
            UIMap.AssertNumeric(" 9.42          ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 9.42          ");
            UIMap.AssertPrinter("           3.00   Pi",
                                "                  × ",
                                "           9.42  ***");

            UIMap.One();
            UIMap.Two();
            UIMap.EEX();
            UIMap.Three();
            UIMap.AssertNumeric(" 12.         03");
            UIMap.ENTER();
            UIMap.Two();
            UIMap.Division();
            UIMap.AssertNumeric(" 6000.00       ");
            UIMap.Pi();
            UIMap.Division();
            UIMap.AssertNumeric(" 1909.86       ");
            UIMap.Six();
            UIMap.Zero();
            UIMap.Division();
            UIMap.AssertNumeric(" 31.83         ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 31.83         ");
            UIMap.AssertPrinter("         12.+03 ENT↑",
                                "           2.00   ÷ ",
                                "                  Pi",
                                "                  ÷ ",
                                "          60.00   ÷ ",
                                "          31.83  ***");
        }
コード例 #16
0
ファイル: HP97p25.cs プロジェクト: mockingbirdnest/HP
        public void p25()
        {
            // Functions
            UIMap.ManTraceNorm1Left();

            UIMap.One();
            UIMap.Four();
            UIMap.Eight();
            UIMap.Period();
            UIMap.Eight();
            UIMap.Four();
            UIMap.AssertNumeric(" 148.84        ");

            UIMap.Sqrt();
            UIMap.AssertNumeric(" 12.20         ");
            UIMap.AssertPrinter("         148.84   √X",
                                "          12.20  ***");

            UIMap.Square();
            UIMap.AssertNumeric(" 148.84        ");
            UIMap.AssertPrinter("                  X²",
                                "         148.84  ***");
        }
コード例 #17
0
ファイル: HP97p64p65.cs プロジェクト: mockingbirdnest/HP
        public void p64p65()
        {
            // Storing Numbers
            UIMap.Six();
            UIMap.Period();
            UIMap.Zero();
            UIMap.Two();
            UIMap.EEX();
            UIMap.Two();
            UIMap.Three();
            UIMap.AssertNumeric(" 6.02        23");
            UIMap.STO();
            UIMap.Two();
            UIMap.AssertNumeric(" 6.020000000 23");
            UIMap.AssertPrinter("        6.02+23 STO2");
            UIMap.Square();
            UIMap.AssertNumeric(" 3.624040000 47");
            UIMap.STO();
            UIMap.B();
            UIMap.AssertNumeric(" 3.624040000 47");
            UIMap.AssertPrinter("                  X²",
                                "                STOB");

            // Recalling Numbers
            UIMap.RCL();
            UIMap.Two();
            UIMap.AssertNumeric(" 6.020000000 23");
            UIMap.AssertPrinter("                RCL2");
            UIMap.RCL();
            UIMap.B();
            UIMap.AssertNumeric(" 3.624040000 47");
            UIMap.AssertPrinter("                RCLB");
            UIMap.RCL();
            UIMap.Two();
            UIMap.AssertNumeric(" 6.020000000 23");
            UIMap.AssertPrinter("                RCL2");
        }
コード例 #18
0
 public void p59p60()
 {
     // Recovering a Number for Calculation
     UIMap.Seven();
     UIMap.Period();
     UIMap.Three();
     UIMap.Two();
     UIMap.AssertNumeric(" 7.32          ");
     UIMap.ENTER();
     UIMap.AssertNumeric(" 7.32          ");
     UIMap.Three();
     UIMap.Period();
     UIMap.Six();
     UIMap.Five();
     UIMap.Zero();
     UIMap.One();
     UIMap.One();
     UIMap.Two();
     UIMap.Three();
     UIMap.Three();
     UIMap.One();
     UIMap.AssertNumeric(" 3.650112331   ");
     UIMap.Addition();
     UIMap.AssertNumeric(" 10.97         ");
     UIMap.LASTx();
     UIMap.AssertNumeric(" 3.65          ");
     UIMap.Division();
     UIMap.AssertNumeric(" 3.01          ");
     UIMap.PRINTx();
     UIMap.AssertNumeric(" 3.01          ");
     UIMap.AssertPrinter("           7.32 ENT↑",
                         "    3.650112331   + ",
                         "                LSTX",
                         "                  ÷ ",
                         "           3.01  ***");
 }
コード例 #19
0
        public void p55p57()
        {
            // Chain Arithmetic
            UIMap.One();
            UIMap.Six();
            UIMap.AssertNumeric(" 16.           ");
            UIMap.ENTER();
            UIMap.AssertNumeric(" 16.00         ");
            UIMap.Three();
            UIMap.Zero();
            UIMap.AssertNumeric(" 30.           ");
            UIMap.Addition();
            UIMap.AssertNumeric(" 46.00         ");
            UIMap.OneOne();
            UIMap.AssertNumeric(" 11.           ");
            UIMap.Addition();
            UIMap.AssertNumeric(" 57.00         ");
            UIMap.One();
            UIMap.Seven();
            UIMap.AssertNumeric(" 17.           ");
            UIMap.Addition();
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 74.00         ");
            UIMap.AssertPrinter("          16.00 ENT↑",
                                "          30.00   + ",
                                "          11.00   + ",
                                "          17.00   + ",
                                "          74.00  ***");

            UIMap.CLx();
            UIMap.AssertPrinter("                 CLX");   // Not in the manual.

            UIMap.One();
            UIMap.Six();
            UIMap.AssertNumeric(" 16.           ");
            UIMap.ENTER();
            UIMap.AssertNumeric(" 16.00         ");
            UIMap.Three();
            UIMap.Zero();
            UIMap.AssertNumeric(" 30.           ");
            UIMap.ENTER();
            UIMap.AssertNumeric(" 30.00         ");
            UIMap.One();
            UIMap.One();
            UIMap.AssertNumeric(" 11.           ");
            UIMap.ENTER();
            UIMap.AssertNumeric(" 11.00         ");
            UIMap.One();
            UIMap.Seven();
            UIMap.AssertNumeric(" 17.           ");
            UIMap.Addition();
            UIMap.AssertNumeric(" 28.00         ");
            UIMap.Addition();
            UIMap.AssertNumeric(" 58.00         ");
            UIMap.Addition();
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 74.00         ");
            UIMap.AssertPrinter("          16.00 ENT↑",
                                "          30.00 ENT↑",
                                "          11.00 ENT↑",
                                "          17.00   + ",
                                "                  + ",
                                "                  + ",
                                "          74.00  ***");
        }
コード例 #20
0
        public void p43p44()
        {
            // Key in Exponents of Ten
            UIMap.One();
            UIMap.Five();
            UIMap.Period();
            UIMap.Six();
            UIMap.AssertNumeric(" 15.6          ");
            UIMap.EEX();
            UIMap.AssertNumeric(" 15.6        00");
            UIMap.One();
            UIMap.Two();
            UIMap.AssertNumeric(" 15.6        12");
            UIMap.ENTER();
            UIMap.AssertNumeric(" 1.560000000 13");
            UIMap.Two();
            UIMap.Five();
            UIMap.Multiplication();
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 3.900000000 14");
            UIMap.AssertPrinter("        15.6+12 ENT↑",
                                "          25.00   × ",
                                " 3.900000000+14  ***");

            UIMap.EEX();
            UIMap.AssertNumeric(" 1.          00");
            UIMap.Six();
            UIMap.AssertNumeric(" 1.          06");
            UIMap.ENTER();
            UIMap.AssertNumeric(" 1000000.00    ");
            UIMap.Five();
            UIMap.Two();
            UIMap.Division();
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 19230.77      ");
            UIMap.AssertPrinter("          1.+06 ENT↑",
                                "          52.00   ÷ ",
                                "       19230.77  ***");

            UIMap.SCI();
            UIMap.DSP();
            UIMap.Six();
            UIMap.AssertNumeric(" 1.923077    04");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 1.923077    04");
            UIMap.AssertPrinter("                 SCI",
                                "                DSP6",
                                "    1.923077+04  ***");

            UIMap.CLx();
            UIMap.AssertNumeric(" 0.000000    00");
            UIMap.FIX();
            UIMap.DSP();
            UIMap.Two();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.Six();
            UIMap.Period();
            UIMap.Six();
            UIMap.Two();
            UIMap.Five();
            UIMap.EEX();
            UIMap.AssertNumeric(" 6.625       00");
            UIMap.CHS();
            UIMap.AssertNumeric(" 6.625      -00");
            UIMap.Two();
            UIMap.Seven();
            UIMap.AssertNumeric(" 6.625      -27");
            UIMap.ENTER();
            UIMap.AssertNumeric(" 6.625000000-27");
            UIMap.Five();
            UIMap.Zero();
            UIMap.Multiplication();
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 3.312500000-25");
            UIMap.AssertPrinter("                 CLX",
                                "                 FIX",
                                "                DSP2",
                                "       6.625-27 ENT↑",
                                "          50.00   × ",
                                " 3.312500000-25  ***");
        }
コード例 #21
0
        public void p91p92()
        {
            // Polar/Rectangular Coordinate Conversions
            UIMap.RAD();
            UIMap.Three();
            UIMap.ENTER();
            UIMap.AssertNumeric(" 3.00          ");
            UIMap.Four();
            UIMap.AssertNumeric(" 4.            ");
            UIMap.ToPolar();
            UIMap.AssertNumeric(" 5.00          ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 5.00          ");
            UIMap.XExchangeY();
            UIMap.AssertNumeric(" 0.64          ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 0.64          ");
            UIMap.AssertPrinter("                 RAD",
                                "           3.00 ENT↑",
                                "           4.00   →P",
                                "           5.00  ***",
                                "                 X⇄Y",
                                "           0.64  ***");

            UIMap.GRD();
            UIMap.AssertNumeric(" 0.64          ");
            UIMap.One();
            UIMap.Two();
            UIMap.Zero();
            UIMap.ENTER();
            UIMap.AssertNumeric(" 120.00        ");
            UIMap.Eight();
            UIMap.AssertNumeric(" 8.            ");
            UIMap.ToRectangular();
            UIMap.AssertNumeric("-2.47          ");
            UIMap.XExchangeY();
            UIMap.AssertNumeric(" 7.61          ");
            UIMap.AssertPrinter("                GRAD",
                                "         120.00 ENT↑",
                                "           8.00   →R",
                                "                 X⇄Y");

            UIMap.DEG();
            UIMap.AssertNumeric(" 7.61          ");
            UIMap.Three();
            UIMap.Six();
            UIMap.Period();
            UIMap.Five();
            UIMap.CHS();
            UIMap.AssertNumeric("-36.5          ");
            UIMap.ENTER();
            UIMap.AssertNumeric("-36.50         ");
            UIMap.Seven();
            UIMap.Seven();
            UIMap.Period();
            UIMap.Eight();
            UIMap.AssertNumeric(" 77.8          ");
            UIMap.ToRectangular();
            UIMap.AssertNumeric(" 62.54         ");
            UIMap.XExchangeY();
            UIMap.AssertNumeric("-46.28         ");
            UIMap.AssertPrinter("                 DEG",
                                "         -36.50 ENT↑",
                                "          77.80   →R",
                                "                 X⇄Y");
        }
コード例 #22
0
ファイル: HP97p93p96.cs プロジェクト: mockingbirdnest/HP
        public void p93p96 ()
        {
            // Logarithmic and Exponential Functions

            // Logarithms

            UIMap.Eight ();
            UIMap.Period ();
            UIMap.Two ();
            UIMap.Five ();
            UIMap.ENTER ();
            UIMap.AssertNumeric (" 8.25          ");
            UIMap.SendKeys ("105");
            UIMap.LOG ();
            UIMap.AssertNumeric (" 2.02          ");
            UIMap.Subtraction ();
            UIMap.AssertNumeric (" 6.23          ");
            UIMap.PRINTx ();
            UIMap.AssertNumeric (" 6.23          ");
            UIMap.AssertPrinter ("           8.25 ENT↑",
                                 "         105.00  LOG",
                                 "                  - ",
                                 "           6.23  ***");

            UIMap.Three ();
            UIMap.Zero ();
            UIMap.ENTER ();
            UIMap.AssertNumeric (" 30.00         ");
            UIMap.Nine ();
            UIMap.Period ();
            UIMap.Four ();
            UIMap.Division ();
            UIMap.AssertNumeric (" 3.19          ");
            UIMap.LN ();
            UIMap.AssertNumeric (" 1.16          ");
            UIMap.Two ();
            UIMap.Five ();
            UIMap.ZeroZeroZero ();
            UIMap.AssertNumeric (" 25000.        ");
            UIMap.Multiplication ();
            UIMap.AssertNumeric (" 29012.19      ");
            UIMap.PRINTx ();
            UIMap.AssertNumeric (" 29012.19      ");
            UIMap.AssertPrinter ("          30.00 ENT↑",
                                 "           9.40   ÷ ",
                                 "                  LN",
                                 "       25000.00   × ",
                                 "       29012.19  ***");

            // Raising Numbers to Powers

            UIMap.Two ();
            UIMap.ENTER ();
            UIMap.Nine ();
            UIMap.AssertNumeric (" 9.            ");
            UIMap.YToTheXth ();
            UIMap.AssertNumeric (" 512.00        ");
            UIMap.PRINTx ();
            UIMap.AssertNumeric (" 512.00        ");
            UIMap.AssertPrinter ("           2.00 ENT↑",
                                 "           9.00   Yˣ",
                                 "         512.00  ***");

            UIMap.Eight ();
            UIMap.ENTER ();
            UIMap.AssertNumeric (" 8.00          ");
            UIMap.SendKeys ("1.256");
            UIMap.Seven ();
            UIMap.CHS ();
            UIMap.YToTheXth ();
            UIMap.AssertNumeric (" 0.07          ");
            UIMap.PRINTx ();
            UIMap.AssertNumeric (" 0.07          ");
            UIMap.AssertPrinter ("           8.00 ENT↑",
                                 "        -1.2567   Yˣ",
                                 "           0.07  ***");

            UIMap.Two ();
            UIMap.Period ();
            UIMap.Five ();
            UIMap.CHS ();
            UIMap.ENTER ();
            UIMap.AssertNumeric ("-2.50          ");
            UIMap.Five ();
            UIMap.YToTheXth ();
            UIMap.AssertNumeric ("-97.66         ");
            UIMap.PRINTx ();
            UIMap.AssertNumeric ("-97.66         ");
            UIMap.AssertPrinter ("          -2.50 ENT↑",
                                 "           5.00   Yˣ",
                                 "         -97.66  ***");

            UIMap.Five ();
            UIMap.ENTER ();
            UIMap.AssertNumeric (" 5.00          ");
            UIMap.Three ();
            UIMap.Reciprocal ();
            UIMap.AssertNumeric (" 0.33          ");
            UIMap.YToTheXth ();
            UIMap.AssertNumeric (" 1.71          ");
            UIMap.PRINTx ();
            UIMap.AssertNumeric (" 1.71          ");
            UIMap.AssertPrinter ("           5.00 ENT↑",
                                "           3.00  1/X",
                                "                  Yˣ",
                                "           1.71  ***");

            UIMap.SendKeys ("350");
            UIMap.ENTER ();
            UIMap.AssertNumeric (" 350.00        ");
            UIMap.Six ();
            UIMap.SendKeys ("61.");
            UIMap.Five ();
            UIMap.Division ();
            UIMap.AssertNumeric (" 0.53          ");
            UIMap.Square ();
            UIMap.AssertNumeric (" 0.28          ");
            UIMap.SendKeys (".2");
            UIMap.Multiplication ();
            UIMap.AssertNumeric (" 0.06          ");
            UIMap.One ();
            UIMap.Addition ();
            UIMap.AssertNumeric (" 1.06          ");
            UIMap.Three ();
            UIMap.Period ();
            UIMap.Five ();
            UIMap.YToTheXth ();
            UIMap.AssertNumeric (" 1.21          ");
            UIMap.One ();
            UIMap.Subtraction ();
            UIMap.AssertNumeric (" 0.21          ");
            UIMap.One ();
            UIMap.ENTER ();
            UIMap.AssertNumeric (" 1.00          ");
            UIMap.Six ();
            UIMap.Period ();
            UIMap.Eight ();
            UIMap.Seven ();
            UIMap.Five ();
            UIMap.EEX ();
            UIMap.AssertNumeric (" 6.875       00");
            UIMap.CHS ();
            UIMap.Six ();
            UIMap.AssertNumeric (" 6.875      -06");
            UIMap.ENTER ();
            UIMap.AssertNumeric (" 6.875000000-06");
            UIMap.SendKeys ("25500");
            UIMap.Multiplication ();
            UIMap.AssertNumeric (" 0.18          ");
            UIMap.Subtraction ();
            UIMap.AssertNumeric (" 0.82          ");
            UIMap.SendKeys ("5.2656");
            UIMap.CHS ();
            UIMap.YToTheXth ();
            UIMap.AssertNumeric (" 2.76          ");
            UIMap.Multiplication ();
            UIMap.AssertNumeric (" 0.58          ");
            UIMap.One ();
            UIMap.Addition ();
            UIMap.AssertNumeric (" 1.58          ");
            UIMap.Period ();
            UIMap.SendKeys ("286");
            UIMap.YToTheXth ();
            UIMap.AssertNumeric (" 1.14          ");
            UIMap.One ();
            UIMap.Subtraction ();
            UIMap.AssertNumeric (" 0.14          ");
            UIMap.Five ();
            UIMap.Multiplication ();
            UIMap.AssertNumeric (" 0.70          ");
            UIMap.Sqrt ();
            UIMap.AssertNumeric (" 0.84          ");
            UIMap.PRINTx ();
            UIMap.AssertNumeric (" 0.84          ");
            UIMap.AssertPrinter ("         350.00 ENT↑",
                                 "         661.50   ÷ ",
                                 "                  X²",
                                 "            .20   × ",
                                 "           1.00   + ",
                                 "           3.50   Yˣ",
                                 "           1.00   - ",
                                 "           1.00 ENT↑",
                                 "       6.875-06 ENT↑",
                                 "       25500.00   × ",
                                 "                  - ",
                                 "        -5.2656   Yˣ",
                                 "                  × ",
                                 "           1.00   + ",
                                 "           .286   Yˣ",
                                 "           1.00   - ",
                                 "           5.00   × ",
                                 "                  √X",
                                 "           0.84  ***");
        }
コード例 #23
0
ファイル: HP97p48p53.cs プロジェクト: mockingbirdnest/HP
        public void p48p53()
        {
            // Manipulating Stack Contents

            // Reviewing the Stack
            UIMap.Four();
            UIMap.ENTER();
            UIMap.Three();
            UIMap.ENTER();
            UIMap.Two();
            UIMap.ENTER();
            UIMap.One();
            UIMap.AssertPrinter("           4.00 ENT↑",
                                "           3.00 ENT↑",
                                "           2.00 ENT↑");
            UIMap.AssertNumeric(" 1.            ");
            UIMap.PrintStack();
            UIMap.AssertPrinter("           1.00 PRST",
                                "",
                                "           4.00   T ",
                                "           3.00   Z ",
                                "           2.00   Y ",
                                "           1.00   X ",
                                "");
            UIMap.AssertNumeric(" 1.00          ");

            UIMap.RDown();
            UIMap.PrintStack();
            UIMap.AssertPrinter("                  R↓",
                                "                PRST",
                                "",
                                "           1.00   T ",
                                "           4.00   Z ",
                                "           3.00   Y ",
                                "           2.00   X ",
                                "");
            UIMap.AssertNumeric(" 2.00          ");

            UIMap.RDown();
            UIMap.PrintStack();
            UIMap.AssertPrinter("                  R↓",
                                "                PRST",
                                "",
                                "           2.00   T ",
                                "           1.00   Z ",
                                "           4.00   Y ",
                                "           3.00   X ",
                                "");
            UIMap.AssertNumeric(" 3.00          ");

            UIMap.RDown();
            UIMap.PrintStack();
            UIMap.AssertPrinter("                  R↓",
                                "                PRST",
                                "",
                                "           3.00   T ",
                                "           2.00   Z ",
                                "           1.00   Y ",
                                "           4.00   X ",
                                "");
            UIMap.AssertNumeric(" 4.00          ");

            UIMap.RDown();
            UIMap.PrintStack();
            UIMap.AssertPrinter("                  R↓",
                                "                PRST",
                                "",
                                "           4.00   T ",
                                "           3.00   Z ",
                                "           2.00   Y ",
                                "           1.00   X ",
                                "");
            UIMap.AssertNumeric(" 1.00          ");

            UIMap.PrintStack();
            UIMap.AssertPrinter("                PRST",
                                "",
                                "           4.00   T ",
                                "           3.00   Z ",
                                "           2.00   Y ",
                                "           1.00   X ",
                                "");
            UIMap.AssertNumeric(" 1.00          ");
            UIMap.XExchangeY();
            UIMap.AssertNumeric(" 2.00          ");
            UIMap.PrintStack();
            UIMap.AssertPrinter("                 X⇄Y",
                                "                PRST",
                                "",
                                "           4.00   T ",
                                "           3.00   Z ",
                                "           1.00   Y ",
                                "           2.00   X ",
                                "");
            UIMap.AssertNumeric(" 2.00          ");

            // Clearing the Display
            UIMap.CLx();
            UIMap.AssertPrinter("                 CLX");
            UIMap.PrintStack();
            UIMap.AssertPrinter("                PRST",
                                "",
                                "           4.00   T ",
                                "           3.00   Z ",
                                "           1.00   Y ",
                                "           0.00   X ",
                                "");
            UIMap.AssertNumeric(" 0.00          ");

            // The ENTER Key
            UIMap.Three();
            UIMap.One();
            UIMap.Four();
            UIMap.Period();
            UIMap.Three();
            UIMap.Two();
            UIMap.ENTER();
            UIMap.AssertPrinter("         314.32 ENT↑");
            UIMap.AssertNumeric(" 314.32        ");
            // Not in the manual, but useful to check the stack
            UIMap.PrintStack();
            UIMap.AssertPrinter("                PRST",
                                "",
                                "           3.00   T ",
                                "           1.00   Z ",
                                "         314.32   Y ",
                                "         314.32   X ",
                                "");

            UIMap.Five();
            UIMap.Four();
            UIMap.Three();
            UIMap.Period();
            UIMap.Two();
            UIMap.Eight();
            UIMap.AssertNumeric(" 543.28        ");
            UIMap.CLx();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.Six();
            UIMap.Eight();
            UIMap.Nine();
            UIMap.Period();
            UIMap.Four();
            UIMap.AssertNumeric(" 689.4         ");

            // One-Number Functions and the Stack
            UIMap.Sqrt();
            UIMap.AssertPrinter("         689.40   √X");
            UIMap.AssertNumeric(" 26.26         ");
            // Not in the manual, but useful to check the stack
            UIMap.PrintStack();
            UIMap.AssertPrinter("                PRST",
                                "",
                                "           3.00   T ",
                                "           1.00   Z ",
                                "         314.32   Y ",
                                "          26.26   X ",
                                "");
        }
コード例 #24
0
        public void p27p28()
        {
            // Two-Number Functions
            UIMap.ManTraceNorm1Left();
            UIMap.One();
            UIMap.Two();
            UIMap.ENTER();
            UIMap.Three();
            UIMap.Addition();
            UIMap.AssertNumeric(" 15.00         ");
            UIMap.AssertPrinter("          12.00 ENT↑",
                                "           3.00   + ",
                                // The documentation seems to assume that PRINTx is required for printing the result,
                                // as if we were in NORM mode, but we really are in TRACE mode.
                                "          15.00  ***");
            UIMap.PRINTx();
            UIMap.AssertPrinter("          15.00  ***");
            UIMap.One();
            UIMap.Two();
            UIMap.ENTER();
            UIMap.Three();
            UIMap.Subtraction();
            UIMap.AssertNumeric(" 9.00          ");
            UIMap.AssertPrinter("          12.00 ENT↑",
                                "           3.00   - ",
                                "           9.00  ***");
            UIMap.One();
            UIMap.Two();
            UIMap.ENTER();
            UIMap.Three();
            UIMap.Multiplication();
            UIMap.AssertNumeric(" 36.00         ");
            UIMap.AssertPrinter("          12.00 ENT↑",
                                "           3.00   × ",
                                "          36.00  ***");
            UIMap.One();
            UIMap.Two();
            UIMap.ENTER();
            UIMap.Three();
            UIMap.Division();
            UIMap.AssertNumeric(" 4.00          ");
            UIMap.AssertPrinter("          12.00 ENT↑",
                                "           3.00   ÷ ",
                                "           4.00  ***");

            UIMap.Three();
            UIMap.AssertNumeric(" 3.            ");
            UIMap.ENTER();
            UIMap.AssertNumeric(" 3.00          ");
            UIMap.Six();
            UIMap.AssertNumeric(" 6.            ");
            UIMap.YToTheXth();
            UIMap.AssertNumeric(" 729.00        ");
            UIMap.AssertPrinter("           3.00 ENT↑",
                                "           6.00   Yˣ",
                                "         729.00  ***");
            UIMap.One();
            UIMap.Six();
            UIMap.ENTER();
            UIMap.Four();
            UIMap.YToTheXth();
            UIMap.AssertNumeric(" 65536.00      ");
            UIMap.Eight();
            UIMap.One();
            UIMap.ENTER();
            UIMap.Two();
            UIMap.YToTheXth();
            UIMap.AssertNumeric(" 6561.00       ");
            UIMap.SendKeys("22");
            UIMap.Five();
            UIMap.ENTER();
            UIMap.Period();
            UIMap.Five();
            UIMap.YToTheXth();
            UIMap.AssertNumeric(" 15.00         ");
            UIMap.Two();
            UIMap.ENTER();
            UIMap.One();
            UIMap.Six();
            UIMap.YToTheXth();
            UIMap.AssertNumeric(" 65536.00      ");
            UIMap.One();
            UIMap.Six();
            UIMap.ENTER();
            UIMap.Period();
            UIMap.Two();
            UIMap.Five();
            UIMap.YToTheXth();
            UIMap.AssertNumeric(" 2.00          ");
        }
コード例 #25
0
        public void p99p100()
        {
            // Statistical Functions

            // Accumulations

            UIMap.CLREG();
            UIMap.PExchangeS();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.Seven();
            UIMap.ENTER();
            UIMap.AssertNumeric(" 7.00          ");
            UIMap.Five();
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 1.00          ");
            UIMap.Five();
            UIMap.ENTER();
            UIMap.AssertNumeric(" 5.00          ");
            UIMap.Three();
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 2.00          ");
            UIMap.Nine();
            UIMap.ENTER();
            UIMap.AssertNumeric(" 9.00          ");
            UIMap.Eight();
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 3.00          ");
            UIMap.PExchangeS();
            UIMap.AssertNumeric(" 3.00          ");
            UIMap.PrintReg();
            UIMap.AssertNumeric(" 3.00          ");
            UIMap.AssertPrinter("                CLRG",
                                "                 P⇄S",
                                "           7.00 ENT↑",
                                "           5.00   Σ+",
                                "           5.00 ENT↑",
                                "           3.00   Σ+",
                                "           9.00 ENT↑",
                                "           8.00   Σ+",
                                "                 P⇄S",
                                "                PREG",
                                "",
                                "           0.00   0 ",
                                "           0.00   1 ",
                                "           0.00   2 ",
                                "           0.00   3 ",
                                "          16.00   4 ",
                                "          98.00   5 ",
                                "          21.00   6 ",
                                "         155.00   7 ",
                                "         122.00   8 ",
                                "           3.00   9 ",
                                "           0.00   A ",
                                "           0.00   B ",
                                "           0.00   C ",
                                "           0.00   D ",
                                "           0.00   E ",
                                "           0.00   I ",
                                "");

            UIMap.RCL();
            UIMap.Four();
            UIMap.AssertNumeric(" 16.00         ");
            UIMap.RCL();
            UIMap.Five();
            UIMap.AssertNumeric(" 98.00         ");
            UIMap.RCL();
            UIMap.Six();
            UIMap.AssertNumeric(" 21.00         ");
            UIMap.RCL();
            UIMap.Seven();
            UIMap.AssertNumeric(" 155.00        ");
            UIMap.RCL();
            UIMap.Eight();
            UIMap.AssertNumeric(" 122.00        ");
            UIMap.RCL();
            UIMap.Nine();
            UIMap.AssertNumeric(" 3.00          ");
            UIMap.AssertPrinter("                RCL4",
                                "                RCL5",
                                "                RCL6",
                                "                RCL7",
                                "                RCL8",
                                "                RCL9");
        }
コード例 #26
0
ファイル: HP97p106.cs プロジェクト: mockingbirdnest/HP
        public void p106()
        {
            // Deleting and Correcting Data.

            // Setup as in p104p105.
            UIMap.ManTraceNorm2Left();
            UIMap.CLREG();
            UIMap.PExchangeS();
            UIMap.Six();
            UIMap.Two();
            UIMap.ENTER();
            UIMap.SendKeys("1200");
            UIMap.SigmaPlus();
            UIMap.Five();
            UIMap.Eight();
            UIMap.ENTER();
            UIMap.One();
            UIMap.Five();
            UIMap.ZeroZero();
            UIMap.SigmaPlus();
            UIMap.Six();
            UIMap.Two();
            UIMap.ENTER();
            UIMap.One();
            UIMap.Four();
            UIMap.Five();
            UIMap.Zero();
            UIMap.SigmaPlus();
            UIMap.SendKeys("73");
            UIMap.ENTER();
            UIMap.One();
            UIMap.Nine();
            UIMap.Five();
            UIMap.Zero();
            UIMap.SigmaPlus();
            UIMap.Eight();
            UIMap.Four();
            UIMap.ENTER();
            UIMap.SendKeys("1000");
            UIMap.SigmaPlus();
            UIMap.Six();
            UIMap.Eight();
            UIMap.ENTER();
            UIMap.One();
            UIMap.Seven();
            UIMap.Five();
            UIMap.Zero();
            UIMap.SigmaPlus();
            UIMap.ManTraceNorm2Right();

            UIMap.Six();
            UIMap.Two();
            UIMap.ENTER();
            UIMap.One();
            UIMap.Two();
            UIMap.Zero();
            UIMap.Zero();
            UIMap.AssertNumeric(" 1200.         ");
            UIMap.SigmaMinus();
            UIMap.AssertNumeric(" 5.00          ");
            UIMap.Two();
            UIMap.One();
            UIMap.ENTER();
            UIMap.One();
            UIMap.Three();
            UIMap.ZeroZero();
            UIMap.AssertNumeric(" 1300.         ");
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 6.00          ");
            UIMap.AssertPrinter("          62.00 ENT↑",
                                "        1200.00   Σ-",
                                "          21.00 ENT↑",
                                "        1300.00   Σ+");

            UIMap.XAverage();
            UIMap.AssertNumeric(" 1491.67       ");
            UIMap.XExchangeY();
            UIMap.AssertNumeric(" 61.00         ");
            UIMap.s();
            UIMap.AssertNumeric(" 333.79        ");
            UIMap.XExchangeY();
            UIMap.AssertNumeric(" 21.60         ");
            UIMap.AssertPrinter("                 x̅ ",
                                "                 X⇄Y",
                                "                  S ",
                                "                 X⇄Y");
        }
コード例 #27
0
 public void PrintXStartup()
 {
     UIMap.PRINTx();
     UIMap.AssertNumeric(" 0.00          ");
     UIMap.AssertPrinter("           0.00  ***");
 }
コード例 #28
0
        public void p73p74()
        {
            // Storage Register Arithmetic
            UIMap.Two();
            UIMap.Five();
            UIMap.ENTER();
            UIMap.Two();
            UIMap.Seven();
            UIMap.Addition();
            UIMap.One();
            UIMap.Nine();
            UIMap.Addition();
            UIMap.Two();
            UIMap.Three();
            UIMap.Addition();
            UIMap.AssertNumeric(" 94.00         ");
            UIMap.Five();
            UIMap.Five();
            UIMap.Multiplication();
            UIMap.AssertNumeric(" 5170.00       ");
            UIMap.STO();
            UIMap.Five();
            UIMap.AssertNumeric(" 5170.00       ");
            UIMap.Two();
            UIMap.Percent();
            UIMap.AssertNumeric(" 103.40        ");
            UIMap.STO();
            UIMap.Subtraction();
            UIMap.Five();
            UIMap.AssertNumeric(" 103.40        ");
            UIMap.AssertPrinter("          25.00 ENT↑",
                                "          27.00   + ",
                                "          19.00   + ",
                                "          23.00   + ",
                                "          55.00   × ",
                                "                STO5",
                                "           2.00   % ",
                                "                ST-5");

            UIMap.Two();
            UIMap.Six();
            UIMap.ENTER();
            UIMap.Two();
            UIMap.Eight();
            UIMap.Addition();
            UIMap.AssertNumeric(" 54.00         ");
            UIMap.Five();
            UIMap.Seven();
            UIMap.Period();
            UIMap.Five();
            UIMap.Zero();
            UIMap.Multiplication();
            UIMap.AssertNumeric(" 3105.00       ");
            UIMap.STO();
            UIMap.Addition();
            UIMap.Five();
            UIMap.AssertNumeric(" 3105.00       ");
            UIMap.Three();
            UIMap.Percent();
            UIMap.AssertNumeric(" 93.15         ");
            UIMap.STO();
            UIMap.Subtraction();
            UIMap.Five();
            UIMap.AssertNumeric(" 93.15         ");
            UIMap.RCL();
            UIMap.Five();
            UIMap.AssertNumeric(" 8078.45       ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 8078.45       ");
            UIMap.AssertPrinter("          26.00 ENT↑",
                                "          28.00   + ",
                                "          57.50   × ",
                                "                ST+5",
                                "           3.00   % ",
                                "                ST-5",
                                "                RCL5",
                                "        8078.45  ***");
        }
コード例 #29
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  ***");
        }
コード例 #30
0
        public void p101p102()
        {
            // Mean

            UIMap.CLREG();
            UIMap.PExchangeS();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.Six();
            UIMap.ENTER();
            UIMap.SendKeys("22");
            UIMap.CHS();
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 1.00          ");
            UIMap.OneOne();
            UIMap.ENTER();
            UIMap.One();
            UIMap.Seven();
            UIMap.CHS();
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 2.00          ");
            UIMap.One();
            UIMap.Four();
            UIMap.ENTER();
            UIMap.One();
            UIMap.Five();
            UIMap.CHS();
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 3.00          ");
            UIMap.SendKeys("12");
            UIMap.ENTER();
            UIMap.Nine();
            UIMap.CHS();
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 4.00          ");
            UIMap.Five();
            UIMap.ENTER();
            UIMap.SendKeys("24");
            UIMap.CHS();
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 5.00          ");
            UIMap.Two();
            UIMap.CHS();
            UIMap.ENTER();
            UIMap.Two();
            UIMap.Nine();
            UIMap.CHS();
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 6.00          ");
            UIMap.Nine();
            UIMap.CHS();
            UIMap.ENTER();
            UIMap.SendKeys("35");
            UIMap.CHS();
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 7.00          ");
            UIMap.AssertPrinter("                CLRG",
                                "                 P⇄S",
                                "           6.00 ENT↑",
                                "         -22.00   Σ+",
                                "          11.00 ENT↑",
                                "         -17.00   Σ+",
                                "          14.00 ENT↑",
                                "         -15.00   Σ+",
                                "          12.00 ENT↑",
                                "          -9.00   Σ+",
                                "           5.00 ENT↑",
                                "         -24.00   Σ+",
                                "          -2.00 ENT↑",
                                "         -29.00   Σ+",
                                "          -9.00 ENT↑",
                                "         -35.00   Σ+");

            UIMap.XAverage();
            UIMap.AssertNumeric("-21.57         ");
            UIMap.PRINTx();
            UIMap.AssertNumeric("-21.57         ");
            UIMap.XExchangeY();
            UIMap.AssertNumeric(" 5.29          ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 5.29          ");
            UIMap.AssertPrinter("                 x̅ ",
                                "         -21.57  ***",
                                "                 X⇄Y",
                                "           5.29  ***");
        }