alexandria_numeric 0.1.0

A set of numerical analysis libraries and algorithms

Readme

Numerical analysis

Trapezoidal rule

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)).

Interpolation

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

Cumsum

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

Cumprod

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

Diff

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

Metadata

Version 0.1.0

Uploaded 1 month ago

Size 4.4 KB

Installation

Run the following command in your project dir

scarb add alexandria_numeric@0.1.0

Or add the following line to your Scarb.toml

alexandria_numeric = "0.1.0"

Monthly downloads

Links

Homepage github.com/keep-starknet-strange/alexandria/tree/main/src/numeric

Owners