Skip to content

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

@behackl

Description

@behackl

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions