Skip to content

doctest fix for tan(complex).imag() wrong #19791

@rwst

Description

@rwst
sage: tan(2+I).n()
-0.243458201185725 + 1.16673625724092*I
sage: tan(2+I).imag().n()
0.0605381745356926
sage: tan(2+I).imag()
tanh(1)/(tan(2)^2*tan(1)^2 + 1)

There is a form that works at
http://dlmf.nist.gov/4.21.E39

See pynac/pynac#114

Since this is fixed in Sage now, this ticket should provide doctests.

Component: symbolics

Author: Ralf Stephan

Branch/Commit: 7a617e3

Reviewer: Jeroen Demeyer

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions