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

Incorrectly evaluated expression #24390

Open
proy87 opened this issue Dec 14, 2022 · 1 comment
Open

Incorrectly evaluated expression #24390

proy87 opened this issue Dec 14, 2022 · 1 comment

Comments

@proy87
Copy link

proy87 commented Dec 14, 2022

sin(acos((98 - 14*cos(pi**2/2160))/(14*sqrt(50 - 14*cos(pi**2/2160))))) gives 0, but it is not 0.

@oscarbenjamin
Copy link
Contributor

The problem is that this incorrectly evaluates to 0 under evalf:

In [3]: a = acos((98 - 14*cos(pi**2/2160))/(14*sqrt(50 - 14*cos(pi**2/2160))))

In [4]: a.evalf(2)
Out[4]: 0

In [5]: a.evalf(3)
Out[5]: 0.000691

skirpichev added a commit to diofant/diofant that referenced this issue Dec 15, 2022
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