コード例 #1
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  ***");
        }
コード例 #2
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");
        }
コード例 #3
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  ***");
        }
コード例 #4
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");
        }
コード例 #5
0
ファイル: HP97p66p72.cs プロジェクト: mockingbirdnest/HP
        public void p66p72()
        {
            // Set up memory by re-running some tests.
            p64p65();
            p65();

            // Protected Secondary Storage Registers
            UIMap.One();
            UIMap.Six();
            UIMap.Four();
            UIMap.Nine();
            UIMap.Five();
            UIMap.SendKeys("000");
            UIMap.AssertNumeric(" 16495000.     ");
            UIMap.STO();
            UIMap.Five();
            UIMap.AssertNumeric(" 16495000.00   ");
            UIMap.PExchangeS();
            UIMap.AssertNumeric(" 16495000.00   ");
            UIMap.AssertPrinter("    16495000.00 STO5",
                                "                 P⇄S");

            UIMap.RCL();
            UIMap.Five();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.AssertPrinter("                RCL5");

            UIMap.PExchangeS();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.RCL();
            UIMap.Five();
            UIMap.AssertNumeric(" 16495000.00   ");
            UIMap.AssertPrinter("                 P⇄S",
                                "                RCL5");

            UIMap.Five();
            UIMap.Multiplication();
            UIMap.AssertNumeric(" 82475000.00   ");
            UIMap.PExchangeS();
            UIMap.AssertNumeric(" 82475000.00   ");
            UIMap.STO();
            UIMap.Five();
            UIMap.AssertNumeric(" 82475000.00   ");
            UIMap.PExchangeS();
            UIMap.AssertNumeric(" 82475000.00   ");
            UIMap.AssertPrinter("           5.00   × ",
                                "                 P⇄S",
                                "                STO5",
                                "                 P⇄S");

            UIMap.RCL();
            UIMap.Five();
            UIMap.AssertNumeric(" 16495000.00   ");
            UIMap.PExchangeS();
            UIMap.AssertNumeric(" 16495000.00   ");
            UIMap.RCL();
            UIMap.Five();
            UIMap.AssertNumeric(" 82475000.00   ");
            UIMap.AssertPrinter("                RCL5",
                                "                 P⇄S",
                                "                RCL5");

            // Printing the Storage Registers
            UIMap.PrintReg();
            UIMap.AssertNumeric(" 82475000.00   ");
            UIMap.AssertPrinter("                PREG",
                                "",
                                "           0.00   0 ",
                                "           0.00   1 ",
                                "           0.00   2 ",
                                "           0.00   3 ",
                                "           0.00   4 ",
                                "    82475000.00   5 ",
                                "           0.00   6 ",
                                "           0.00   7 ",
                                "           0.00   8 ",
                                "           0.00   9 ",
                                "           0.00   A ",
                                " 3.624040000+47   B ",
                                "           0.00   C ",
                                "           0.00   D ",
                                "           0.00   E ",
                                "           3.79   I ",
                                "");

            UIMap.PExchangeS();
            UIMap.AssertNumeric(" 82475000.00   ");
            UIMap.PrintReg();
            UIMap.AssertNumeric(" 82475000.00   ");
            UIMap.AssertPrinter("                 P⇄S",
                                "                PREG",
                                "",
                                "           0.00   0 ",
                                "           0.00   1 ",
                                " 6.020000000+23   2 ",
                                "           0.00   3 ",
                                "           0.00   4 ",
                                "    16495000.00   5 ",
                                "           0.00   6 ",
                                "           0.00   7 ",
                                "           0.00   8 ",
                                "           0.00   9 ",
                                "           0.00   A ",
                                " 3.624040000+47   B ",
                                "           0.00   C ",
                                "           0.00   D ",
                                "           0.00   E ",
                                "           3.79   I ",
                                "");

            // Clearing Storage Registers
            UIMap.Zero();
            UIMap.STO();
            UIMap.B();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.PrintReg();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.AssertPrinter("           0.00 STOB",
                                "                PREG",
                                "",
                                "           0.00   0 ",
                                "           0.00   1 ",
                                " 6.020000000+23   2 ",
                                "           0.00   3 ",
                                "           0.00   4 ",
                                "    16495000.00   5 ",
                                "           0.00   6 ",
                                "           0.00   7 ",
                                "           0.00   8 ",
                                "           0.00   9 ",
                                "           0.00   A ",
                                "           0.00   B ",
                                "           0.00   C ",
                                "           0.00   D ",
                                "           0.00   E ",
                                "           3.79   I ",
                                "");

            // Not mentioned by the user manual but probably required to get an extra blank line.
            UIMap.PrinterFeedShort();

            UIMap.CLREG();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.PrintReg();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.AssertPrinter("",
                                "                CLRG",
                                "                PREG",
                                "",
                                "           0.00   0 ",
                                "           0.00   1 ",
                                "           0.00   2 ",
                                "           0.00   3 ",
                                "           0.00   4 ",
                                "           0.00   5 ",
                                "           0.00   6 ",
                                "           0.00   7 ",
                                "           0.00   8 ",
                                "           0.00   9 ",
                                "           0.00   A ",
                                "           0.00   B ",
                                "           0.00   C ",
                                "           0.00   D ",
                                "           0.00   E ",
                                "           0.00   I ",
                                "");

            UIMap.PExchangeS();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.CLREG();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.PrintReg();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.AssertPrinter("                 P⇄S",
                                "                CLRG",
                                "                PREG",
                                "",
                                "           0.00   0 ",
                                "           0.00   1 ",
                                "           0.00   2 ",
                                "           0.00   3 ",
                                "           0.00   4 ",
                                "           0.00   5 ",
                                "           0.00   6 ",
                                "           0.00   7 ",
                                "           0.00   8 ",
                                "           0.00   9 ",
                                "           0.00   A ",
                                "           0.00   B ",
                                "           0.00   C ",
                                "           0.00   D ",
                                "           0.00   E ",
                                "           0.00   I ",
                                "");
        }
コード例 #6
0
        public void p104p105()
        {
            // Standard Deviation.

            UIMap.CLREG();
            UIMap.PExchangeS();
            UIMap.AssertNumeric(" 0.00          ");
            UIMap.Six();
            UIMap.Two();
            UIMap.ENTER();
            UIMap.SendKeys("1200");
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 1.00          ");
            UIMap.Five();
            UIMap.Eight();
            UIMap.ENTER();
            UIMap.One();
            UIMap.Five();
            UIMap.ZeroZero();
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 2.00          ");
            UIMap.Six();
            UIMap.Two();
            UIMap.ENTER();
            UIMap.One();
            UIMap.Four();
            UIMap.Five();
            UIMap.Zero();
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 3.00          ");
            UIMap.SendKeys("73");
            UIMap.ENTER();
            UIMap.One();
            UIMap.Nine();
            UIMap.Five();
            UIMap.Zero();
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 4.00          ");
            UIMap.Eight();
            UIMap.Four();
            UIMap.ENTER();
            UIMap.SendKeys("1000");
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 5.00          ");
            UIMap.Six();
            UIMap.Eight();
            UIMap.ENTER();
            UIMap.One();
            UIMap.Seven();
            UIMap.Five();
            UIMap.Zero();
            UIMap.SigmaPlus();
            UIMap.AssertNumeric(" 6.00          ");
            UIMap.XAverage();
            UIMap.AssertNumeric(" 1475.00       ");
            UIMap.XExchangeY();
            UIMap.AssertNumeric(" 67.83         ");
            UIMap.s();
            UIMap.AssertNumeric(" 347.49        ");
            UIMap.XExchangeY();
            UIMap.AssertNumeric(" 9.52          ");
            UIMap.AssertPrinter("                CLRG",
                                "                 P⇄S",
                                "          62.00 ENT↑",
                                "        1200.00   Σ+",
                                "          58.00 ENT↑",
                                "        1500.00   Σ+",
                                "          62.00 ENT↑",
                                "        1450.00   Σ+",
                                "          73.00 ENT↑",
                                "        1950.00   Σ+",
                                "          84.00 ENT↑",
                                "        1000.00   Σ+",
                                "          68.00 ENT↑",
                                "        1750.00   Σ+",
                                "                 x̅ ",
                                "                 X⇄Y",
                                "                  S ",
                                "                 X⇄Y");

            UIMap.s();
            UIMap.AssertNumeric(" 347.49        ");
            UIMap.PExchangeS();
            UIMap.RCL();
            UIMap.Nine();
            UIMap.AssertNumeric(" 6.00          ");
            UIMap.One();
            UIMap.Subtraction();
            UIMap.AssertNumeric(" 5.00          ");
            UIMap.RCL();
            UIMap.Nine();
            UIMap.Division();
            UIMap.AssertNumeric(" 0.83          ");
            UIMap.Sqrt();
            UIMap.Multiplication();
            UIMap.AssertNumeric(" 317.21        ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 317.21        ");
            UIMap.XExchangeY();
            UIMap.AssertNumeric(" 9.52          ");
            UIMap.LASTx();
            UIMap.AssertNumeric(" 0.91          ");
            UIMap.Multiplication();
            UIMap.AssertNumeric(" 8.69          ");
            UIMap.PRINTx();
            UIMap.AssertNumeric(" 8.69          ");
            UIMap.AssertPrinter("                  S ",
                                "                 P⇄S",
                                "                RCL9",
                                "           1.00   - ",
                                "                RCL9",
                                "                  ÷ ",
                                "                  √X",
                                "                  × ",
                                "         317.21  ***",
                                "                 X⇄Y",
                                "                LSTX",
                                "                  × ",
                                "           8.69  ***");
        }