Orbital library

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

Nested Class Summary
static interface BinaryFunction.Composite
A composite function.

Nested classes/interfaces inherited from interface orbital.logic.functor.Functor
Functor.Specification

Nested classes/interfaces inherited from interface orbital.logic.functor.Functor
Functor.Specification

Field Summary

Fields inherited from interface orbital.logic.functor.BinaryFunction
callTypeDeclaration

Fields inherited from interface orbital.math.Arithmetic
numerical

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.logic.functor.BinaryFunction
apply

Methods inherited from interface orbital.logic.functor.Functor
equals, hashCode, toString

Methods inherited from interface orbital.logic.functor.Functor
equals, hashCode, toString

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

Method Detail

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

Orbital library
1.3.0: 11 Apr 2009