Hey I need to know how to calculate fraction exponents such as:

answer = x to the power of y/z

ex: answer = 5 to the power of two fifths

Thanks for any help your can give.

Printable View

- 10-17-2004ninjaturtle[k9]Fraction Exponents
Hey I need to know how to calculate fraction exponents such as:

answer = x to the power of y/z

ex: answer = 5 to the power of two fifths

Thanks for any help your can give. - 10-17-2004Codeplug
- 10-17-2004XSquared
pow(x,y/z)

- 10-18-2004Sang-drax
Rational exponents are defined as:

x^(a/b) = The b:th root of x^a

On rare occations this can be calculated exactly, but usually we can only approximate it.

x raised to the power of an irrational number is approximated using rational numbers.

x^a is undefined if x is negative and a is an irrational number. - 10-18-2004DougDbug
FYI - The

**pow()**function is in**<cmath>**.