octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #62094] log1p returns wrong result for complex


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #62094] log1p returns wrong result for complex input
Date: Thu, 24 Feb 2022 13:40:23 -0500 (EST)

Update of bug #62094 (project octave):

                 Release:                   6.4.0 => 7.0.90                 
        Operating System:               GNU/Linux => Any                    

    _______________________________________________________

Follow-up Comment #3:

Looks good to me.
Should we also add a BIST for this?
Wolfram Alpha's result:
https://www.wolframalpha.com/input?i=log1p%280.1i%29

0.004975165426584041424107678772130370844339804970029398932304779... +
0.09966865249116202737844611987802059024327832250431464801550877... i


Octave's result with your change:

>> format long
>> log1p(0.1i)
ans =  4.975165426584042e-03 + 9.966865249116204e-02i


That's close enough imho.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62094>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]