ta4j/src/main/java/eu/verdelhan/ta4j/Decimal.java
public Decimal pow(int n) {
        if (this == NaN) {
            return NaN;
        }
        return new Decimal(delegate.pow(n, MATH_CONTEXT));
    }
public Decimal pow(int n) {
        if (this == NaN) {
            return NaN;
        }
        return new Decimal(delegate.pow(n, MATH_CONTEXT));
    }
Returns a {@code Decimal} whose value is <tt>(this<sup>n</sup>)</tt>.
@param n power to raise this {@code Decimal} to.
@return <tt>this<sup>n</sup></tt>
@see BigDecimal#pow(int, java.math.MathContext)