kgp.examples / CustomOperations / Exponent

Exponent

class Exponent : Function

Performs the exponent function on two arguments (|x|^y).

If y is greater than 10, then x + y + C_UNDEF will be given as output.

Constructors

<init> Exponent()

Performs the exponent function on two arguments (|x|^y).

Properties

operation val operation: Operation

An operation that this function performs when evaluated.

Inherited Properties

arity open val arity: Int

The number of arguments this function operates on.

representation val representation: String

A representation of this function that can be output.

Inherited Functions

evaluate open fun evaluate(args: List<Double>): Double

Evaluates this function on the given arguments.