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

x(x) should be interpreted as x*(x) #117

Open
jondo opened this issue Jun 26, 2019 · 2 comments
Open

x(x) should be interpreted as x*(x) #117

jondo opened this issue Jun 26, 2019 · 2 comments

Comments

@jondo
Copy link

jondo commented Jun 26, 2019

Instead, it is interpreted as a function x evaluated at point x, which breaks the rule of least surprise (edit: at least for mathematicians, which are certainly one target group).
See https://gamma.sympy.org/input/?i=x%28x%29.
This would have saved me some debugging today.
Wolfram Alpha also does this.

At least there should be a warning about a reused name.

@MateusVDT
Copy link

This one works exactly as intended, you can't use implicit multiplications on Python, unless python sintax changes this is probably going to remain the way it is

@jondo
Copy link
Author

jondo commented May 2, 2020

Shouldn't Sympy Gamma accept more than strict Python syntax? Why else offer the comparison to Wolfram Alpha? Also, Sympy Gamma's Github repo description is 'A SymPy version of WolframAlpha.'.

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

2 participants