Function trapz_array
Source pub fn trapz_array<T>(x: &[T], y: &[T]) -> Result<T>
Expand description
Trapezoidal rule for arrays of x and y values
§Arguments
x - Array of x coordinates (must be sorted in ascending order)
y - Array of y values (f(x))
§Returns
- Approximate integral using trapezoidal rule