public static class Function.Derivative extends Function.Cts2Cts
differences
. The key
method is apply_xx(δ,x)
.
Also see Cts2Cts.d_dx()
and
Cts2Cts.make_d_dx()
.Function.Cts2Cts, Function.Derivative, Function.Integral, Function.Native, Function.Native2, Function.Native3
Value.Atomic, Value.Bool, Value.Char, Value.Chars, Value.Cts, Value.Defer, Value.Discrete, Value.Enum, Value.Inc_Or, Value.Int, Value.Lambda, Value.List, Value.Maybe, Value.Option, Value.Real, Value.Scannable, Value.Structured, Value.Triv, Value.Tuple
Modifier and Type | Field and Description |
---|---|
Function.Cts2Cts |
f
The Cts2Cts "f" of which "this" is the Derivative, f'.
|
Constructor and Description |
---|
Derivative(Function f)
Construct the Derivative of the Cts2Cts, '
f '. |
Modifier and Type | Method and Description |
---|---|
double |
apply_x(double x)
Call
apply_xx(δ,x) for
some "small" δ. |
double |
apply_xx(double delta,
double x)
Compute the Derivative of
f by finite differences here. |
protected Function.Derivative |
make_d_dx()
The Derivative of 'this' is the second Derivative of
f , by finite differences. |
protected Function.Integral |
make_integral()
|
apply, d_dx, d2_dx2, fromFunction, integral, NewtonRaphson, root, turning, uOp
public final Function.Cts2Cts f
public double apply_x(double x)
apply_xx(δ,x)
for
some "small" δ. If you don't want to take your chances
with δ being chosen for you, set your own with
apply_xx(δ,x)
.apply_x
in class Function.Cts2Cts
public double apply_xx(double delta, double x)
f
by finite differences here.
Called by apply_x(x)
.
Return protected Function.Derivative make_d_dx()
f
, by finite differences.make_d_dx
in class Function.Cts2Cts
protected Function.Integral make_integral()
make_integral
in class Function.Cts2Cts