geometry
AreParallel
test if two lines are parallel to each other
Calling Sequence
Parameters
Description
Examples
AreParallel(l1, l2, cond)
l1, l2
-
two lines
cond
(optional) name
The routine returns true if l1 and l2 are parallel to each other; false if they are not; and FAIL if it is unable to determine if l1 and l2 are parallel to each other.
In case of FAIL, if the third optional argument is given, the condition that makes l1 and l2 parallel to each other is assigned to this argument.
The command with(geometry,AreParallel) allows the use of the abbreviated form of this command.
with⁡geometry:
line⁡l1,2⁢x+3⁢y+1=0,x,y:
line⁡l2,4⁢sqrt⁡2⁢x+6⁢sqrt⁡2⁢y−1=0,x,y:
AreParallel⁡l1,l2
true
line⁡l3,x=0,x,y:
AreParallel⁡l1,l3
false
line⁡l4,a⁢x+6⁢y+1=0,x,y:
AreParallel⁡l1,l4,cond
AreParallel: "hint: cannot determine if 12-3*a is zero"
FAIL
12−3⁢a=0
assume⁡cond
AreParallel⁡l1,l4
See Also
geometry[ArePerpendicular]
geometry[line]
Download Help Document