maths.calculus module

Module to perform numeral calculus: integrals, derivatives, find 0, minima, maxima

Authors

Alexandre Lasheen

blond_common.maths.calculus.deriv_cubic(x, y, tck=None, s=0)[source]

Function returning the derivative of a given function y, using cubic spline interpolation

blond_common.maths.calculus.deriv_diff(x, y)[source]

Function returning the derivative of a given function y, using diff Since the returned array is 1 element shorter, a new_x array is also returned

blond_common.maths.calculus.deriv_gradient(x, y)[source]

Function returning the derivative of a given function y, using gradient

blond_common.maths.calculus.find_zeros_cubic(x, y, tck=None, s=0, rettck=False, mest=10)[source]

Function to find the location of all zero crossings of a numerical function

blond_common.maths.calculus.integ_cubic(x, y, constant=0.0, s=0, tck=None, tck_ader=None, rettck=False)[source]

Function returning the primitive of a given function y, using cubic spline interpolation

blond_common.maths.calculus.integ_trapz(x, y, constant=0.0)[source]

Function returning the primitive of a given function y, using cumtrapz

blond_common.maths.calculus.minmax_location_cubic(x, y, der=None, tck=None, tck_der=None, s=0, rettck=False, mest=10)[source]

Function returning the minima, maxima of a given function y, as well as their location in x

blond_common.maths.calculus.minmax_location_discrete(x, f)[source]

Function to locate the minima and maxima of the f(x) numerical function.