Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integral difference when using variable or function #11551

Open
danielbrown2 opened this issue Aug 27, 2016 · 0 comments
Open

Integral difference when using variable or function #11551

danielbrown2 opened this issue Aug 27, 2016 · 0 comments

Comments

@danielbrown2
Copy link

With sympy 1.0, I seem to getting different results when doing an integral with respect to a function or a variable. Maybe I'm doing something wrong here but this:

import sympy as sy
from IPython.display import display

x,y,a,b,t = sy.var("x y a b t", real=True)
f = sy.var("f", cls=sy.Function)

I = sy.integrals.Integral(y*x/(1+sy.exp(-a*(x-b))), x)
display(I)
display(I.doit())

I = sy.integrals.Integral(y*f(t)/(1+sy.exp(-a*(f(t)-b))), f(t))
display(I)
display(I.doit())

Outputs this:

image

The solution of this type of integral should be:
image

I get that this type of integral isn't supported yet, but it seems wrong that the function variant returns an answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants