Post Reply 
Ans and ^ (1/3)
03-31-2015, 09:37 AM (This post was last modified: 03-31-2015 10:23 AM by BartDB.)
Post: #6
RE: Ans and ^ (1/3)
(03-30-2015 08:36 PM)Helge Gabert Wrote:  
(03-30-2015 06:08 PM)parisse Wrote:  Operator precedence : -a^b is -(a^b) not (-a)^b

No, I'm sorry if I wasn't clear enough

Ans^(1/3) returns a different root than (-1.2)^(1/3). That's all.

Mr Parisse gave the correct answer:

When you type -1.2^(1/3) operator precedence evaluates the power before the negative (on old calculators, a negative from +/- key was seen as part of the number, but some far eastern country* decided to treat it as 0-1.2^(1/3) and now all are following suit).

However, Ans is a variable containing the last calculated result. Thus Ans^(1/3) is the same as e.g. B^(1/3) where -1/2 is stored in B. Therefore it is evaluated as (-1/2)^(1/3) because the value of the variable as a whole is -1/2.

EDIT: in your first post you were comparing Ans^(1/3) vs -1/2^(1/3). In your reply to Mr. Parisse you are comparing Ans^(1/3) vs (-1/2)^(1/3) ... this second case should give the same answer because of the bracket around -1/2.

Best regards.

*my personal observation: i first noticed this on Casio's


Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Ans and ^ (1/3) - Helge Gabert - 03-30-2015, 04:08 PM
RE: Ans and ^ (1/3) - parisse - 03-30-2015, 06:08 PM
RE: Ans and ^ (1/3) - Helge Gabert - 03-30-2015, 08:36 PM
RE: Ans and ^ (1/3) - BartDB - 03-31-2015 09:37 AM
RE: Ans and ^ (1/3) - Joe Horn - 03-31-2015, 09:51 AM
RE: Ans and ^ (1/3) - John Colvin - 03-30-2015, 06:15 PM
RE: Ans and ^ (1/3) - Helge Gabert - 03-30-2015, 08:42 PM
RE: Ans and ^ (1/3) - toml_12953 - 04-10-2015, 06:05 PM
RE: Ans and ^ (1/3) - John Colvin - 04-10-2015, 06:34 PM
RE: Ans and ^ (1/3) - BartDB - 03-31-2015, 09:46 AM
RE: Ans and ^ (1/3) - John Colvin - 03-31-2015, 07:45 PM
RE: Ans and ^ (1/3) - Han - 03-31-2015, 08:31 PM
RE: Ans and ^ (1/3) - John Colvin - 03-31-2015, 08:41 PM
RE: Ans and ^ (1/3) - BartDB - 04-08-2015, 09:27 AM
RE: Ans and ^ (1/3) - Helge Gabert - 03-31-2015, 03:32 PM



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