This is the mail archive of the newlib@sourceware.org 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]
Other format: [Raw text]

inaccuracy in cos()



Hi,


just found some inaccuracy in mathfp/cos(): cos(0.0) returns 0.999999999994129362690387097246 instead of 1.0. For 64-bit double precision (53 bit mantissa, 18 decimal digits) this could be considered as wrong.

Also I missed the fast assembler versions in machine/i386 of at least sin(), cos(), and sqrt(). Assembler instructions exist for these since at least i387 AFAIK.

Martin


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