What as to do with ATL, your question?
Anyway, you may
- Choose the
x
-range. - For each
x
evaluate the corrensponding y
using the equation: you'll end up with an array of points. - Find out the
y
-range using the array of points. - Compute the
{x, y}
scale factors and offsets. - Use the graphics primitive of your system to draw the trasnformed points (translated and scaled) to the screen and connect them with lines.
If you are using
Windows
, the raw
GDI
functions like
MoveToEx[
^],
LineTo[
^] provides the functionalities required (you may use
GDI+
for smoother output).