exp.frac: Calculate fractional exponent/power
Description
Calculate fractional exponent/power, a^(num/den), where a could be negative.
Usage
# S3 method for frac
exp(a, num, den)
Value
numeric, the evaluated a^(num/den)
Arguments
- a
numeric(1), base (could be negative).
- num
a positive integer, numerator of the exponent.
- den
a positive integer, denominator of the exponent.