On 10/31/2012 10:27 AM, Jaime Villate wrote:
>>
>> 2? Might you provide the main commands in the ASYMPA package to compute
>> the asymptotes and draw them together with the graph as well ?
> I'm not familiar with ASYMPA, but since it sounds interesting to me, I
> will investigate it and if I come up with some ideas will let you know.
Hi,
asympa is not documented, but it seems to me that it will not be useful
for your case (parametric functions). Here is my suggestion (in the
meantime, Aleksas has just answered your message too).
Jaime
(%i1) display2d: false$
(%i2) f: t^3/(t-1)/(t+2)$
(%i3) g: (t^2-2*t)/(t-1)$
(%i4) m: ratsimp(g/f)$
(%i5) m1: subst(t=-2,m);
(%o5) 0
(%i6) b1: subst(t=-2,ratsimp(g-m1*f));
(%o6) -8/3
(%i7) m2: subst(t=1,m);
(%o7) -3
(%i8) b2: subst(t=1,ratsimp(g-m2*f));
(%o8) 8/3
(%i9)
plot2d([m1*x+b1,m2*x+b2,[parametric,f,g,[t,-20,-2.1]],[parametric,f,g,[t,-1.9,0.9]],[parametric,f,g,[t,1.1,20]]],[x,-30,20],[y,-20,10],[nticks,200],[legend,false]);