I want to extract the "real part" of a quaternion, i.e., if

  L.<i,j,k> = QuaternionAlgebra(QQ,-1,-1);

and a is in L, then I want the coefficient of 1 in the expansion of as
a linear
combination of 1, i, j and k.

Is there a way to do this?  A graceful way?

(I have also discovered that using quaternions in combination with
list comprehensions
which have i as the dummy variable - [i for i in range(10)] - leads to
quite unexpected
results.  But I suspect this reflects an underlying problem in
python...)

Thanks in advance for any help.

Chris

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to