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

Variable substitution should be performed only once, not on each evaluation step #11

Open
p-e-w opened this issue Apr 4, 2022 · 0 comments

Comments

@p-e-w
Copy link
Owner

p-e-w commented Apr 4, 2022

The current implementation can cause infinite loops and infinite recursion, for example with this input:

f(x) = x
f(x)

The problem here is that the substituted expression is itself a variable with the same identifier as the variable it is substituted for, so substitution continues forever.

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

No branches or pull requests

1 participant