•
|
Tools≻Load Package: Student Multivariate Calculus
|
|
Loading Student:-MultivariateCalculus
|
Define the line
|
•
|
Write the sequence of names A, V.
|
•
|
Context Panel: Student Multivariate Calculus≻Lines & Planes≻Line
|
•
|
Context Panel: Assign to a Name≻R
|
|
|
Obtain the distance from point P to line R
|
•
|
Write the sequence of point P and the name R.
|
•
|
Context Panel: Student Multivariate Calculus≻Lines & Planes≻Distance
|
•
|
Context Panel: Combine≻radical
|
•
|
Context Panel: Approximate≻5 (digits)
|
|
|
|
|
The traditional approach to this calculation is vector-based. The distance is the magnitude of the orthogonal component of a vector U, to point P from an arbitrary point on the line, projected onto V. The arbitrary point on the line is generally taken as A.
Implement a vector-based solution
|
•
|
Define the position vector A.
|
•
|
Context Panel: Assign to a Name≻A
|
|
|
•
|
Define the position vector P.
|
•
|
Context Panel: Assign to a Name≻P
|
|
|
•
|
Define the direction vector V.
|
•
|
Context Panel: Assign to a Name≻V
|
|
|
•
|
Context Panel: Assign Name
|
|
|
Obtain the norm of the component of U orthogonal to V in the plane determined by U and V
|
•
|
Keyboard the norm bars.
|
•
|
Common Symbols palette: Dot product operator
|
•
|
Context Panel: Evaluate and Display Inline
|
|
=
|
|
|
The
task template provides the vector , the component of U orthogonal to V.
Tools≻Tasks≻Browse:
Linear Algebra≻Visualizations≻Projection Plot onto 1-D
|
Projection onto 1-D Subspace
|
Vector to be projected
Project onto
|
|
|
|
|
|
|
|
|
The distance is then the magnitude of the orthogonal component.
•
|
Extract the orthogonal component via copy/paste.
|
•
|
Context Panel: Student Multivariate Calculus≻Norm
|
|
|
|
|
Note that the ProjectionPlot command upon which the task template is based, really does select an arbitrary point on the line. Hence, the figure appearing in the task template differs slightly from Figure 1.6.4(a) where the "arbitrary" point is taken as point A.