alexandria_numeric 0.1.0

A set of numerical analysis libraries and algorithms

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

Version 0.1.0

Uploaded 3 months ago

Size 4.4 KB

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"
```

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