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

Sympy & Numpy Issue #94

Open
asksak opened this issue Aug 28, 2022 · 3 comments
Open

Sympy & Numpy Issue #94

asksak opened this issue Aug 28, 2022 · 3 comments

Comments

@asksak
Copy link

asksak commented Aug 28, 2022

Hello,

After doing some testing, I am nearly certain that Sympy & Numpy don't play well together, especially when tree depth and min nodes are higher than 5.

There are many references on stack overflow regarding this issue.

@asksak
Copy link
Author

asksak commented Aug 29, 2022

Numpy arrays don't play well with sympy objects (they're best if you use built-in numerical types with numpy). You should try sympy arrays instead, which will support something like . subs . Look at recent sympy posts that also use lambdify

@asksak
Copy link
Author

asksak commented Aug 29, 2022

y**(2+i)*(5+j)

Vs

y**((2+i)*(5+j))

Consider the result after mutation in each case.

@granawkins
Copy link
Collaborator

Which interaction with Numpy do you mean?

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