Opened 7 years ago

Closed 7 years ago

#20098 closed defect (fixed)

doctest fix for: Re/Im(tanh) wrong formula

Reported by: rws Owned by:
Priority: major Milestone: sage-7.1
Component: symbolics Keywords:
Cc: behackl Merged in:
Authors: Ralf Stephan Reviewers: Marc Mezzarobba
Report Upstream: N/A Work issues:
Branch: 9eafdee (Commits, GitHub, GitLab) Commit: 9eafdee72e2d440a0ae9f7b47125a867a1524960
Dependencies: Stopgaps:

Status badges

Description (last modified by rws)

In analogy to #19791:

sage: tanh(1+2*I).n()
1.16673625724092 - 0.243458201185725*I
sage: tanh(1+2*I).real().n()
0.202053272732553
sage: tanh(1+2*I).imag().n()
-0.579697798322816
sage: tanh(x).real()
tanh(real_part(x))/(tan(imag_part(x))^2*tanh(real_part(x))^2 + 1)
sage: tanh(x).imag()
tan(imag_part(x))/(tan(imag_part(x))^2*tanh(real_part(x))^2 + 1)

See for example http://dlmf.nist.gov/4.35.E36

Will be fixed in Pynac-0.6.3 and should be doctested here.

Change History (6)

comment:1 Changed 7 years ago by rws

Description: modified (diff)

comment:2 Changed 7 years ago by behackl

Cc: behackl added

comment:3 Changed 7 years ago by rws

Branch: u/rws/re_im_tanh__wrong_formula

comment:4 Changed 7 years ago by rws

Authors: Ralf Stephan
Commit: 9eafdee72e2d440a0ae9f7b47125a867a1524960
Status: newneeds_review
Summary: Re/Im(tanh) wrong formuladoctest fix for: Re/Im(tanh) wrong formula

New commits:

9eafdee20098: doctest fix for Re/Im(tanh) wrong formula

comment:5 Changed 7 years ago by mmezzarobba

Reviewers: Marc Mezzarobba
Status: needs_reviewpositive_review

comment:6 Changed 7 years ago by vbraun

Branch: u/rws/re_im_tanh__wrong_formula9eafdee72e2d440a0ae9f7b47125a867a1524960
Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.