Difference between revisions of "PerpendicularVector Command"

From GeoGebra Manual
Jump to: navigation, search
Line 13: Line 13:
 
:Returns the perpendicular vector of the given vector.  
 
:Returns the perpendicular vector of the given vector.  
 
:{{example|1=<div>
 
:{{example|1=<div>
:* <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>}}

Revision as of 11:24, 23 August 2011



PerpendicularVector[Line]
Returns the perpendicular vector of the line.
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.
PerpendicularVector[Vector v]
Returns the perpendicular vector of the given vector.
Note: A vector with coordinates (a, b) has the perpendicular vector (-b, a).

CAS Syntax

PerpendicularVector[Vector v]
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