enum GSL::Diff::Direction

Overview

This enum represents algorithm of Numerical Differentiation

Defined in:

gsl/maths/analysis/diff.cr

Enum Members

Central = 0

Function will be evaluated at points x-step, x-step/2, x+step/2 and x+step This is default option

Forward = 1

Function will be evaluated at points x+step/4, x+step/2, x+3*step/4 and x+step It is useful when function is not defined at points <= x

Backward = 2

Equivalent to Forward but with negative step

Instance Method Summary

Instance Method Detail

def backward? #

[View source]
def central? #

[View source]
def forward? #

[View source]