This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: math bug
- To: <wwenyan at hongkong dot com>, <newlib at sources dot redhat dot com>
- Subject: Re: math bug
- From: "Tim Prince" <tprince at computer dot org>
- Date: Tue, 6 Feb 2001 05:32:06 -0800
- References: <SH989793829372.05445@mail1.hongkong.com>
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