Re: Coordinate Geometry


[Prev][Next][Index][Thread]

Re: Coordinate Geometry



> Does anyone know how to use the calc to, say, graph a line from point
> (x1,y1) to point (x2,y2) and calc the distance?
>
> "This is the most logical route, Captain"
> -= Zenon@bbs.nexes.com =-
>
rtfm
[2nd] [draw] Line(
Line(x1,y1,x2,y2)
use alegbra
L=((x1-x2)^2+(y1-y2)^2)^(1/2)
you can put all this in a program if you want


Prgm:line
:Input "X1",A
:Input "Y1",B
:Input "X2",C
:Input "Y2",D
:Line(A,B,C,D)
:Text(0,0,((x1-x2)^2+(y1-y2)^2)^(1/2))
{or :Disp(((x1-x2)^2+(y1-y2)^2)^(1/2))


References: