Problem plotting a function - 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: Problem plotting a function (/thread-4881.html) Problem plotting a function - Brad Barton - 10-05-2015 02:03 AM 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. [attachment=2640] 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. [attachment=2641] 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? RE: Problem plotting a function - eried - 10-05-2015 02:57 AM 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: Probably the way the prime joins the dots evaluating the function aborts the drawing on these cases. RE: Problem plotting a function - John Colvin - 10-05-2015 03:03 AM 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. RE: Problem plotting a function - ColinJDenman - 10-05-2015 03:49 AM 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. RE: Problem plotting a function - cyrille de brĂ©bisson - 10-05-2015 05:44 AM Hello, 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) Cyrille