Thread Links Date Links
Thread Prev Thread Next Thread Index Date Prev Date Next Date Index

Re: Table 4 proposal version 0.2...



On 2012-04-05 16:00:10 +0100, John Pryce wrote:
> But the scenario
>   computation X produces x, but goes wrong so x is NaN,
>   computation Y produces y, which just by chance is exactly 0,
>   then we do x^y so the NaN disappears,
> seems a HORRIBLE design choice.

The IEEE 754-2008 standard has several power functions. You just need
to choose the right one for your application.

The datum NaN can disappeard, but the global flag remains set.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)