public final class Add extends AbstractBinaryArithmeticOperator
+
- performs addition.Constructor and Description |
---|
Add() |
Modifier and Type | Method and Description |
---|---|
protected double |
calculateDouble(double n1,
double n2)
Returns the sum of the two arguments
|
protected long |
calculateLong(long n1,
long n2)
Returns the sum of the two arguments
|
calculate
calculate, calculate, isPure, preprocess, setKnowledgeBase
protected double calculateDouble(double n1, double n2)
calculateDouble
in class AbstractBinaryArithmeticOperator
protected long calculateLong(long n1, long n2)
calculateLong
in class AbstractBinaryArithmeticOperator
Copyright © 2024. All rights reserved.