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

test improved evaluation of trigonometric functions and complex exponential function #20099

Closed
behackl opened this issue Feb 23, 2016 · 21 comments

Comments

@behackl
Copy link
Member

behackl commented Feb 23, 2016

In the current development version of pynac the evaluation of trigonometric functions has been improved. This enables the following behavior:

sage: var('k', domain='integer')
k
sage: sin(k*pi)
0
sage: cos(k*pi)
(-1)^k
sage: sin(1 + 2*k*pi)
sin(1)
sage: tan(k*pi)
0
sage: cos(2*k*pi + pi/3)
1/2

and so on. Additionally, this introduces simplification for the complex exponential function:

sage: exp(2*k*pi*I)
sage: 1

This ticket shall document these changes.

Depends on #20134

CC: @rwst

Component: symbolics

Keywords: pynac

Author: Benjamin Hackl

Branch/Commit: edec004

Reviewer: Ralf Stephan, Julian Rüth, Travis Scrimshaw

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

@behackl behackl added this to the sage-7.1 milestone Feb 23, 2016
@behackl
Copy link
Member Author

behackl commented Mar 3, 2016

Changed dependencies from pynac-0.6.3 to #20134

@behackl
Copy link
Member Author

behackl commented Mar 3, 2016

@behackl
Copy link
Member Author

behackl commented Mar 3, 2016

New commits:

9db23depackage version / checksum
7785109coth/acoth BuiltinFunction --> GinacFunction and fixes
2fab819doctest fixes
867bd3ddoctests for reduction of exp-arguments
f868e90doctests for argument reduction of sin, cos, tan
16045aeadditional doctest for computation of residues

@behackl
Copy link
Member Author

behackl commented Mar 3, 2016

Commit: 16045ae

@behackl behackl changed the title test improved evaluation of trigonometric functions test improved evaluation of trigonometric functions and complex exponential function Mar 3, 2016
@rwst
Copy link

rwst commented Mar 4, 2016

Reviewer: Ralf Stephan

@rwst
Copy link

rwst commented Mar 4, 2016

comment:3

Can be set positive as soon as the dependency is reviewed.

@rwst
Copy link

rwst commented Mar 25, 2016

comment:6

Needs merge.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 29, 2016

Changed commit from 16045ae to 871c4c9

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 29, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

871c4c9Merge tag '7.2.beta1' into symbolic/period-reduction-doctests

@behackl
Copy link
Member Author

behackl commented Mar 29, 2016

comment:8

Done, back to needs_review.

@saraedum
Copy link
Member

saraedum commented Apr 4, 2016

Author: Benjamin Hackl

@saraedum
Copy link
Member

saraedum commented Jun 8, 2016

comment:10

I think "For the sake of simplification, the argument is reduced the period of the complex exponential function" is missing a "modulo" or something like that. Once that is fixed, feel free to set it to positive review yourself.

@saraedum
Copy link
Member

saraedum commented Jun 8, 2016

Changed reviewer from Ralf Stephan to Ralf Stephan, Julian Rüth

@fchapoton
Copy link
Contributor

New commits:

5b01423trac 23030 removing bad apply
7b4ec6cAdd sys.version_info as "PYTHON_VERSION" to cython compile-time environment
71b68d2tract #22305 -- split off del_dictitem_by_exact_value and compile conditionally based on Py2/Py3
54d8c2dCorrection: Py3 does provide PyDict_GetItemWithError but Cython doesn't provide it yet
5bc719cMerge branch 'public/22305' of ssh://trac.sagemath.org:22/sage into test
adabef0Merge branch 'u/behackl/symbolic/period-reduction-doctests' in 8.0.b7
e91dda2trac 20099 details

@fchapoton
Copy link
Contributor

Changed commit from 871c4c9 to e91dda2

@fchapoton
Copy link
Contributor

Changed branch from u/behackl/symbolic/period-reduction-doctests to public/20099

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 20, 2017

Changed commit from e91dda2 to edec004

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 20, 2017

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

6e90839Merge branch 'u/behackl/symbolic/period-reduction-doctests' in 8.0.b7
edec004trac 20099 details

@tscrim
Copy link
Collaborator

tscrim commented May 21, 2017

comment:15

LGTM.

@tscrim
Copy link
Collaborator

tscrim commented May 21, 2017

Changed reviewer from Ralf Stephan, Julian Rüth to Ralf Stephan, Julian Rüth, Travis Scrimshaw

@vbraun
Copy link
Member

vbraun commented May 21, 2017

Changed branch from public/20099 to edec004

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

6 participants