When I solve the function f[x] = 3x^(2/3)-2x at the x values of [-1,0,1], the independent value of -1 gives a complex number and I cannot understand why - see attached.
When I treat the statement of x^(2/3) as the cubed root of x squared and solve the function, I get an answer of 5, which is the same answer that I get on my TI-89.
Obviously I am not understanding what Mathematica is doing in performing this calculation so I would certainly appreciate any clarification.
Great question. I’m not sure if this is your issue, but it is something to keep in mind.
When I first started using Wolfram I assumed that order of precedence would be what I think I learned many years ago in school. But, either I am remembering wrong or Wolfram is a bit different.
It’s not a question of precedence but one of parsing. WL does follow the traditional rules for order of operations in arithmetic. The FrontEnd parses the input and gives it to the Kernel for evaluation. To see how the FrontEnd interprets your input, wrap your expression in Hold and then in FullForm, then evaluate it: