[][src]Function civil::units::calculus::integrate

pub fn integrate(f: fn(_: f32) -> f32, n: i32, a: f32, b: f32) -> f32

Gauss-Legendre quadrature f - polynomial function n - order of function a - start point of the integral b - end point of the integral There is currently no error handling, so edge cases will panic. Expect a patch in the near future returning Result<f32,SomeError> types instead of just f32s.