[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47738] expint is inaccurate for imaginary inp
From: |
Colin Macdonald |
Subject: |
[Octave-bug-tracker] [bug #47738] expint is inaccurate for imaginary inputs |
Date: |
Tue, 19 Apr 2016 21:18:35 +0000 |
User-agent: |
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
URL:
<http://savannah.gnu.org/bugs/?47738>
Summary: expint is inaccurate for imaginary inputs
Project: GNU Octave
Submitted by: cbm
Submitted on: Tue 19 Apr 2016 09:18:35 PM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Inaccurate Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
For some imaginary inputs, the error can be as large as 10^-6.
>> A = expint(10i)
A = 0.0454579311577793 + 0.0875455463635251i
>> S = double(expint(sym(10i)))
S = 0.0454564330044554 + 0.0875512674239774i
>> err = A - S
err = 1.49815332391168e-06 - 5.72106045235166e-06i
Matlab:
>> M = expint(10i)
M =
0.0454564330044556 + 0.087551267423977i
>> M - S
ans =
1.80411241501588e-16 - 3.46944695195361e-16i
I'll attach a figure of the error along line in the complex plane.
Looking at the code shows it switches between two implementations at abs(x) ==
10. There is a FIXME there, but I think the inaccuracy is more serious than
it suggests.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47738>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #47738] expint is inaccurate for imaginary inputs,
Colin Macdonald <=
- [Octave-bug-tracker] [bug #47738] expint is inaccurate for imaginary inputs, Colin Macdonald, 2016/04/19
- [Octave-bug-tracker] [bug #47738] expint is inaccurate for imaginary inputs, Colin Macdonald, 2016/04/19
- [Octave-bug-tracker] [bug #47738] expint is inaccurate for imaginary inputs, Rik, 2016/04/20
- [Octave-bug-tracker] [bug #47738] expint is inaccurate for imaginary inputs, Rik, 2016/04/20
- [Octave-bug-tracker] [bug #47738] expint is inaccurate for certain imaginary inputs, Rik, 2016/04/20
- [Octave-bug-tracker] [bug #47738] expint is inaccurate for certain imaginary inputs, Mike Miller, 2016/04/20
- [Octave-bug-tracker] [bug #47738] expint is inaccurate for certain imaginary inputs, Doug Stewart, 2016/04/20
- [Octave-bug-tracker] [bug #47738] expint is inaccurate for certain imaginary inputs, Colin Macdonald, 2016/04/27