Crate rmathlib

source ·
Expand description

A Rust port of R’s C Library of Special Functions.

Functions§

  • Calculates a stable deviance part using a method that reduces relative error
  • Evaluation of the Incomplete Beta function I_x(a,b)
  • chebyshev_eval evaluates the n-term Chebyshev series a at x.
  • chebyshev_init determines the number of terms for the double precision orthogonal series dos needed to insure the error is no larger than eta. Ordinarily eta will be chosen to be one-tenth machine precision.
  • Calculates the cosine of a number given in multiples of π (pi).
  • AUTHOR Catherine Loader, catherine@research.bell-labs.com. October 23, 2000.
  • checks argument validity and calls dpois_raw().
  • Compute x * log (x / M) + (M - x) aka -x * log1pmx ((M - x) / x)
  • This function computes the value of the gamma function.
  • This function returns the value of the log beta function
  • Compute the log gamma correction factor for x >= 10 so that
  • The function lgammafn computes log|gamma(x)|. The function lgammafn_sign in addition assigns the sign of the gamma function to the address in the second argument if this is not NULL.
  • Compute the log gamma function and its sign.
  • Accurate calculation of log(1+x)-x, particularly for small x.
  • Compute the log of a sum from logs of terms, i.e., log(exp(logx) + exp(logy)) without causing overflows and without throwing away large handfuls of accuracy.
  • Returns distribution function of the beta distribution. ( = The incomplete beta ratio I_x(p,q) ).
  • Computes the distribution function for the gamma distribution with shape parameter alph and scale parameter scale.
  • The PDF of the Student’s t-distribution.
  • Calculates the sinus of a number given in multiples of π (pi).
  • Computes the log of the error term in Stirling’s formula.
  • Calculates the tangent of a number given in multiples of π (pi).