Algebraic precedence

Negative numbers

The following examples show the use of parentheses, and the use of the cursor keys to move outside a group of objects enclosed within parentheses.

Entering ...

Calculates …

 

 

e45+Sz

sin (45 + π)

e45>+Sz

sin (45) + π

Sj85>s9

85 × 9

Sj85s9

85 × 9

 

 

The HP Prime calculates according to the following order of precedence. Functions at the same level of precedence are evaluated in order from left to right.

1.Expressions within parentheses. Nested parentheses are evaluated from inner to outer.

2.!, √, reciprocal, square

3.nth root

4.Power, 10n

5.Negation, multiplication, division, and modulo

6.Addition and subtraction

7.Relational operators (<, >, ≤, ≥, ==, ≠, =)

8.AND and NOT

9.OR and XOR

10.Left argument of (where)

11.Assign to variable (:=)

It is best to press Qto start a negative number or to insert a negative sign. Pressing winstead will, in some situations, be interpreted as an operation to subtract the next number you enter from the last result. (This is explained in “To reuse the last result” on page 41.)

To raise a negative number to a power, enclose it in parentheses. For example, (–5)2= 25, whereas –52= –25.

Getting started

39

Page 43
Image 43
HP Prime Graphing NW280AAABA manual Negative numbers, Algebraic precedence, E45+Sz, Sj85s9