Re: Feature Request: Left (and Right) inverse of the Cross Product

Robert Kern via NumPy-Discussion <[email protected]>
Newsgroups gmane.comp.python.numeric.general
Message-ID <CAF6FJitTqmoD314g4ESJH-JRqBz+upoBiDZJrJsKBqvfCaRfqA@mail.gmail.com>
On Mon, Jun 2, 2025 at 1:09 PM Oscar Benjamin via NumPy-Discussion <
[email protected]> wrote:

> In vectors the minimum norm solution for b in a x b = c is just bhat =
> (c x a) / |a|^2 so the cross product computes its own "inverse":
>
> In [135]: np.cross(c, a) / (a**2).sum()
> Out[135]: array([-0.93244529,  0.74775365,  1.09117371])
>

Delightful!

-- 
Robert Kern

_______________________________________________
NumPy-Discussion mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/numpy-discussion.python.org
Member address: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.