PR adds an improved implementation of the Pow method. It also adds three new methods - PowWithPrecision, PowInt32, and PowBigInt.
PowWithPrecision can be used for calculating powers with high, specific precision. PowInt32 and PowBigInt can be used for more performant calculation of decimal powers in case the exponent is simply an integer.
It took me some time to implement them as it was quite a difficult task, especially when we care about correctness and high precision. I also had to implement natural exponent and natural logarithm implementation for that.
PR adds an improved implementation of the
Pow
method. It also adds three new methods -PowWithPrecision
,PowInt32
, andPowBigInt
.PowWithPrecision
can be used for calculating powers with high, specific precision.PowInt32
andPowBigInt
can be used for more performant calculation of decimal powers in case the exponent is simply an integer.It took me some time to implement them as it was quite a difficult task, especially when we care about correctness and high precision. I also had to implement natural exponent and natural logarithm implementation for that.