This is another typical problem from
undergraduate mathematics. There is given function
and
we need to plot its asymptotes. We will start our
solution by plotting the graph of the function and we will
look for coefficients of asymptotes. Finally, we will plot
the function and its asymptotes on the same picture.
h := x -> (x^2-1)/abs(x-2):
export(plot, Function2d):
R := 20:
U := Function2d(h(x), x=-R..R, y=-R..R):
plot(U)