[][src]Module civil::units::calculus

Calculus utility to be used in other parts of the library.

THERE IS ZERO ERROR HANDLING HERE

Everything is going to be heavily refactored before 1.0

Constants

ABSCISSA

These constants are used for Gauss-Legendre Quadrature calculations. We have the option of solving for equations up to the order of 127, which is probably never necessary. So far, these solutions seem to produce very adequate results. At some point these methods should be refactored for either:

WEIGHTS

Functions

integrate

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.