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

fix atan2() conversions between Sage and SymPy #8564

Closed
certik opened this issue Mar 20, 2010 · 10 comments
Closed

fix atan2() conversions between Sage and SymPy #8564

certik opened this issue Mar 20, 2010 · 10 comments

Comments

@certik
Copy link

certik commented Mar 20, 2010

Hi,

please apply the attached patch. The corresponding test is in sympy in sympy/test_external/test_sage.py. It'd be cool to execute that file automatically in sage doctests, not sure currently how to do it.

Component: interfaces

Author: Ondřej Čertík

Reviewer: Burcin Erocal, Karl-Dieter Crisman

Merged: sage-4.5.2.alpha0

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

@burcin
Copy link

burcin commented Apr 2, 2010

Attachment: sympy1.patch.gz

ondrej's patch with a header

@burcin
Copy link

burcin commented Apr 2, 2010

Attachment: trac_8564-atan2_conversion.patch.gz

Attachment: trac_8564-doctests.patch.gz

doctest

@burcin
Copy link

burcin commented Apr 2, 2010

Reviewer: Burcin Erocal

@burcin
Copy link

burcin commented Apr 2, 2010

Author: Ondrej Certik

@burcin
Copy link

burcin commented Apr 2, 2010

comment:1

I uploaded two patches,

I give a positive review to Ondrej's patch, if someone can review the doctest I added this will be ready to go.

The patches to be merged are (in this order):

The doctest patch depends on #8565.

@burcin burcin added this to the sage-4.4 milestone Apr 2, 2010
@kcrisman
Copy link
Member

comment:2

This seems fine, works well and tests the appropriate thing (i.e. not arctan2(2,3), but the symbolic thing). Positive review to both.

Question about the Sympy doctest file Ondrej mentions above - it doesn't have

check_expression("atan2(y,x)", "y x")

or whatever would work, in test_functions or something like that. Should it?

@kcrisman
Copy link
Member

Changed reviewer from Burcin Erocal to Burcin Erocal, Karl-Dieter Crisman

@certik
Copy link
Author

certik commented Jun 10, 2010

comment:3

Thanks!

Btw, the check_expression() for atan2 is in the latest git sympy, so I need to update the Sage package for it. There were some unrelated mpmath problems with it, that I have to solve first.

Ondrej

@qed777
Copy link
Mannequin

qed777 mannequin commented Jul 21, 2010

Merged: sage-4.5.2.alpha0

@qed777 qed777 mannequin removed the s: positive review label Jul 21, 2010
@qed777 qed777 mannequin closed this as completed Jul 21, 2010
@fchapoton
Copy link
Contributor

Changed author from Ondrej Certik to Ondřej Čertík

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

5 participants