Hi,
I want to lambdify an integral including vector (sympy.Matrix) and I am expecting to get a vector as well. I used the doit() function on Integral, however the results are somewhat strange. Below is a simple example in the sympy online shell (I hope it works just like that).
Basically, having a vector v = (a*t,b,c), I do integrate(v,t), which gives me (a*t**2/2, b*t,c*t), an expected result. Doing Integral(v,t).doit() gives a*t**4/3+b*t**2/2+c*t... Any suggestions? Do I have some wrong assumptions?
Thanks a lot in advance,
David
http://live.sympy.org/?evaluate=a%2Cb%2Cc%3Dsymbols%28%27a%20b%20c%27%29%0A%23--%0Av%3DMatrix%28[a%2Cb%2Cc]%29%0A%23--%0Avt%3DMatrix%28[a*t%2Cb%2Cc]%29%0A%23--%0Aintegrate%28vt%2Ct%29%0A%23--%0AIntegral%28vt%2Ct%29.doit%28%29%0A%23--%0A