HP Forums
Function intersection - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Function intersection (/thread-14703.html)

Function intersection - Jan 11 - 03-23-2020 10:26 AM

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.


RE: Function intersection - jte - 01-07-2022 11:20 PM

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).

RE: Function intersection - lrdheat - 01-08-2022 12:59 AM

Same problem on my physical G2 with 12 02 2021 dated firmware…

RE: Function intersection - jte - 01-08-2022 04:57 AM

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.

RE: Function intersection - RobbiOne - 01-22-2022 07:08 PM

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%)

RE: Function intersection - rawi - 01-23-2022 05:33 PM

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.

RE: Function intersection - Arno K - 01-24-2022 04:45 PM

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.

RE: Function intersection - Jan 11 - 01-24-2022 09:00 PM

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.

RE: Function intersection - Arno K - Yesterday 05:06 PM

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.

RE: Function intersection - Jan 11 - Yesterday 07:59 PM

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.