Problem with Matrix normalized() and Matrix norm()

34 views
Skip to first unread message

Massimo Biber

unread,
Jul 14, 2016, 10:09:04 AM7/14/16
to sympy
>>> from sympy import *
>>> v=symbols('v:3',real=True);v
(v0, v1, v2)
>>> V=Matrix(v);V
Matrix([
[v0],
[v1],
[v2]])
>>> U=V.normalized()
>>> U
Matrix([
[v0/sqrt(v0**2 + v1**2 + v2**2)],
[v1/sqrt(v0**2 + v1**2 + v2**2)],
[v2/sqrt(v0**2 + v1**2 + v2**2)]])
>>> U.norm()
sqrt(v0**2/(-v0**2 - v1**2 - v2**2) + v1**2/(-v0**2 - v1**2 - v2**2) + v2**2/(-v0**2 - v1**2 - v2**2))
>>> _.simplify()
I

Why is U.norm() not equal 1?

Aaron Meurer

unread,
Jul 20, 2016, 11:16:48 AM7/20/16
to sy...@googlegroups.com
I opened an issue for this https://github.com/sympy/sympy/issues/11413.

Aaron Meurer

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/e2f0047c-e2f8-4f41-8b2f-8f00c01cdcb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages