Easy question
09-01-2021, 04:11 PM (This post was last modified: 09-01-2021 04:13 PM by toml_12953.)
Post: #4
 toml_12953 Senior Member Posts: 1,949 Joined: Dec 2013
RE: Easy question
(09-01-2021 04:02 PM)rawi Wrote:  roadrunner wrote:
Quote:In home settings make sure the "Allow complex output from real input" box is checked
Yes, this works. But you get a different answer: (-1)^(-1/3) has the result 0.5-0.866025i and -1^(-1/3) has the result -1 as boggiani wrote.
It seems that the calculator interpretes -1^(-1/3) as -(1^(-1/3)).
If there are no brackets it should work from left to right.

Look at your list of priority of operations on page 26 of the User's Guide. ^ comes before unary minus. Only operations that are at the same level are evaluated left to right.

Algebraic precedence
The HP Prime calculator 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 (:=)

Tom L
Cui bono?
 « Next Oldest | Next Newest »

 Messages In This Thread Easy question - boggiano - 09-01-2021, 10:10 AM RE: Easy question - roadrunner - 09-01-2021, 11:54 AM RE: Easy question - rawi - 09-01-2021, 04:02 PM RE: Easy question - toml_12953 - 09-01-2021 04:11 PM RE: Easy question - jte - 09-06-2021, 12:36 AM RE: Easy question - Albert Chan - 09-06-2021, 01:17 AM RE: Easy question - ijabbott - 09-06-2021, 12:41 PM RE: Easy question - jte - 09-06-2021, 10:31 PM RE: Easy question - Albert Chan - 09-07-2021, 01:09 AM RE: Easy question - jte - 09-09-2021, 05:55 PM RE: Easy question - jte - 09-06-2021, 05:39 PM RE: Easy question - boggiano - 09-09-2021, 10:44 AM RE: Easy question - Joe Horn - 09-09-2021, 05:40 PM RE: Easy question - boggiano - 09-09-2021, 06:05 PM RE: Easy question - toml_12953 - 09-09-2021, 10:10 PM RE: Easy question - boggiano - 09-09-2021, 10:32 PM RE: Easy question - ijabbott - 09-09-2021, 11:59 PM RE: Easy question - Albert Chan - 09-10-2021, 05:23 PM RE: Easy question - ijabbott - 09-10-2021, 06:09 PM RE: Easy question - boggiano - 09-11-2021, 12:16 AM RE: Easy question - toml_12953 - 09-11-2021, 11:14 AM

User(s) browsing this thread: 1 Guest(s)