# Difference between revisions of "PerpendicularVector Command"

From GeoGebra Manual

(added v.4) |
|||

Line 4: | Line 4: | ||

: {{Note|1=A line with equation ''ax + by = c'' has the perpendicular vector ''(a, b)''. }} | : {{Note|1=A line with equation ''ax + by = c'' has the perpendicular vector ''(a, b)''. }} | ||

− | ; PerpendicularVector[Segment]: Returns the perpendicular vector of the segment. | + | ; PerpendicularVector[Segment]: Returns the perpendicular vector of the segment with the same length. |

; PerpendicularVector[Vector v]: Returns the perpendicular vector of the given vector. | ; PerpendicularVector[Vector v]: Returns the perpendicular vector of the given vector. | ||

: {{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)''.}} | ||

+ | |||

+ | ==CAS-View== | ||

+ | ; PerpendicularVector[Vector v]: Returns the perpendicular vector of the given vector. | ||

+ | |||

+ | {{example|1=<code>PerpendicularVector[(3,2)]</code> yields ''{-2,3}''. <code>PerpendicularVector[(a,b)]</code> yields ''{-b,a}''.}} |

## Revision as of 14:19, 8 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-View

- PerpendicularVector[Vector v]
- Returns the perpendicular vector of the given vector.

**Example:**

`PerpendicularVector[(3,2)]`

yields *{-2,3}*.

`PerpendicularVector[(a,b)]`

yields *{-b,a}*.