Example #1
0
Number pow(const Number &n, const Number &exp)
{
    return n.pow(exp);
}
Example #2
0
Number sqrt(const Number &n)
{
    return n.pow(0.5);
}
Example #3
0
RCP<const Number> Number::div(const Number &other) const
{
    return mul(*other.pow(*integer(-1)));
}