# Re: [Boost-bugs] [Boost C++ Libraries] #8798: pow(cpp_dec_float_type(0), cpp_dec_float_type(n)) != 0 for n > 1

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8798: pow(cpp_dec_float_type(0), cpp_dec_float_type(n)) != 0 for n > 1
Date: 2013-07-09 06:04:28

#8798: pow(cpp_dec_float_type(0), cpp_dec_float_type(n)) != 0 for n > 1
--------------------------------------+----------------------------
Reporter: Jan Bouwer <JBouwer@â€¦> | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: multiprecision
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------+----------------------------

Comment (by Jan Bouwer <JBouwer@â€¦>):

Output of the attached code:
{{{
pow(0, 0) = 1
pow(0, 1) = 0
pow(0, 2) = 0
pow(1, 0) = 1
pow(1, 1) = 1
pow(1, 2) = 1
pow(2, 0) = 1
pow(2, 1) = 2
pow(2, 2) = 4
pow(0, 0) = 1
pow(0, 1) = 0
pow(0, 2) = 1 - Unexpected!
pow(1, 0) = 1
pow(1, 1) = 1
pow(1, 2) = 1
pow(2, 0) = 1
pow(2, 1) = 2
pow(2, 2) = 4
pow(0, 0) = 1
pow(0, 1) = 0
pow(0, 2) = 1 - Unexpected!
pow(1, 0) = 1
pow(1, 1) = 1
pow(1, 2) = 1
pow(2, 0) = 1
pow(2, 1) = 2
pow(2, 2) = 4
pow(0, 0) = 1
pow(0, 1) = 0
pow(0, 2) = 1 - Unexpected!
pow(1, 0) = 1
pow(1, 1) = 1
pow(1, 2) = 1
pow(2, 0) = 1
pow(2, 1) = 2
pow(2, 2) = 4
}}}

```--
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8798#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
```

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC