Sign in

    special-mathematical-functions

    math
    function
    calculus
    Download zip
    Version
    0.1.0
    License
    Apache-2.0
    Last updated
    last year
    Downloads
    46

    #enanandesu/special-mathematical-functions

    #已实现:

    • #椭圆函数与椭圆积分

    • #误差函数

    • #菲涅尔积分

    • #函数求逆

    dawsn

    fn dawsn(x : Double) -> Double

    Dawson's integral.

    ellipe

    fn ellipe(m : Double) -> Double

    Complete elliptic integral of the second kind E(m)

    ellipeinc

    fn ellipeinc(phi : Double, m : Double) -> Double

    Incomplete elliptic integral of the second kind F(phi, m)

    ellipj

    fn ellipj(u : Double, m : Double) -> (Double, Double, Double, Double)

    Jacobian elliptic functions sn, cn, dn and amplitude am Similar to SciPy's ellipj function

    Parameters:
    • u: argument
    • m: parameter (0 <= m < 1)

    Returns: (sn, cn, dn, phi) where phi is the amplitude

    ellipk

    fn ellipk(m : Double) -> Double

    Complete elliptic integral of the first kind K(m)

    ellipkinc

    fn ellipkinc(phi : Double, m : Double) -> Double

    Incomplete elliptic integral of the first kind F(phi, m)

    erf

    fn erf(x : Double) -> Double

    Returns the error function of argument.

    erfc

    fn erfc(x : Double) -> Double

    Complementary error function, 1 - erf(x).

    erfcinv

    fn erfcinv(y : Double) -> Double

    Inverse of the complementary error function.

    erfcx

    fn erfcx(x : Double) -> Double

    Scaled complementary error function, exp(x**2) * erfc(x).

    erfinv

    fn erfinv(x : Double) -> Double

    Inverse of the error function.

    fresnel

    fn fresnel(x : Double) -> (Double, Double)

    Fresnel integrals.

    func_inv

    fn func_inv(target : Double, f : (Double) -> Double, d : (Double) -> Double, initial_guess : Double, max_iterations? : Int, tol? : Double) -> Double?

    Calculates the inverse of a function