Class Log
java.lang.Object
calculator.functions.BinaryFunction
calculator.functions.Log
- All Implemented Interfaces:
Expression
This class represents the arithmetic binary operation "log(x, base)".
-
Field Summary
Fields inherited from class BinaryFunction
symbol -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAbstract method representing the actual function result of two complexesop(IntegerAtom base, IntegerAtom n) Abstract method representing the actual function result of two integersAbstract method representing the actual function result of two RationnalsAbstract method representing the actual function result of two realsMethods inherited from class BinaryFunction
accept, equals, getFirstArg, getSecondArg, getSymbol, setFirstArg, setSecondArg, setSymbol
-
Constructor Details
-
Log
- Throws:
IllegalConstruction
-
-
Method Details
-
op
Description copied from class:BinaryFunctionAbstract method representing the actual function result of two reals- Specified by:
opin classBinaryFunction- Parameters:
base- first Real of the binary operationn- second Real of the binary operation- Returns:
- result of the function on two Reals
-
op
Description copied from class:BinaryFunctionAbstract method representing the actual function result of two complexes- Specified by:
opin classBinaryFunction- Parameters:
base- first Complex of the binary operationn- second Complex of the binary operation- Returns:
- result of the function on two Complexes
-
op
Description copied from class:BinaryFunctionAbstract method representing the actual function result of two integers- Specified by:
opin classBinaryFunction- Parameters:
base- first Integer of the binary operationn- second Integer of the binary operation- Returns:
- result of the function on two IntegerAtoms
-
op
Description copied from class:BinaryFunctionAbstract method representing the actual function result of two Rationnals- Specified by:
opin classBinaryFunction- Parameters:
base- first Rationnal of the binary operationn- second Rationnal of the binary operation- Returns:
- result of the function on two Rationnals
-