class GSL::PolyDD

Overview

PolyDD class represents divided difference representation of polinomial

Defined in:

gsl/maths/basic/poly.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(xa : Array(Float64), ya : Array(Float64)) #

Constructs PolyDD that have values ya at points #xa


[View source]

Class Method Detail

def self.new_hermite(xa : Array(Float64), ya : Array(Float64), dya : Array(Float64)) #

Constructs PolyDD that have values ya at points #xa and also derivates dya


[View source]

Instance Method Detail

def dd : Slice(Float64) #

array of divided-differences.


[View source]
def eval(x) #

Evaluates polinomial value at given point


[View source]
def size #

length of divided-differences (order of polinomial+1)


[View source]
def to_taylor(xp) #

Converts to Poly that is taylor expansion of polinomial at point xp


[View source]
def xa : Slice(Float64) #

array of x points


[View source]