Skip to content

Wrong simplification in symbolic trigonometry involving fractions #20752

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

Closed
sagetrac-tmonteil mannequin opened this issue Jun 1, 2016 · 8 comments
Closed

Wrong simplification in symbolic trigonometry involving fractions #20752

sagetrac-tmonteil mannequin opened this issue Jun 1, 2016 · 8 comments

Comments

@sagetrac-tmonteil
Copy link
Mannequin

sagetrac-tmonteil mannequin commented Jun 1, 2016

As reported in this ask question, Sage makes wrong simplifications in symbolic trigonometry involving fractions:

sage: cos(pi+pi*1/42)
cos(1/42*pi)

While it should be -cos(1/42*pi).

CC: @rwst

Component: symbolics

Issue created by migration from https://trac.sagemath.org/ticket/20752

@sagetrac-tmonteil sagetrac-tmonteil mannequin added this to the sage-7.3 milestone Jun 1, 2016
@rwst
Copy link
Contributor

rwst commented Jun 1, 2016

comment:1

Same with sin(pi+pi/42).

@sagetrac-tmonteil
Copy link
Mannequin Author

sagetrac-tmonteil mannequin commented Jun 1, 2016

comment:2

I do not have intermediate versions of Sage with me, but i confirm that it is a regression since on Sage 5.12, we have:

sage: cos(pi+pi*1/42)
cos(43/42*pi)
sage: sin(pi+pi/42)
sin(43/42*pi)

@rwst
Copy link
Contributor

rwst commented Jun 1, 2016

comment:3

No, the changes were just a few months ago, will get to it tomorrow.

@sagetrac-tmonteil
Copy link
Mannequin Author

sagetrac-tmonteil mannequin commented Jun 1, 2016

comment:4

More precisely, on a 7.2.beta4 version of Sage which i can reach by ssh, it works well:

sage: cos(pi+pi*1/42)
cos(43/42*pi)
sage: sin(pi+pi*1/42)
sin(43/42*pi)

So the regression is very recent, could it be due to the last update of pynac/ginac ?

@sagetrac-tmonteil

This comment has been minimized.

@sagetrac-tmonteil sagetrac-tmonteil mannequin changed the title Wrong simplification in symbolic trigonometry Wrong simplification in symbolic trigonometry involving fractions Jun 1, 2016
@kcrisman
Copy link
Member

kcrisman commented Jun 1, 2016

comment:7

So the regression is very recent, could it be due to the last update of pynac/ginac ?

Almost certainly so. See e.g. this bug, though I assume it is a different particular one.

@rwst
Copy link
Contributor

rwst commented Jun 8, 2016

comment:8

This is fixed and doctested in #20742.

@rwst rwst removed this from the sage-7.3 milestone Jun 8, 2016
@embray
Copy link
Contributor

embray commented Aug 30, 2016

comment:10

Determined to be invalid/duplicate/wontfix (closing as "wontfix" as a catch-all resolution).

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