#5409: [with patch; needs review] rewrite quaternion algebras -- the current
implementation isn't sufficiently good
-------------------------+--------------------------------------------------
Reporter: was | Owner: tbd
Type: enhancement | Status: new
Priority: major | Milestone: sage-3.4
Component: algebra | Keywords:
-------------------------+--------------------------------------------------
Comment(by tornaria):
Found a couple of issues with vector_space():
a. I didn't find a way to map vectors between the quaternion algebra and
the vector space
b. neither the norm or the inner_product in the vector space seem to
match the norm in the quaternion algebra
{{{
sage: Q1 = QuaternionAlgebra(2,3)
(reverse-i-search)`V1': V1
KeyboardInterrupt
sage: V1 = Q1.vector_space()
sage: q = Q1([1,2,3,4])
sage: v = V1(q)
...
TypeError: can't initialize vector from nonzero non-list
sage: v = V1([1,2,3,4])
sage: Q1(v)
...
TypeError: Unable to coerce (1, 2, 3, 4) (<type
'sage.modules.vector_rational_dense.Vector_rational_dense'>) to Rational
sage: q.norm()
62
sage: v.norm()
sqrt(30)
sage: v.inner_product(v)
124
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5409#comment:5>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---