ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 25 Jul 2016 11:13:01 +0200The Pleasures of 'Perp Dot' Products in Sagemathhttps://ask.sagemath.org/question/34212/the-pleasures-of-perp-dot-products-in-sagemath/Francis S. Hill, Jr. has an vector *operation* he calls *a-Perp*. It is defined as the vector perpendicular to **a** that is rotated 90° counterclockwise (Hill 1994:138). Wolfram also has [a page on the concept here](http://mathworld.wolfram.com/PerpendicularVector.html). Similar to the Normal vector, but not quite.
I wonder if there's a default Sage function, or some handy way, to do this?
Say I have vector **a**
a = vector(QQ, [3, 4])
and I want to get
a_Perp = vector(QQ, [-4, 3])
Hill, F. S. Jr. "The Pleasures of 'Perp Dot' Products." Ch. II.5 in Graphics Gems IV (Ed. P. S. Heckbert). San Diego: Academic Press, pp. 138-148, 1994.etbMon, 25 Jul 2016 11:13:01 +0200https://ask.sagemath.org/question/34212/