Re: [sage-devel] Re: integral returns integrate instead of solving

2021-10-25 Thread Mom Mam
thank you for the answer ! its so weird, sometimes it works sometimes doesnt. now i upgraded to sage 9.4, and the last example that i showed perfectly worked: sage: f = -(x - 1)*((x - 1)^2/((x - 1)^2 + 1)^2 + 1/((x - 1)^2 + 1)^2)/sqrt((x - 1)^2 + 1) sage: integrate(f, x) 1/sqrt(x^2 - 2*x + 2) th

Re: [sage-devel] Re: integral returns integrate instead of solving

2021-10-25 Thread Nils Bruin
On Monday, 25 October 2021 at 08:49:30 UTC-7 zfrh...@gmail.com wrote: > but integrals do work on vectors, it just didnt worked in this particular > case. > Ah OK. That's convenient! In that case, you're probably running into an integral that the backend doesn't know how to find an antiderivative

Re: [sage-devel] Re: integral returns integrate instead of solving

2021-10-25 Thread Mom Mam
but integrals do work on vectors, it just didnt worked in this particular case. i also face this problem when trying to do integral on each axis, for example: x = var('x') f = -(x - 1)*((x - 1)^2/((x - 1)^2 + 1)^2 + 1/((x - 1)^2 + 1)^2)/sqrt((x - 1)^2 + 1) integrate(f, x) output: -integrate((x -

[sage-devel] Re: integral returns integrate instead of solving

2021-10-25 Thread Nils Bruin
I don't think the integration backends or sage itself deal with integrals of vector-valued functions. You can try to integrate each coordinate individually: integrals of vector-valued functions are generally defined to be the vector of integrals of each coordinate function. There will still be