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

Limit assumes function is continuous? #8166

Open
pelegm opened this issue Oct 2, 2014 · 2 comments · May be fixed by #23019
Open

Limit assumes function is continuous? #8166

pelegm opened this issue Oct 2, 2014 · 2 comments · May be fixed by #23019
Labels

Comments

@pelegm
Copy link
Contributor

pelegm commented Oct 2, 2014

The following has surprised me:

x = Symbol('x')
f = Function('f')
print limit(f(x), x, 4)  ## prints f(4)

Is that the expected behaviour?

I think that Mathematica does not assume a generic function is continuous, and the result that Wolfram Alpha gives is

(no result found in terms of standard mathematical functions)

I believe that a better result would be simply to keep the limit unevaluated, unless we know something about f.

@skirpichev
Copy link
Contributor

I believe that a better result would be simply to keep the limit unevaluated

Yes, I think so. We have the Limit class for this.

@skirpichev
Copy link
Contributor

see also #7391

skirpichev added a commit to skirpichev/diofant that referenced this issue Oct 1, 2016
skirpichev added a commit to skirpichev/diofant that referenced this issue Mar 17, 2022
e.g. we should be able to substitute Piecewise...

Closes sympy/sympy#8166
skirpichev added a commit to skirpichev/diofant that referenced this issue Mar 18, 2022
e.g. we should be able to substitute Piecewise...

Closes sympy/sympy#8166
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants