#10601: QuaternionAlgebra constructor does not work for python int
------------------------+---------------------------------------------------
Reporter: lftabera | Owner: AlexGhitza
Type: defect | Status: new
Priority: major | Milestone: sage-4.6.2
Component: algebra | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
QuaternionAlgebra constructor does not work with python int input. This is
unfortunate for *.py scripts
{{{
Quaternion Algebra (1, 1) with base ring Rational Field
sage: QuaternionAlgebra(1r,1)
---------------------------------------------------------------------------
ValueError Traceback (most recent call
last)
/home/luisfe/<ipython console> in <module>()
/opt/SAGE/sage-devel/local/lib/python2.6/site-
packages/sage/algebras/quatalg/quaternion_algebra.pyc in
QuaternionAlgebra(arg0, arg1, arg2, names)
175 b = v[1]
176 else:
--> 177 raise ValueError, "unknown input"
178
179 # QuaternionAlgebra(K, a, b)
ValueError: unknown input
sage: QuaternionAlgebra(1,1r)
Quaternion Algebra (1, 1) with base ring Rational Field
sage: QuaternionAlgebra(1r,1r)
---------------------------------------------------------------------------
ValueError Traceback (most recent call
last)
/home/luisfe/<ipython console> in <module>()
/opt/SAGE/sage-devel/local/lib/python2.6/site-
packages/sage/algebras/quatalg/quaternion_algebra.pyc in
QuaternionAlgebra(arg0, arg1, arg2, names)
175 b = v[1]
176 else:
--> 177 raise ValueError, "unknown input"
178
179 # QuaternionAlgebra(K, a, b)
ValueError: unknown input
}}}
The problem seems to be the first numeric parameter. This will be easy to
fix.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10601>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
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.