public static class Library.Power extends Function.Cts2Cts
inv(x)
if c=1 and p=−1.Function.Cts2Cts.Derivative, Function.Cts2Cts.Integral, Function.Cts2Cts.WithInverse
Function.Cts2Cts, Function.Cts2Cts2Cts, Function.CtsD2CtsD, Function.HasInverse, 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 |
---|---|
double |
c
'c' the multiplicative constant, and 'p' the
power of 'x', as in c*xp.
|
double |
p
'c' the multiplicative constant, and 'p' the
power of 'x', as in c*xp.
|
Constructor and Description |
---|
Power(double p) |
Power(double c,
double p) |
Power(Value p) |
Power(Value c,
Value p) |
Modifier and Type | Method and Description |
---|---|
double |
apply_x(double x)
|
Function.Cts2Cts |
make_d_dx()
The derivative of c.xp is c.p.xp-1.
|
Function.Cts2Cts2Cts |
make_integral()
The integral of c.xp is (c/(p+1))xp+1
unless p=−1 in which case the integral is c.log(x).
|
apply, d_dx, d2_dx2, exactIntegral, fromFunction, integral, NewtonRaphson, root, turning, uOp
public final double c
public final double p
public Power(Value p)
public Power(double p)
public Power(double c, double p)
public double apply_x(double x)
apply_x
in class Function.Cts2Cts
public Function.Cts2Cts make_d_dx()
make_d_dx
in class Function.Cts2Cts
public Function.Cts2Cts2Cts make_integral()
make_integral
in class Function.Cts2Cts