Raising a Matrix to a Specific Power
Example: To raise

 

1

2

 

to the power of 3

 

3

4

 

 

 

 

0226 Input in a single line0227 Input using an actual on-screen matrix

Tip: You can raise only a square matrix to a specific power. An error occurs when you try to raise a non-square matrix to a specific power.

Using a Matrix to Assign Different Values to Multiple Variables

Use the procedure in this section when you want to use a matrix to assign various different values to multiple variables.

Syntax: Matrix with Numbers Matrix with Variables

(The matrix can be one line with multiple columns, or multiple lines with one column.)

0228 Assign the values 10, 20, and 30, to variables x, y, and z respectively2-6 Specifying a Number Base

While using the Main application, you can specify a default number base (binary, octal, decimal, hexadecimal). You can also convert between number bases and perform bitwise operations using logical operators (not, and, or, xor).

Note the following limitations, which all apply while a default number base (binary, octal, decimal, hexadecimal) is specified in the Main application.

You cannot use scientific functions, or [Action] or [Interactive] menu commands.

Except for Ans (Answer Memory variable), you cannot use variables.

You can input integers only. An error (Invalid Syntax) will occur if you try to input a non-integer value (like 1.5 or '2 ).

If a calculation produces a non-integer result (with a decimal part), the ClassPad will cut off the decimal part automatically. For example, the calculation 5 ÷ 2 while decimal is selected as the number base is 2.

An error message is displayed if you try to enter a value that is invalid for the speicfied number base. The following shows the numerals that can be used in each number system.

Binary: 0, 1Octal: 0 to 7Decimal: 0 to 9 Hexadecimal: 0 to 9, A, B, C, D, E, F
Binary, Octal, Decimal, and Hexadecimal Calculation Ranges

• The following are the display capacities and calculation ranges for each of the number bases.

Number BaseDisplay CapacityCalculation Range (Positive ; Negative)
Binary32 digits0 s x s 01111111111111111111111111111111 ;

 

 

10000000000000000000000000000000 s x s

 

 

11111111111111111111111111111111

 

 

 

Octal11 digits0 s x s 17777777777 ; 20000000000 s x s 37777777777

 

 

 

Decimal10 digits0 s x s 2147483647 ; −2147483648 s x s −1

 

 

 

Hexadecimal8 digits0 s x s 7FFFFFFF ; 80000000 s x s FFFFFFFF

 

 

 

Negative binary, octal, and hexadecimal values are produced using the two’s complement of the original value.

Chapter 2: Main Application

57