 Student[Precalculus] - Maple Programming Help

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

Student[Precalculus]

 Midpoint
 find the midpoint of a line segment

 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]);
 $\left[\frac{{1}}{{2}}{,}\frac{{1}}{{2}}\right]$ (1)
 > Midpoint([0,1,2],<1,2,3>);
 $\left[\frac{{1}}{{2}}{,}\frac{{3}}{{2}}{,}\frac{{5}}{{2}}\right]$ (2)
 > Midpoint(, );
 $\left[\begin{array}{c}\frac{{\mathrm{a1}}}{{2}}{+}\frac{{\mathrm{a2}}}{{2}}\\ \frac{{\mathrm{b1}}}{{2}}{+}\frac{{\mathrm{b2}}}{{2}}\end{array}\right]$ (3)