Comando Versore
- Versore(Vettore)
-
Restituisce un vettore (di lunghezza 1), avente la stessa direzione e verso del vettore indicato, precedentemente definito.
Sia v=\(\begin{pmatrix}3\\4\end{pmatrix}\). Versore(v)
restituisce
\(\begin{pmatrix}0.6\\0.8\end{pmatrix}\).
- Versore(Retta)
-
Restituisce il vettore direzione (di lunghezza 1) della retta indicata.
Versore(3x + 4y = 5)
restituisce \(\begin{pmatrix}0.8\\-0.6\end{pmatrix}\).
- Versore(Segmento)
-
Restituisce il vettore direzione (di lunghezza 1) del segmento indicato.
Sia s = Segmento((1,1),(4,5))
. Allora Versore(s)
restituisce
\(\begin{pmatrix}0.6\\0.8\end{pmatrix}\).
|
Esempi:
-
Versore((a, b))
restituisce \{\(\frac{a}{\sqrt{a^\{2} + b^\{2}}}\), \(\frac{b}\{\sqrt{a^\{2} + b^\{2}}}\)}. -
Versore((2, 4, 4))
restituisce \{\(\frac{1}\{3}\), \(\frac{2}\{3}\), \(\frac{2}\{3}\)}.