3 ms·
If you're using a CAS in your graphing system you can probably decompose the function, identify potentially problematic components (e.g. tan(x^2/5+2x)), and ide
by nitrogen 15y ago
If you're using a CAS in your graphing system you can probably decompose the function, identify potentially problematic components (e.g. tan(x^2/5+2x)), and identify asymptotes or undefined areas directly using a database of undefined-generating functions.
This would produce a list of X values for which the overall function is not defined. When your pixel plotting passes one or more of those X values, don't draw a line. If you pass several in a single pixel, give up.