[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gsl] [bug #47347] Complex tangent failure for -1000i
From: |
M Welinder |
Subject: |
[Bug-gsl] [bug #47347] Complex tangent failure for -1000i |
Date: |
Sat, 05 Mar 2016 22:37:24 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 |
URL:
<http://savannah.gnu.org/bugs/?47347>
Summary: Complex tangent failure for -1000i
Project: GNU Scientific Library
Submitted by: terra
Submitted on: Sat 05 Mar 2016 10:37:23 PM GMT
Category: Runtime error
Severity: 3 - Normal
Operating System: Linux
Status: None
Assigned to: None
Open/Closed: Open
Release: 2.1
Discussion Lock: Any
_______________________________________________________
Details:
With a large negative imaginary component of the argument,
the code for complex tangent ends up doing inf/inf.
tan(-1000i) produces nan-nan*i for me.
tan(1000i) produces i just fine.
Suggestion: use tan(z)=conj(tan(conj(z))) whenever Im(z)<=-1.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47347>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gsl] [bug #47347] Complex tangent failure for -1000i,
M Welinder <=