How to use the numdifftools.extrapolation.Richardson function in numdifftools

To help you get started, we’ve selected a few numdifftools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pbrod / numdifftools / src / numdifftools / core.py View on Github external
def set_richardson_rule(self, step_ratio, num_terms=2):
        order = self._method_order
        step = self._richardson_step()
        self.richardson = Richardson(step_ratio=step_ratio,
                                     step=step, order=order,
                                     num_terms=num_terms)
github pbrod / numdifftools / src / numdifftools / limits.py View on Github external
def _set_richardson_rule(self, step_ratio, num_terms=2):
        self.richardson = Richardson(step_ratio=step_ratio, step=1, order=1,
                                     num_terms=num_terms)
github pbrod / numdifftools / src / numdifftools / limits.py View on Github external
def __init__(self, fun, step=None, method='above', order=4, full_output=False, **options):
        self.fun = fun
        self.method = method
        self.order = order
        self.full_output = full_output
        self.step = step, options

        self.richardson = Richardson(step_ratio=1.6, step=1, order=1, num_terms=2)