orbital.math.functional
Interface BinaryFunction
- All Superinterfaces:
- Arithmetic, BinaryFunction, Functor, MathFunctor, Normed
- All Known Subinterfaces:
- BinaryFunction.Composite
public interface BinaryFunction
- extends BinaryFunction, MathFunctor
This interface encapsulates a binary function "r = f(x,y)".
apply: A×B→C; (x,y) ↦ f(x,y).
Where A×A is often written as A2 as well.
- Since:
- Orbital1.0
- Author:
- André Platzer
- Structure:
- inherits orbital.logic.functor.BinaryFunction, inherits orbital.math.functional.MathFunctor
Method Summary |
BinaryFunction |
derive()
Derives this function and returns the resulting BinaryFunction
df/d(x,y). |
BinaryFunction |
integrate(int i)
Integrates this function and returns the resulting indefinite integral ∫ f dxi. |
Methods inherited from interface orbital.math.Arithmetic |
add, divide, equals, inverse, isOne, isZero, minus, multiply, one, power, scale, subtract, toString, valueFactory, zero |
Methods inherited from interface orbital.math.Normed |
norm |
derive
BinaryFunction derive()
- Derives this function and returns the resulting BinaryFunction
df/d(x,y).
Which is the total derivative with respect to the arguments x, y.
- Throws:
java.lang.ArithmeticException
- if this function is not differentiable.
java.lang.UnsupportedOperationException
- if this function does not implement derivation but could principally be derived.
integrate
BinaryFunction integrate(int i)
- Integrates this function and returns the resulting indefinite integral ∫ f dxi.
- Returns:
- the indefinite integral Function ∫ f dxi.
- Throws:
java.lang.ArithmeticException
- if this function is not integrable.
java.lang.UnsupportedOperationException
- if this function does not implement integration but could principally be integrated.- Preconditions:
- 0<=i && i<=1
Copyright © 1996-2009 André Platzer
All Rights Reserved.