enum GSL::Roots::TypePolishing

Defined in:

gsl/maths/optimization/roots.cr

Enum Members

Newton = 0

Newton’s Method is the standard root-polishing algorithm.

Secant = 1

The secant method is a simplified version of Newton’s method which does not require the computation of the derivative on every step.

Steffenson = 2

The Steffenson Method provides the fastest convergence of all the routines. It combines the basic Newton algorithm with an Aitken “delta-squared” acceleration.

Instance Method Summary

Instance Method Detail

def newton? #

[View source]
def secant? #

[View source]
def steffenson? #

[View source]
def to_s #
Description copied from struct Enum

Returns a String representation of this enum member. In the case of regular enums, this is just the name of the member. In the case of flag enums, it's the names joined by vertical bars, or "None", if the value is zero.

If an enum's value doesn't match a member's value, the raw value is returned as a string.

Color::Red.to_s                     # => "Red"
IOMode::None.to_s                   # => "None"
(IOMode::Read | IOMode::Write).to_s # => "Read | Write"

Color.new(10).to_s # => "10"

[View source]
def to_unsafe #

[View source]