geometry - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Geometry : 2-D Euclidean : Line Segments : geometry/AreParallel

geometry

  

AreParallel

  

test if two lines are parallel to each other

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

AreParallel(l1, l2, cond)

Parameters

l1, l2

-

two lines

cond

-

(optional) name

Description

• 

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.

Examples

withgeometry:

linel1,2x+3y+1=0,x,y:

linel2,42x+62y1=0,x,y:

AreParallell1,l2

true

(1)

linel3,x=0,x,y:

AreParallell1,l3

false

(2)

linel4,ax+6y+1=0,x,y:

AreParallell1,l4,'cond'

AreParallel:   "hint: cannot determine if 12-3*a is zero"

FAIL

(3)

cond

123a=0

(4)

assumecond

AreParallell1,l4

true

(5)

See Also

geometry[ArePerpendicular]

geometry[line]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam