R = RealIntervalField(53);
A.<i,j,k> = QuaternionAlgebra(R, -1,-1);

a = R(0.85323069669636530)*j + R(-1.2524486580700891)*k;
b = R(0.37151417469522368) + R(0.54534187688354340)*i

a/b;

This computation gives a "ValueError: Generator 0 not defined".  Note
that if I instead define R as a RealField the computation works
correctly.  Here is the traceback:



Traceback (click to the left for traceback)
...
ValueError: Generator 0 not defined.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/eric/.sage/sage_notebook/worksheets/admin/15/code/
55.py", line 12, in <module>
    a/b;
  File "/opt/sage/local/lib/python2.5/site-packages/sympy/plotting/",
line 1, in <module>

  File "element.pyx", line 1480, in
sage.structure.element.RingElement.__div__ (sage/structure/element.c:
9056)
  File "coerce.pxi", line 136, in sage.structure.element._div_c (sage/
structure/element.c:16160)
  File "/opt/sage/local/lib/python2.5/site-packages/sage/algebras/
quaternion_algebra_element.py", line 251, in _div_
    elif self.is_scalar():
  File "/opt/sage/local/lib/python2.5/site-packages/sage/algebras/
quaternion_algebra_element.py", line 177, in is_scalar
    if (self.reduced_trace()-2*self).is_zero():
  File "/opt/sage/local/lib/python2.5/site-packages/sage/algebras/
quaternion_algebra_element.py", line 72, in reduced_trace
    w = M.gen(0)
  File "/opt/sage/local/lib/python2.5/site-packages/sage/modules/
free_module.py", line 991, in gen
    raise ValueError, "Generator %s not defined."%i
ValueError: Generator 0 not defined.


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to