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

Raise 'NotImplementedError' when solving equation 'x-sin(x)==0' #15989

Open
evan0greenup opened this issue Feb 15, 2019 · 2 comments
Open

Raise 'NotImplementedError' when solving equation 'x-sin(x)==0' #15989

evan0greenup opened this issue Feb 15, 2019 · 2 comments

Comments

@evan0greenup
Copy link

When typing sympy.solve('x-sin(x)', 'x'), it raise NotImplementedError.

@ethankward
Copy link
Contributor

It does raise NotImplementedError already. What output do you get?

@oscarbenjamin
Copy link
Contributor

This is a transcendental equation and those are difficult to solve in general. In this particular case there is a unique real solution x=0 which is not found. I'm not sure about complex solutions.

I don't know how to propose a good general method for this situation short of saying that maybe it's worth having solve try substituting some obvious values like 0 or 1 to look for solutions:

In [1]: (x-sin(x)).subs(x,0)                                                                                                                                  
Out[1]: 0

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

No branches or pull requests

3 participants