Package net.algart.math.functions
Class ExpFunc
java.lang.Object
net.algart.math.functions.ExpFunc
- All Implemented Interfaces:
 Func
Exponent function:
 f(x0) =
 bx0
 (b is the base of the exponent).
 More precisely, the result of this function is
 Math.exp(x[0]*Math.log(b)) for the instance returned by getInstance(double) method
 or StrictMath.exp(x[0]*StrictMath.log(b)) for the instance
 returned by getStrictInstance(double) method.
 The get(double...) method of the instance of this class requires at least 1 argument
 and throws IndexOutOfBoundsException if the number of arguments is 0.
This class is immutable and thread-safe: there are no ways to modify settings of the created instance.
- Author:
 - Daniel Alievsky
 
- 
Nested Class Summary
Nested classes/interfaces inherited from interface net.algart.math.functions.Func
Func.Updatable - 
Field Summary
Fields inherited from interface net.algart.math.functions.Func
ABS, ABS_DIFF, HALF_X_MINUS_Y, HALF_X_PLUS_Y, HALF_Y_MINUS_X, IDENTITY, MAX, MIN, POSITIVE_DIFF, REVERSE, SELECT, SELECT_FROM_8_DIRECTIONS_2D, SELECT_IF_GREATER, SELECT_IF_GREATER_OR_EQUAL, SHIFTS_ALONG_8_DIRECTIONS_2D, UPDATABLE_IDENTITY, X_MINUS_Y, X_PLUS_Y, Y_MINUS_X - 
Method Summary
Modifier and TypeMethodDescriptiondoubleget()Equivalent toget(new double[0]).abstract doubleget(double x0) Equivalent toget(new double[] {x0}).abstract doubleget(double... x) Returns the result of this function for the given arguments: f(x0, x1, ..., xx.length-1).abstract doubleget(double x0, double x1) Equivalent toget(new double[] {x0, x1}).static ExpFuncgetInstance(double b) Returns an instance of this class for the given logarithm base b using Math.exp and Math.log methods.static ExpFuncgetStrictInstance(double b) Returns an instance of this class for the given logarithm base b using StrictMath.exp and StrictMath.log methods.toString()Returns a brief string description of this object. 
- 
Method Details
- 
getInstance
Returns an instance of this class for the given logarithm base b using Math.exp and Math.log methods.- Parameters:
 b- the base of the logarithm.- Returns:
 - an instance of this class using Math.exp and Math.log methods.
 
 - 
getStrictInstance
Returns an instance of this class for the given logarithm base b using StrictMath.exp and StrictMath.log methods.- Parameters:
 b- the base of the exponent.- Returns:
 - an instance of this class using StrictMath.exp and StrictMath.log methods.
 
 - 
get
public abstract double get(double... x) Description copied from interface:FuncReturns the result of this function for the given arguments: f(x0, x1, ..., xx.length-1).This method must not change the values of x elements!
 - 
get
public double get()Description copied from interface:FuncEquivalent toget(new double[0]). Provides better performance because it does not require Java array creation. - 
get
public abstract double get(double x0) Description copied from interface:FuncEquivalent toget(new double[] {x0}). Provides better performance because it does not require Java array creation. - 
get
public abstract double get(double x0, double x1) Description copied from interface:FuncEquivalent toget(new double[] {x0, x1}). Provides better performance because it does not require Java array creation. - 
toString
Returns a brief string description of this object. 
 -