joshuabowers / graphca

A graphing calculator and analytic calculus engine
MIT License
0 stars 0 forks source link

Graphing: Fidelity and visible asymptotes #12

Open joshuabowers opened 2 years ago

joshuabowers commented 2 years ago

When zooming a graphed 2d curve out, the fidelity of the curve drops: while a scaling mechanism exists, the number of points used to evaluate the curve only increases linearly wrt to scale; as such, curves become lossy the further away they are. This is not an issue---indeed, it is beneficial!---for relatively stable curves, which do not vary much outside of the origin; however, for curves which wildly fluctuate---periodically, or especially with jump asymptotes from positive infinity to negative infinity---the fidelity loss can result is visually awkward behavior.

Of note: the curve can be seen to randomly resize near asymptotes, as the evaluation points near the asymptote vacillate near it; further, loss of fidelity can cause points asymptotically approaching infinity to land in viewport, thus not triggering the current asymptote detection logic. These might be fixable by attempting to ascertain discontinuities for graphed curves, but this would likely require the implementation of limits.

Further investigation will be required.

joshuabowers commented 1 year ago

Behavior will need further review to verify currency; however, efforts undertaken (roughly) around last July may have solved the issue presented here. In any case, a future milestone will be addressing graph rendering, which will likely touch upon fidelity.