class GSL::PolyDD
- GSL::PolyDD
- Reference
- Object
Overview
PolyDD class represents divided difference representation of polinomial
Defined in:
gsl/maths/basic/poly.crConstructors
-
.new(xa : Array(Float64), ya : Array(Float64))
Constructs PolyDD that have values
ya
at points#xa
Class Method Summary
-
.new_hermite(xa : Array(Float64), ya : Array(Float64), dya : Array(Float64))
Constructs PolyDD that have values
ya
at points#xa
and also derivatesdya
Instance Method Summary
-
#dd : Slice(Float64)
array of divided-differences.
-
#eval(x)
Evaluates polinomial value at given point
-
#size
length of divided-differences (order of polinomial+1)
-
#to_taylor(xp)
Converts to
Poly
that is taylor expansion of polinomial at pointxp
-
#xa : Slice(Float64)
array of x points
Constructor Detail
Constructs PolyDD that have values ya
at points #xa
Class Method Detail
Constructs PolyDD that have values ya
at points #xa
and also derivates dya