HP Forums

Full Version: Function intersection
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In the Function application I drew two elementary functions: y = x ^ 2-2 and y = LN (x ^ 2-1). I wanted to find the intersection of these functions.
Unfortunately, this application will not do this. I do not know why. However, the places where these functions intersect without any problems are found by the Advanced Graphing and Geometry applications.

I’m thinking this has been addressed by a firmware update (involving conversion from PPL to CAS). Has anyone observed this with the current firmware?

There could be a labeling issue here too, as what is actually being found (within the Function app, using the current firmware) is a local extremum (of the difference of the two functions).
Same problem on my physical G2 with 12 02 2021 dated firmware…
Thanks for trying, and reporting back!

I’ve tried it again on a G2 Prime here and … lo and behold … my G2 here also failed to find an intersection between the two. (Although it did report an intersection when I tried earlier… Confused)

I’ve just now created a ticket for this in the bug tracker.
It is Not a bug, two floating point numbers gotten from square and log algorithms with a finite precision digits will be never exactly the same... compare with == always fails (99.99%)
RobbiOne wrote:
Quote:It is Not a bug, two floating point numbers gotten from square and log algorithms with a finite precision digits will be never exactly the same... compare with == always fails (99.99%)

Despite this is formally correct I do not think that this is a convincing argument. With the same argument most equations could not be solved numerically because - just for example - there is no floating point number with a finite precision which solves exactly SQRT(2)-X=0.

One problem for those two functions is that the curves do not intersect but touch each other.
The Prime indeed does not find the touch point. It not even finds the zero point of the combined function x^2-2-ln(x^2-1) which touches the x-axis.

Compared to this other calculators find the solutions. The TI N'spire CXII CAS finds the touch points as well as the zero points of the combined function. As well the much older TI-89 Titanium finds the touch points of the two curves and the zero point of the combined function. And even the DM 42 finds the zero point of the combined function.

So it seems that this indeed is a weakness of the HP Prime. It would be interesting whether this is with other functions that touch each other as well.
Well, I tried with solve in CAS, there were some messages shown in Terminal and was provided with the numercal approximation of sqrt(2) on my G1, my G2, the Android App and the virtual Prime.
The HP Prime finds touchpoints for most functions. I checked it out. The exception is the logarithmic functions of the LN and LOG types. I will give examples: y = LN (x) and y = 0.2x + 0.61, then y = log 3 (x) and y = 0.46x -0.28. The Function application will not find these places. And that needs to be corrected.
A calculator is not able do do things like humans can, i.e. read "solutions" from a graph, the function y=0.2*x+0.61 is no tangent to the function y=ln(x).
A not too difficult calculation shows that x=5, then y=ln(5) and the equation of the tangent-line then is y=0.2*x+ln(5)-1. The latter rounded is 0.61, but exactly that makes the difference.
Yes, Arno is right. Calculated values cannot be rounded. In the Symb window, enter the tangent equation, which is calculated according to the formula: y - y1 = m (x - x1). Below I am attaching screenshots of the second logarithmic function LOGB (x, 3) and its tangent at x = 2.
Reference URL's