Skip to content

Commit

Permalink
Trac #21819: Rewrite error functions and documentation
Browse files Browse the repository at this point in the history
This ticket should accomplish:
 * implement inverse error function `erfinv` (#11349)
 * implement imaginary error function `erfi`.
 * People need to manipulate statistical distribution functions as in
https://ask.sagemath.org/question/35407/use-cumulative-distribution-
functions/. To provide the means a symbolical version of `erfc` is
necessary. The current `error_fcn()` is only numerical.
 * put it all in a separate file `functions/error.py` with central
documentation

http://dlmf.nist.gov/7

URL: https://trac.sagemath.org/21819
Reported by: rws
Ticket author(s): Ralf Stephan
Reviewer(s): Travis Scrimshaw
  • Loading branch information
Release Manager authored and vbraun committed May 16, 2017
2 parents ff3ad80 + 1eac4d8 commit 51f8023
Show file tree
Hide file tree
Showing 8 changed files with 563 additions and 257 deletions.
1 change: 1 addition & 0 deletions src/doc/en/reference/functions/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Functions
sage/functions/trig
sage/functions/hyperbolic
sage/functions/transcendental
sage/functions/error
sage/functions/piecewise
sage/functions/spike_function
sage/functions/orthogonal_polys
Expand Down
6 changes: 6 additions & 0 deletions src/doc/en/reference/references/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,10 @@ REFERENCES:
Functions, in NIST Digital Library of Mathematical
Functions. http://dlmf.nist.gov/10
.. [DLMF-Error] \N. M. Temme: 7. Error Functions, Dawson’s and Fresnel
Integrals, in NIST Digital Library of Mathematical
Functions. http://dlmf.nist.gov/7
.. [DLMF-Struve] \R. B. Paris: 11. Struve and Related Functions, in
NIST Digital Library of Mathematical
Functions. http://dlmf.nist.gov/11
Expand Down Expand Up @@ -1694,6 +1698,8 @@ REFERENCES:
.. [WP-Bessel] :wikipedia:`Bessel_function`
.. [WP-Error] :wikipedia:`Error_function`
.. [WP-Struve] :wikipedia:`Struve_function`
.. _ref-X:
Expand Down
9 changes: 5 additions & 4 deletions src/sage/functions/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

lazy_import('sage.functions.piecewise_old', 'Piecewise') # deprecated
lazy_import('sage.functions.piecewise', 'piecewise')
lazy_import('sage.functions.error', ['erf', 'erfc', 'erfi', 'erfinv'])

from .trig import ( sin, cos, sec, csc, cot, tan,
asin, acos, atan,
Expand All @@ -21,7 +22,7 @@


from .other import ( ceil, floor, gamma, psi, factorial, beta, binomial,
abs_symbolic, erf, sqrt, log_gamma,
abs_symbolic, sqrt, log_gamma,
gamma_inc, incomplete_gamma, gamma_inc_lower,
arg, real_part, real, frac,
imag_part, imag, imaginary, conjugate)
Expand All @@ -37,10 +38,9 @@
spherical_bessel_J, spherical_bessel_Y,
spherical_hankel1, spherical_hankel2)

from .special import (spherical_harmonic,
error_fcn, elliptic_e,
from .special import (spherical_harmonic, elliptic_e,
elliptic_f, elliptic_ec, elliptic_eu,
elliptic_kc, elliptic_pi, elliptic_j)
elliptic_kc, elliptic_pi, elliptic_j, error_fcn)

from .jacobi import (jacobi, inverse_jacobi, jacobi_nd, jacobi_ns, jacobi_nc,
jacobi_dn, jacobi_ds, jacobi_dc, jacobi_sn, jacobi_sd,
Expand Down Expand Up @@ -84,3 +84,4 @@
exponential_integral_1, Ei, exp_integral_ei)

from .hypergeometric import hypergeometric, hypergeometric_M, hypergeometric_U

Loading

0 comments on commit 51f8023

Please sign in to comment.