From -6030319343756856169
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109fba,9a5d91576ea14293
X-Google-Attributes: gid109fba,public
X-Google-Thread: f78e5,42ca30940288d269
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1992-02-28 14:46:21 PST
Xref: sparky comp.lang.c++:5386 comp.std.c++:248
Newsgroups: comp.lang.c++,comp.std.c++
Path: sparky!uunet!zaphod.mps.ohio-state.edu!mips!wdl1!wdl39!mab
From: mab@wdl39.wdl.loral.com (Mark A Biggar)
Subject: Re: X to the Y power, how?
Message-ID: <1992Feb28.223749.2358@wdl.loral.com>
Sender: news@wdl.loral.com
Organization: Loral Western Development Labs
References: <1992Feb27.223558.276@rice.edu> <22292@alice.att.com> <omci1INN8np@agate.berkeley.edu>
Date: Fri, 28 Feb 1992 22:37:49 GMT

In article <omci1INN8np@agate.berkeley.edu> jbuck@forney.berkeley.edu (Joe Buck) writes:
>In article <22292@alice.att.com>, bs@alice.att.com (Bjarne Stroustrup) writes:
[group 2 is pow(float,int) etc.]
>..For group 2 (floating base
>raised to integral power), the first may be negative as long as
>the second argument is zero or positive.  If both arguments are
>negative the result is undefined.

Why is (-2.0)@-2 undefined.  Isn't it equal to -0.25?
I thought there was a problem only with fractional exponents of negitive
numbers not negitive integral exponents.
--
Mark Biggar
mab@wdl1.wdl.loral.com



