HP Forums

Full Version: Problem plotting a function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was going over some algebra homework with my oldest daughter tonight, and was showing her some graphs on the Prime to help her understanding. Also it was an opportunity to show off my new toy so there's that.

Anyway, using the Function app, I showed her a plot of y=X^6-8X^5+12X^4. We'd factored it and found that it has roots at 0, 2 and 6. We were surprised to see that the Prime missed plotting the root at 6. I suppose that the slope of the graph is so steep in this area that it looks like a discontinuity to the Prime.

I checked the manual and it doesn't list any limitations for simple polynomial functions for the Function app. The equation plotted correctly in the Advanced Graphing app, but it took a while to narrow down the answer.

Is there some setting somewhere that tells the Prime what constitutes a discontinuity? Is there a listing of the function types suited to each of the graphing apps?
I think it could be related with the zoom, if you set it to be very far away in the Y axis you see this:
[Image: 2015-10-04_2352.png]

Probably the way the prime joins the dots evaluating the function aborts the drawing on these cases.
That's strange. It plots the same way on my Prime using the Function app. It plots
correctly on my 50G. Might be a bug.
It is really a 'feature' of the plotting system. It happens frequently. You may find that changing the plot settings method gives you better mileage. Usual default tends to be adaptive, but you may see what you expect with one of the fixed step plotting methods. Adaptive tries to be clever but sometimes fails.

The Prime plotting engine 'tries' to provide a 'good' display of the function.
For example, it attempts to detect discontinuities and the like correctly.

In this case, with the plot basic setting, the function that you are trying to plot does oscillate so fast that it does look like a discontinuity from the point of view of the "imprecise" floating point math library (ie, not exact) and it is displayed as such.

Zooming out fixes this issue.

The advanced grapher does NOT have this problem and will draw the function properly (but much slower)

Reference URL's