class Division : Function
Divides one argument by the other in a protected manner (x / if (x == 0) 1.0 else y).
The division is protected to prevent divide by zero errors.
<init> |
Division()
Divides one argument by the other in a protected manner (x / if (x == 0) 1.0 else y). |
operation |
val operation: Operation
An operation that this function performs when evaluated. |
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. |
evaluate |
open fun evaluate(args: List<Double>): Double
Evaluates this function on the given arguments. |