from points coordinates to equation



On 11/24/2012 12:37 PM, Antonio Lapira wrote:
> is it possibile to get for example: x+y=6 giving two points coordinates? like (6,0) and (0,6) ?
>
(%i1) load(lsquares)$
(%i2) lsquares_estimates (matrix([6,0],[0,6]),[x,y],a*x+y=b,[a,b]);
(%o2)                   [[a = 1, b = 6]]
(%i3) a*x+y=b, %;
(%o3)                       y + x = 6

Regards,
Jaime