Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
(cherry picked from commit
10e466448f67850ed7bb2e2a4e7f017f2b050cad)
Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
The rounding mode of the context is used. Results are always correctly-rounded
in the Python version.
+ ``Decimal(0) ** Decimal(0)`` results in ``InvalidOperation``, and if ``InvalidOperation``
+ is not trapped, then results in ``Decimal('NaN')``.
+
.. versionchanged:: 3.3
The C module computes :meth:`power` in terms of the correctly-rounded
:meth:`exp` and :meth:`ln` functions. The result is well-defined but