geometry
IsOnLine
test if a point, a list, or a set of points is on a line
Calling Sequence
Parameters
Description
Examples
IsOnLine(f, l, cond)
f
-
point, list or set of points
l
line
cond
(optional) name
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 &and⁡expr_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.
with⁡geometry:
line⁡l1,y=0,x,y,line⁡l2,x+y=1,x,y,point⁡A,12,12:
IsOnLine⁡A,l1
false
IsOnLine⁡A,l2
true
point⁡A,a,12,point⁡B,35,b:
IsOnLine⁡A,B,l2,cond
IsOnLine: "hint: the following conditions must be satisfied: {-2/5+b = 0, -1/2+a = 0}"
FAIL
−25+b=0&and−12+a=0
make the necessary assumptions
assume⁡op⁡cond
IsOnLine⁡A,B,l2
See Also
geometry[IsOnCircle]
Download Help Document