public abstract class AbstractUnaryArithmeticOperator extends AbstractArithmeticOperator
ArithmeticOperator
s that accept exactly one argument.Constructor and Description |
---|
AbstractUnaryArithmeticOperator() |
Modifier and Type | Method and Description |
---|---|
Numeric |
calculate(Numeric n) |
protected abstract double |
calculateDouble(double n)
Returns the result of evaluating an arithmetic expression using the specified argument
|
protected abstract long |
calculateLong(long n)
Returns the result of evaluating an arithmetic expression using the specified argument
|
calculate, calculate, isPure, preprocess, setKnowledgeBase
public final Numeric calculate(Numeric n)
calculate
in class AbstractArithmeticOperator
protected abstract double calculateDouble(double n)
protected abstract long calculateLong(long n)
Copyright © 2024. All rights reserved.