test if two lines are perpendicular to each other - Maple Help

Online Help

All Products    Maple    MapleSim


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

geometry[ArePerpendicular] - test if two lines are perpendicular to each other

Calling Sequence

ArePerpendicular(l1, l2, cond)

Parameters

l1, l2

-

two lines

cond

-

(optional) name

Description

• 

The routine returns true if l1 and l2 are perpendicular to each other; false if they are not; and FAIL if it is unable to determine if l1 and l2 are perpendicular to each other.

• 

In case of FAIL, if the third optional argument is given, the condition that makes l1 and l2 perpendicular to each other is assigned to this argument.

• 

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

Examples

withgeometry:

linel1,y=x,x,y:

linel2,y=x,x,y:

ArePerpendicularl1,l2

true

(1)

linel3,x=2,x,y:

ArePerpendicularl1,l3

false

(2)

b:=3:

linel4,by+ax=0,x,y:

ArePerpendicularl1,l4,'cond'

ArePerpendicular:   "hint: cannot determine if -a+3 is zero"

FAIL

(3)

cond

a+3=0

(4)

assumecond

ArePerpendicularl1,l4,'cond'

true

(5)

See Also

geometry[AreParallel]


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