delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/09/15/08:23:09

Message-ID: <19980914001056.A169@mail.datanet.hu>
Date: Mon, 14 Sep 1998 00:10:56 +0200
From: Laszlo Molnar <ml1050 AT mail DOT datanet DOT hu>
To: DJGPP Workers List <djgpp-workers AT delorie DOT com>
Subject: libm.a problem in latest alpha(s)
Mime-Version: 1.0
Sender: Molnar Laszlo <ml AT mail DOT datanet DOT hu>

Hello Workers!

I've found a problem in the latest libm.a while testing perl 5.005_02.
Perl fails on two of its tests when I link it with djdev202a (980726+),
but it works with the plain old djdev201. The two failed tests came
from t/lib/complex.t (which contains 1000+ tests):

not ok 975
# 'acoth $z0' expected: '0.14694666622553-0.2318238045004i' 
                   got: '0.14694666622553-0.270209750135292i' 
                for z = ( 2, 3)
not ok 978
# 'acoth $z0' expected: '0.14694666622553+0.2318238045004i'
                   got: '0.14694666622553+0.270209750135292i' 
                for z = ( 2,-3)

The imaginary parts seem to be very unaccurate. Any idea?

Laszlo

ps: Perl uses the following formula to compute acoth:
    acoth(z) = 1/2 log((1+z) / (z-1))
    

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019