API
Main.PiecewisePolynomials.PiecewisePoly
— TypeType for function piecewise polynomial.
PiecewisePoly(
polys::Vector{<:Poly},
knots::Vector{<:Real};
issafe::Bool = false
)
Arguments
polys
– polynomialsknots
– polynomials segmentsissafe
– if true, correctness of agruments is not cheched
Fields
polys::Vector{<:Poly}
– function (type depends on the basis)knots::Vector{<:Real}
– support of the function
Main.PiecewisePolynomials.derivative
— Methodderivative(poly::PiecewisePoly, x::Real)
Returns: the value of the first order derivative of polynomial at point x
.
Main.PiecewisePolynomials.derivative
— Methodderivative(poly::PiecewisePoly; order::Int=1)::PiecewisePoly
Returns: derivative of order order
for given polynomial.
Main.PiecewisePolynomials.antiderivative
— Methodantiderivative(poly::PiecewisePoly)::PiecewisePoly
Returns: antiderivative for given polynomial.
Main.PiecewisePolynomials.integral
— Methodintegral(poly::PiecewisePoly, a::Real, b::Real)
Returns: integral of given polynomial from point a
to point b
.