On Friday, 4 August 2017 17:34:25 UTC-4, Aaron Meurer wrote: > > You can try this, but I foresee problems reusing I=sqrt(-1) the complex > number as i the quaternion. Mathematically they aren't the same thing, but > even in terms of SymPy, ImaginaryUnit is burdened with things like > assumptions, which might cause issues with quaternions. >
Implementing quaternions should be simple. Deciding how they interact with the rest of SymPy may be more complicated. > And maybe even you could do something with the Mul processors to make them > auto-simplify, if that's what is desired. > I would suggest an immediate evaluation in this case. Maybe a Quaternion class is the simplest way to implement quaternions. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to sympy@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/803df12b-57f4-4f3c-a82e-f7cdbf95d9d9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.