Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2013 15:15:46 GMT
From:      Pedro Giffuni <giffunip@tutopia.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   standards/176031: [msun] pow() returns roots of negative values.
Message-ID:  <201302111515.r1BFFklI090495@red.freebsd.org>
Resent-Message-ID: <201302111520.r1BFK1m5032992@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176031
>Category:       standards
>Synopsis:       [msun] pow() returns roots of negative values.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-standards
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 11 15:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Pedro Giffuni
>Release:        9.1-PRERELEASE
>Organization:
>Environment:
FreeBSD pcbsd-8555 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #7: Sun Oct  7 00:05:03 COT 2012     Pedro@pcbsd-8555:/usr/src/sys/amd64/compile/GENERIC  amd64

>Description:

I think there is a bug in our pow(). According to IEEE 754,

pow(x,y) signals the invalid operation exception when x <0 and
y is a non-integer value.
 
(-3)^1.5 returns -3 in FreeBSD, on Windows it produces an error.


>How-To-Repeat:
This was seen in OpenOffice (which uses pow() ).
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302111515.r1BFFklI090495>