student(deprecated)/midpoint - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : student(deprecated)/midpoint

student

 midpoint
 compute the midpoint of a line segment

 Calling Sequence midpoint(p1, p2)

Parameters

 p1, p2 - names, expressions, or points

Description

 • Important: The student package has been deprecated. Use the superseding command Student[Precalculus][Midpoint] instead.
 • The function midpoint will compute the midpoint of the line segment defined by the two points p1 and p2. The points should be either lists of length 2, or expressions.  In the latter case, the midpoint of the two expressions is just their average.
 • If one argument is a point and the other is a name, then the name is treated as an unevaluated point.
 • The command with(student,midpoint) allows the use of the abbreviated form of this command.

Examples

Important: The student package has been deprecated. Use the superseding command Student[Precalculus][Midpoint] instead.

 > $\mathrm{with}\left(\mathrm{student}\right):$
 > $\mathrm{midpoint}\left(\left[a,b\right],\left[c,d\right]\right)$
 $\left[\frac{{a}}{{2}}{+}\frac{{c}}{{2}}{,}\frac{{b}}{{2}}{+}\frac{{d}}{{2}}\right]$ (1)
 > $\mathrm{midpoint}\left(-5,8\right)$
 $\frac{{3}}{{2}}$ (2)
 > $\mathrm{midpoint}\left(c,\left[a,b\right]\right)$
 $\left[\frac{{{c}}_{{1}}}{{2}}{+}\frac{{a}}{{2}}{,}\frac{{{c}}_{{2}}}{{2}}{+}\frac{{b}}{{2}}\right]$ (3)

 See Also