Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.59 KB

README.md

File metadata and controls

27 lines (16 loc) · 1.59 KB

Numerical analysis

In numerical analysis and scientific computing, the trapezoidal rule is a numerical method to solve ordinary differential equations derived from the trapezoidal rule for computing integrals (see also).

Returns the one-dimensional piecewise linear interpolant to a function with given discrete data points (xs, ys), evaluated at x (see also). Several interpolation methods are supported as follow:

  • Linear interpolation: y is linearly interpolated between the two nearest neighbors at x
  • Nearest-neighbor interpolation: y is set to the value of the nearest neighbor at x
  • Constant left interpolation: ys behaves as an integer part function where each y data point extends to the left up to the next index
  • Constant right interpolation: ys behaves as an integer part function where each y data point extends to the right up to the next index

Return the cumulative sum of the elements (see also).

Return the cumulative product of the elements (see also).

Return the discrete difference of the elements (see also).