Student[Precalculus] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Geometry : Student/Precalculus/Midpoint

Student[Precalculus]

  

Midpoint

  

find the midpoint of a line segment

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Midpoint(p1, p2)

Parameters

p1

-

an n-element list or Vector specifying a point

p2

-

an n-element list or Vector specifying a point

Description

• 

The command Midpoint(p1, p2) computes the midpoint of the line segment joining p1 and p2.

• 

p1 and p2 must specify points of the same dimensionality (and orientation, when each of the points is a Vector).

• 

This command is part of the Student[Precalculus] package, so it can be used in the form Midpoint(..) only after executing the command with(Student[Precalculus]).  However, it can always be used in the form Student[Precalculus][Midpoint](..).

Examples

with(Student:-Precalculus):

Midpoint([0,0],[1,1]);

12,12

(1)

Midpoint([0,1,2],<1,2,3>);

12&comma;32&comma;52

(2)

Midpoint(<a1,b1>, <a2,b2>);

a12+a22b12+b22

(3)

See Also

CenterOfMass

Distance

Line

Slope

Vector