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:
|
|
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)
Description: |
modified (diff)
|
Branch: |
→ u/rws/re_im_tanh__wrong_formula
|
Authors: |
→ Ralf Stephan
|
Commit: |
→ 9eafdee72e2d440a0ae9f7b47125a867a1524960
|
Status: |
new →
needs_review
|
Summary: |
Re/Im(tanh) wrong formula →
doctest fix for: Re/Im(tanh) wrong formula
|
Reviewers: |
→ Marc Mezzarobba
|
Status: |
needs_review →
positive_review
|
Branch: |
u/rws/re_im_tanh__wrong_formula →
9eafdee72e2d440a0ae9f7b47125a867a1524960
|
Resolution: |
→ fixed
|
Status: |
positive_review →
closed
|
New commits:
20098: doctest fix for Re/Im(tanh) wrong formula