--
guillaume saupin
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To post to this group, send email to sy...@googlegroups.com.
To unsubscribe from this group, send email to sympy+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
I've guessed that reading the code. Would it be hard for me to
implement the missing MatPow function ?
Would it be possible to create a specific exp function, that inherits
> <http://code.google.com/p/sympy/issues/detail?id=3119>For your immediate
> problem it's possible you could find a solution. You've gotten surprisingly
> far already. Whenever you multiply by I you're forcing sympy to turn the
> expression back into a matrix.
from ExpBase, or Exp, and that would return expr that have
MatrixSymbol type ?
Following your coding guidelines, I've created a github repository :
g...@github.com:kayhman/sympy.git.
x**A is a confusing notation and is very rarely used with x != E. We
should only have exp(A).
I don't see any reason to not support it. Maybe we could
automatically convert it to exp(log(x)*A) in this case, to make it
clear, though personally I don't even see why we would have to do
that. If no one uses x != E, then it won't ever be used.
Aaron Meurer
Out of curiosity, why do you use Symbol('e') instead of E (i.e.,
exp(1))? They both behave the same here, but I think the latter is
what you really want.
I think it might have something to do with how MatrixExprs are not
automatically simplified in the core beyond those things the core
already knows about. Matthew will have to comment more. The solution
might be to make exp(A)**-1 automatically convert into exp(-A) like it
does in the normal core. I tried that and it seems there's a bug in
your branch:
In [22]: (e**(q2*B)) * (e**(-q2*B))
Out[22]: e
I also noticed that there's some strange pretty printing with this:
In [11]: (e**(q2*B)) * (e**(q2*B))**-1
Out[11]:
q₂⋅B ⎛ q₂⋅B⎞
e ⋅⎝e ⎠^-1
And by the way, to make it so you can use exp() instead of E**, I
think the best way would be to do what you're doing and fix
http://code.google.com/p/sympy/issues/detail?id=1799.
Aaron Meurer