Difference between revisions of "PerpendicularVector Command"

From GeoGebra Manual
Jump to: navigation, search
m (update to 5.0)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|vector-matrix}}
{{command|cas=true|vector-matrix}}
 
 
 
 
;PerpendicularVector[ <Line> ]
 
;PerpendicularVector[ <Line> ]
 
:Returns the perpendicular vector of the line.
 
:Returns the perpendicular vector of the line.
Line 16: Line 14:
 
:{{note| A vector with coordinates ''(a, b)'' has the perpendicular vector ''(-b, a)''.}}
 
:{{note| A vector with coordinates ''(a, b)'' has the perpendicular vector ''(-b, a)''.}}
  
 +
;PerpendicularVector[ <Plane> ]
 +
:Creates a vector orthogonal to the plane.
 +
:{{example|1=<div> <code><nowiki>PerpendicularVector[ xOyPlane ]</nowiki></code> yields the perpendicular vector ''u=(0, 0, 1)'' of the xOy plane.</div>}}
  
 
==CAS Syntax==
 
==CAS Syntax==
Line 23: Line 24:
 
:* <code><nowiki>PerpendicularVector[(3, 2)]</nowiki></code> yields the vector ''{-2, 3}''.
 
:* <code><nowiki>PerpendicularVector[(3, 2)]</nowiki></code> yields the vector ''{-2, 3}''.
 
:* <code><nowiki>PerpendicularVector[(a, b)]</nowiki></code> yields the vector ''{-b, a}''.</div>}}
 
:* <code><nowiki>PerpendicularVector[(a, b)]</nowiki></code> yields the vector ''{-b, a}''.</div>}}
 
{{betamanual|version=5.0|;PerpendicularVector[ <Plane> ]
 
:Creates a vector orthogonal to the plane.
 
:{{example|1=<div> <code><nowiki>PerpendicularVector[ xOyPlane ]</nowiki></code> yields the perpendicular vector ''u=(0, 0, 1)'' of the xOy plane.</div>}}
 
}}
 
  
 
{{note| 1=<div>See also [[UnitPerpendicularVector Command]].</div>}}
 
{{note| 1=<div>See also [[UnitPerpendicularVector Command]].</div>}}

Revision as of 11:14, 10 August 2015


PerpendicularVector[ <Line> ]
Returns the perpendicular vector of the line.
Example:
Let Line[ (1, 4), (5, -3) ] be the line j. PerpendicularVector[ j ] yields the perpendicular vector u=(7, 4) of the line j.
Note: A line with equation ax + by = c has the perpendicular vector (a, b).
PerpendicularVector[ <Segment> ]
Returns the perpendicular vector of the segment with the same length.
Example:
Let Segment[ (3, 2), (14, 5) ] be the segment k. PerpendicularVector[ k ] yields the perpendicular vector u=(-3, 11) of the segment k.


PerpendicularVector[ <Vector> ]
Returns the perpendicular vector of the given vector.
Example:
Let Vector[ (-12, 8) ] be the vector u. PerpendicularVector[ u ] yields the perpendicular vector v=(-8, -12) of the vector u.
Note: A vector with coordinates (a, b) has the perpendicular vector (-b, a).
PerpendicularVector[ <Plane> ]
Creates a vector orthogonal to the plane.
Example:
PerpendicularVector[ xOyPlane ] yields the perpendicular vector u=(0, 0, 1) of the xOy plane.


CAS Syntax

PerpendicularVector[ <Vector> ]
Returns the perpendicular vector of the given vector.
Example:
  • PerpendicularVector[(3, 2)] yields the vector {-2, 3}.
  • PerpendicularVector[(a, b)] yields the vector {-b, a}.


© 2024 International GeoGebra Institute