Boost logo

Boost :

From: John Maddock (jz.maddock_at_[hidden])
Date: 2020-01-16 17:57:03

On 16/01/2020 15:08, anshu khare via Boost wrote:
> cos(3*pi(cpp_bin_float_50>()/2)) does not give correct value.

What do you call "correct"?  If you're expecting an exact 0 result, then
you're going to be disappointed - likewise with double which also does
not yield an exact 0 in your test case (at least on msvc).


> Only cos(pi(cpp_bin_float_50>()/2)) gives correct value.
> All odd multiples of cos(pi/2) do not give correct value.
> The issue with sin() as well.
> Anshu
> _______________________________________________
> Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at