Skip to content

give it a smaller default step in the numerical diff #3

Open
@eweca-d

Description

@eweca-d

The current default step is pub const DEFAULT_STEP_SIZE: f64 = 0.00001;. It is too big for some functions. I would recommend a smaller value pub const DEFAULT_STEP_SIZE: f64 = 1.49e-8. You can find the magic value in a popular python library scipy: https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.approx_fprime.html.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions