This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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]

Re: sparc, ia64: Compute cos(M_PI_2l) for your 128-bit long double please.


From: "Carlos O'Donell" <carlos@redhat.com>
Date: Wed, 10 Apr 2013 23:43:37 -0400

> On 04/10/2013 11:38 PM, David Miller wrote:
>> From: "Carlos O'Donell" <carlos@redhat.com>
>> Date: Wed, 10 Apr 2013 16:47:26 -0400
>> 
>>> Could you check the answer for cos(M_PI_2l) on sparc for 128-bit long double?
>> 
>> 1) printf ("%.100Le\n", (long double)(M_PI_2l/2.0L));
> 
> Should be "M_PIl/2.0L" e.g. PI/2 not PI/4.
> 
>>    gives: 7.8539816339744830961566084581987569936976702453432389325112608296857417966574388401568285189568996429e-01
>> 
>> 2) cos(7.8539816339744830961566084581987569936976702453432389325112608296857417966574388401568285189568996429e-01)
>> 
>>    gives: 0.70710678118654752440084436210484905461457530812028064619302572691711829699877130198437540242002772658213137205447353618...
> 
> Could you recompute please?

1) 1.5707963267948966192313216916397513987395340490686477865022521659371483593314877680313657037913799286e+00

2) 4.33590506506189051239852201302167598438116167312826517088796786053910604573682098964720558908937992221075038813778... × 10^-35


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