This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: math bug


I get the same result.  If I calculate sin(9.994001e8f) I get the same result, which is not the same as sin(9.994001e8). When you
round the argument to float, you are changing the result.
----- Original Message -----
From: <wwenyan@hongkong.com>
To: <newlib@sources.redhat.com>
Sent: Tuesday, February 06, 2001 1:06 AM
Subject: math bug


> Dear sir:
> I compiled libm/math by GCC(our own chip),butfound bugs in sinf,for example:
>    {
>      float x,y ;
>      x=9.994001e8;
>      y=sinf(x);
>    }
> It gives the result: 0.0133645;
> But the result should be 0.2580169,perhaps kf_rem_pio2.c has problem.
> I try many values,most of them are right.
> could you try it and tell me the result?
>
>
>               regards
>             wenyan wang



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]