Crate math_fun

source ·
Expand description

Special functions for science and engineering problems.

Provides several mathematical functions that often appear in many different disciplines of science and engineering.

The goal of this package is to provide simple-to-use, pure-rust implementations without many dependencies. Rather than trying to exhaustively provide as many functions as possible or to cover all possible argument types and ranges, implementing widely used functions in an efficient way is the first priority.

In addition to functions that take in a single argument to evaluate the function at, sph_bessel_kind1_ordern_arg_real(order: usize, x: f64), the same functions that take in three arguments, start, stop, and step, to return a vector that contains the evaluation of the function over a range, sph_bessel_kind1_ordern_arg_real_ranged(order: usize, start: f64, stop: f64, step: f64)

Functions§

  • Accept the three arguments indicating a range, and return a vector of that range. It currently panics if wrong arguments are entered. In the future the return type may be changed to Results to deal with errors graciously.
  • Spherical Bessel function of the first kind, order = 0 j_n(x) = \sqrt{\pi/{2x}}J_{n+0.5}(x)
  • Spherical Bessel function of the first kind, order = 0, a range input It currently panics if wrong arguments are entered. In the future the return type may be changed to Results to deal with errors graciously.
  • Spherical Bessel function of the first kind, order = n It currently panics if wrong arguments are entered. In the future the return type may be changed to Results to deal with errors graciously.
  • Spherical Bessel function of the first kind, order = n, a range input It currently panics if wrong arguments are entered. In the future the return type may be changed to Results to deal with errors graciously.
  • Spherical Bessel function of the second kind, order = 0 j_n(x) = \sqrt{\pi/{2x}}J_{n+0.5}(x)
  • Spherical Bessel function of the second kind, order = 0, a range input It currently panics if wrong arguments are entered. In the future the return type may be changed to Results to deal with errors graciously.
  • Spherical Bessel function of the second kind, order = n It currently panics if wrong arguments are entered. In the future the return type may be changed to Results to deal with errors graciously.
  • Spherical Bessel function of the second kind, order = n, a range input It currently panics if wrong arguments are entered. In the future the return type may be changed to Results to deal with errors graciously.