[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62094] log1p returns wrong result for complex
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #62094] log1p returns wrong result for complex input |
Date: |
Mon, 21 Feb 2022 18:49:47 -0500 (EST) |
Update of bug #62094 (project octave):
Status: None => Patch Submitted
_______________________________________________________
Follow-up Comment #1:
Oops, that's embarrassing. It looks to me like someone might have swapped the
order of arguments in a call to atan2? Possible patch attached. I haven't
done much testing but it appears to do the right thing for log1p (0.1i) such
that it produces the same result as you say numpy produces and expm1 (log1p
(0.1i)) returns approximately 0.1i.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62094>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/