student
distance
compute the distance between Points
Calling Sequence
Parameters
Description
Examples
distance(a, b)
a, b
-
expressions or objects of type Point
Important: The student package has been deprecated. Use the superseding command Student[Precalculus][Distance] instead.
The distance function computes the distance between Points in one or higher dimensions. If the Points are of dimension 2 or higher (such as x,y or 1,2,3) then the standard Euclidean distance is used. If one or both Points are algebraic expressions other than names, then the distance is computed in one dimension. If the Points are both names then distance returns unevaluated.
A Point in two or more dimensions is defined as a list of coordinates (such as x,y, or x,y,z). {Point}s in one dimension are just algebraic expressions, though names may be treated as either depending on the context.
The command with(student,distance) allows the use of the abbreviated form of this command.
with⁡student:
distance⁡a,b
distance⁡−3,a+5
a+8
distance⁡a,b,c,d
d−b2+c−a2
See Also
Student
student(deprecated)[completesquare]
student(deprecated)[midpoint]
student(deprecated)[Point]
student(deprecated)[slope]
Student[Precalculus][Distance]
Download Help Document