Package org.jscience.mathematics.function
Provides support for fairly simple symbolic math analysis (to solve algebraic equations, integrate, differentiate, calculate expressions, and so on).
Functions
defined in this package
can be multivariate
and operate on various kind of objects such as physical measurements,
vectors, matrices, all types of numbers or even the functions
themselves (functions of functions)!
Here is an example using complex
polynomial
functions:[code]
// Defines two local variables (x, y).
Variable
-
ClassDescriptionThis class represents a constant function (polynomial of degree 0).DiscreteFunction<X,
Y> This class represents a function defined from a mapping betweem two sets (points and values).Function<X,Y> This abstract class represents a mapping between two sets such that there is a unique element in the second set assigned to each element in the first set.Thrown when a function operation cannot be performed.Interpolator<P,V> This interface represents an estimator of the values at a certain point using surrounding points and values.Interpolator.Linear<F extends Field<F>>This class represents a linear interpolator forfield
instances (point and values from the same field).Polynomial<R extends Ring<R>>This class represents a mathematical expression involving a sum of powers in one or morevariables
multiplied by coefficients (such asx² + x·y + 3y²
).RationalFunction<F extends Field<F>>This class represents the quotient of twoPolynomial
, it is also afield
(invertible).This class represents the term of apolynomial
such asx·y²
.Variable<X>This interface represents a symbol on whose value aFunction
depends.This class represents a simpleVariable
implementation withcontext-local
values.This class represents a simpleVariable
implementation for functions not shared between threads (non static).