02-05-2020, 08:43 AM

Hello 50g fans

In the official HP forum (calculators) arised the question: it is possible to plot the inverse of a function and the example was: f(x) = x^3 + x^2 +1?

The answer is yes. Generally you can define two functions:

'FOO' (This code is produced by the command 'DEF'):

and 'IFOO':

Only caution the variable 'AG' is handled as a global variable, which appears in your working directory and should be deleted after usage of 'IFOO'.

It is good working in approximation mode. And the plotting area should be limited to areas with same montonic characteristics. Sometimes you get artefacts in plotting, you should be aware of this possibility.

In the pic you see such a artefact in the third sector of the coordinate system (the straight line vertical to the x-axis). The original function is also displayed.

Define in the 'y=" form 'Y1(x) = IFOO(X)' and set the values for x- and y-coordinates in the form 'WIN' and you get your inverse function plotted.

Certainley you can use 'IFOO' although only for seeking a special root. And you can extend 'IFOO' by a second variable for the starting value.

Have fun and I'm pleased about comments and critics.

Sincerely peacecalc

In the official HP forum (calculators) arised the question: it is possible to plot the inverse of a function and the example was: f(x) = x^3 + x^2 +1?

The answer is yes. Generally you can define two functions:

'FOO' (This code is produced by the command 'DEF'):

Code:

<< -> X 'X^3 + X^2 +1' >> @@ that is the original function mentioned above

and 'IFOO':

Code:

<< -> X

<< 'FOO(AG) - X = 0.' @@ equation for command 'ROOT'

'AG' @@ variable for solving

0. @@ starting value

ROOT @@ solving command

>>

>>

Only caution the variable 'AG' is handled as a global variable, which appears in your working directory and should be deleted after usage of 'IFOO'.

It is good working in approximation mode. And the plotting area should be limited to areas with same montonic characteristics. Sometimes you get artefacts in plotting, you should be aware of this possibility.

In the pic you see such a artefact in the third sector of the coordinate system (the straight line vertical to the x-axis). The original function is also displayed.

Define in the 'y=" form 'Y1(x) = IFOO(X)' and set the values for x- and y-coordinates in the form 'WIN' and you get your inverse function plotted.

Certainley you can use 'IFOO' although only for seeking a special root. And you can extend 'IFOO' by a second variable for the starting value.

Have fun and I'm pleased about comments and critics.

Sincerely peacecalc