kgp.tree / Nodes / Cosine

Cosine

class Cosine : Function

Performs the cosine function on a single argument (cos(x))

Constructors

<init> Cosine()

Performs the cosine function on a single argument (cos(x))

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.