power

fun <T> Ring<T>.power(arg: T, exponent: UInt): T

Raises arg to the non-negative integer power exponent.

Special case: 0 ^ 0 is 1.

Return

the base raised to the power.

Author

Evgeniy Zhelenskiy

Parameters

<receiver>

the algebra to provide multiplication.

arg

the base.

exponent

the exponent.

fun <T> Field<T>.power(arg: T, exponent: Int): T

Raises arg to the integer power exponent.

Special case: 0 ^ 0 is 1.

Return

the base raised to the power.

Author

Iaroslav Postovalov, Evgeniy Zhelenskiy

Parameters

<receiver>

the algebra to provide multiplication and division.

arg

the base.

exponent

the exponent.