public abstract class Function
extends java.lang.Object
Constructor and Description |
---|
Function() |
Modifier and Type | Method and Description |
---|---|
static Function |
add(Function f,
Function g)
the sum of two functions
|
static Function |
compose(Function f,
Function g)
the composite of to functions
|
static Function |
div(Function f,
Function g)
the quaotient of two functions
|
double |
max(double a,
double A,
int N)
The maximum of this function over an interval [a,A] evaluated at N+1 evenly
distributed values
|
double |
min(double a,
double A,
int N)
The minimum of this function over an interval [a,A] evaluated at N+1 evenly
distributed values
|
static Function |
mul(Function f,
Function g)
the product of two functions
|
static Function |
sub(Function f,
Function g)
the difference of two functions
|
abstract double |
valueAt(double x)
the value of the function at the point x
|
double[] |
valuesAt(double[] x)
the array of values of this function at an array of values
|
double[][] |
valuesAt(double[][] x)
the array of values of this function at a 2 dimensional array of values
|
public abstract double valueAt(double x)
x
- the argument of the functionpublic double[] valuesAt(double[] x)
x
- the array of argument valuespublic double[][] valuesAt(double[][] x)
x
- the array of argument valuespublic double max(double a, double A, int N)
a
- the left endpoint of the intervalA
- the right enpoint of the intervalN
- the number of subdivision intervalspublic double min(double a, double A, int N)
a
- the left endpoint of the intervalA
- the right enpoint of the intervalN
- the number of subdivision intervalspublic static Function compose(Function f, Function g)
f
- the first functiong
- the second functionpublic static Function add(Function f, Function g)
f
- the first functiong
- the second functionpublic static Function sub(Function f, Function g)
f
- the first functiong
- the second functionpublic static Function mul(Function f, Function g)
f
- the first functiong
- the second function