08-11-2016 03:26 AM
Hi folks! Here is my first post here in Hp support forum.
I have a problem with my HP 50g graphic calculator.
When I try plotting a function like the cube root of x^2 i get only a graph for x>0 when there should be also a specular one for x<0.
When I try using the command SQ(x) instead of x^2 inside the cube root I get the right graph.
I think the command x^2 doesn't works so well inside cube roots. Is there a way to fix this?
Thank you in advance.
Solved! Go to Solution.
08-11-2016 05:51 AM - edited 08-11-2016 05:54 AM
Welcome to the forum.
The problem is that the 50g handles the equation slightly differently when using X^2 inside the cube root - i.e. it evaluates to X^(2/3).
When using the dedicated root and square functions, the 50g evaluates the square and root separately.
Try the following: plot (X^2)^(1/3) and you will see both the negative and positive side of the graph - because you are now forcing the 50g to again evaluate the ^2 and ^(1/3) parts separately.
The 50g is an immensely powerful machine, but it does have some quirks to get used to. However, as you learn to use it, these "quirks" actually can be useful and make it the powerhouse that it is.
08-15-2016 04:55 AM - edited 08-15-2016 04:58 AM
Some further thoughts on this.
I think the word "evaluate" was an unfortunate choice of words on my part - I should rather say "interpret".
I was not referring to the EVAL function which does some other manipulation too.
Enter XROOT(3,X^2) and EVAL will give you XROOT(3,X)^2
Interestingly if you enter XROOT(3,X)^2 as the graphing equation, it will show both positive and negative sides of the graph.
Also to note:
The XROOT function will find the real cube roots of negative numbers.
The power function will find only the complex cube roots of negative numbers (and hence not plot them).
So in the graphing equation:
- XROOT(3,X^2) is interpreted as X^(2/3) and the power function will find only the complex cube roots of negative numbers (and hence not plot them).
- XROOT(3,X)^2 probably uses the XROOT function and finds the real cube roots of negative numbers.
Further to this:
If you want the equation to be used in a specific order, you can write a program (yes, programs can be graphed 🙂 )
<< X ^ 2 1 3 / ^ >>
will ensure X is first to the power 2, then to the power 1/3
<< X ^ 2 3 XROOT >>
will ensure X is first to the power 2, then cube root.
Let's say you store this program as AAA
Then in the graph equation let Y(1)=AAA
(NOTE: the program assumes the calculator is in RPN mode)