IsOnLine - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


geometry

  

IsOnLine

  

test if a point, a list, or a set of points is on a line

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

IsOnLine(f, l, cond)

Parameters

f

-

point, list or set of points

l

-

line

cond

-

(optional) name

Description

• 

The routine returns true if the point f or the list/set of points f is on line l; false if it is not; and FAIL if it is unable to reach a conclusion.

• 

In case of FAIL, if the third optional argument is given, the condition that makes f on line l is assigned to this argument. It will be either of the form expr=0 or of the form &andexpr_1=0,...,expr_n=0 where expr, expr_i are Maple expressions.

• 

The command with(geometry,IsOnLine) allows the use of the abbreviated form of this command.

Examples

withgeometry:

linel1,y=0,x,y,linel2,x+y=1,x,y,pointA,12,12:

IsOnLineA,l1

false

(1)

IsOnLineA,l2

true

(2)

pointA,a,12,pointB,35,b:

IsOnLineA,B,l2,cond

IsOnLine:   "hint: the following conditions must be satisfied: {-2/5+b = 0, -1/2+a = 0}"

FAIL

(3)

cond

25+b=0&and12+a=0

(4)

make the necessary assumptions

assumeopcond

IsOnLineA,B,l2

true

(5)

See Also

geometry[IsOnCircle]