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

[enhancement] Add Support for Textual SymPy AST Format #4

Open
cgbsu opened this issue Mar 1, 2022 · 0 comments
Open

[enhancement] Add Support for Textual SymPy AST Format #4

cgbsu opened this issue Mar 1, 2022 · 0 comments

Comments

@cgbsu
Copy link

cgbsu commented Mar 1, 2022

This is an excellent tool, I really thought SymPy was capable of this sort of thing. However for more advanced equations, like differential equations, it does not exactly work, if I describe something like the time - independent - schroedinger - equation I dont have a way of putting it in, even if it cant do all the operations, would it work to maybe take the stringified version of the SymPy data e.g Eq(-hbar**2*Derivative(psi(x), (x, 2))/(2*m) + V(x)*psi(x), E*psi(x)) this can maybe be walked like an AST? Treat unknowns as functions?

Just a suggestion:
It looks like you are doing your own parsing, which is commendable, but maybe something like atoms() or free_symbols() would work better? Maybe specifying operations and their inverses in its own base-database (e.g derivative being the inverse of integral (noting that constants can be lost)?

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