allow for 'double' exponents
switch exponent to type double
more concise methods