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

StackOverflowError occurs when computing expr Limit((-1+Sqrt(x))/Sqrt(-1+x), x -> Infinity) #931

Open
tranleduy2000 opened this issue Mar 10, 2024 · 1 comment
Assignees
Labels

Comments

@tranleduy2000
Copy link
Collaborator

There is the input

Limit((-1+Sqrt(x))/Sqrt(-1+x), x -> Infinity)
image
java.lang.StackOverflowError
	at org.matheclipse.core.expression.AbstractAST.isAST(AbstractAST.java:3124)
	at org.matheclipse.core.expression.AbstractAST.isNumericArgument(AbstractAST.java:4085)
	at org.matheclipse.core.eval.EvalEngine.evalArgs(EvalEngine.java:795)
	at org.matheclipse.core.eval.EvalEngine.evalASTArg1(EvalEngine.java:921)
	at org.matheclipse.core.eval.EvalEngine.evalAttributes(EvalEngine.java:1275)
	at org.matheclipse.core.expression.AbstractAST.evaluate(AbstractAST.java:2172)
@tranleduy2000
Copy link
Collaborator Author

Another case that causes StackOverflowError:

Limit((-1/E^x+E^x)/(E^x+E^(-x)),x -> Infinity)

axkr added a commit that referenced this issue Mar 15, 2024
- set LIMIT_LHOSPITAL_RECURSION_LIMIT = 20 to avoid StackOverflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants