Difference between revisions of "PerpendicularVector Command"
From GeoGebra Manual
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=4.0}}</noinclude> | <noinclude>{{Manual Page|version=4.0}}</noinclude> | ||
{{command|vector-matrix}} | {{command|vector-matrix}} | ||
− | ; PerpendicularVector[Line]: Returns the perpendicular vector of the line. | + | ;PerpendicularVector[Line]: Returns the perpendicular vector of the line. |
− | : {{ | + | :{{note|1=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[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)''.}} | |
− | ; PerpendicularVector[Vector v]: Returns the perpendicular vector of the given vector. | ||
− | : {{ | ||
− | |||
==CAS Syntax== | ==CAS Syntax== | ||
; PerpendicularVector[Vector v]: Returns the perpendicular vector of the given vector. | ; PerpendicularVector[Vector v]: Returns the perpendicular vector of the given vector. | ||
− | |||
{{example|1= <code>PerpendicularVector[(3,2)]</code> yields the vector ''{-2,3}''.}} | {{example|1= <code>PerpendicularVector[(3,2)]</code> yields the vector ''{-2,3}''.}} | ||
{{example|1= <code>PerpendicularVector[(a,b)]</code> yields the vector ''{-b,a}''.}} | {{example|1= <code>PerpendicularVector[(a,b)]</code> yields the vector ''{-b,a}''.}} |
Revision as of 11:23, 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}.Example:
PerpendicularVector[(a,b)]
yields the vector {-b,a}.