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]

Reply via email to