The following list of functions are built in Yet Another Language.
Signature |
Description |
bool yesno ( expr_strn ) |
Promts user to answer "yes" or "no" |
integer stopwatch ( ) |
Returns current system clock. |
integer irandom ( expr_intg1, expr_intg2) |
Returns an integer random number between expr_intg1 and expr_int2 |
real lnfac ( expr_intg ) |
Returns natural log of factorial expr_intg |
real lnper (expr_intg1, expr_intg2 ) |
Returns natural log of permutation |
real lncom (expr_intg1, expr_intg2 ) |
Returns natural log of combination |
real fabs ( expr_real ) |
Returns absolute value |
real round ( expr_real ) |
Returns rounded value |
real rad (expr_real) |
Converts degree to radian |
real deg (expr_real ) |
Converts radian to degree |
real sqrt (expr_real ) |
Returns square root |
real exp (expr_real ) |
Returns exponentiation with base e |
real cos (expr_real ) |
Cosine function |
real sin (expr_real) |
Sine function |
real tan (expr_real ) |
Tangent function |
real acos (expr_real ) |
Arc-cosine function |
real asin (expr_real ) |
Arc-sine function |
real atan (expr_real ) |
Arc-tangent function |
real cosh (expr_real ) |
Hyperbolic cosine function |
real sinh (expr_real ) |
Hyperbolic sine function |
real tanh (expr_real ) |
Hyperbolic tangent function |
real ln (expr_real ) |
Natural log function |
real log (expr_real ) |
Log function |
real gamma (expr_real ) |
Gamma function |
real gammln (expr_real ) |
Natural log of gamma function |
real frl ( expr_real ) |
Factorial function |
real fln (expr_real ) |
Natural log of factorial |
real erf (expr_real ) |
Error function |
real erfc (expr_real ) |
Complementary error function |
real erfcc (expr_real ) |
Complementary error function with fractional error less than 1.2e-7 |
real ei (expr_real ) |
Exponential integral , expr_real > 0 |
real bessj0 (expr_real ) |
Bessel function J0(x) |
real bessj1 (expr_real ) |
Bessel function J1(x) |
real bessy0 (expr_real ) |
Bessel function Y0(x) |
real bessy1 (expr_real ) |
Bessel function Y1(x) |
real bessi0 (expr_real ) |
Modified Bessel function I0(x) |
real bessi1 (expr_real ) |
Modified Bessel function I1(x) |
real bessk0 (expr_real ) |
Modified Bessel function K0(x) |
real bessk1 (expr_real ) |
Modified Bessel function K1(x) |
real drandom (expr_real1, expr_real2) |
Returns random number between expr_real1 and expr_real2 |
real bessjn (expr_real1, expr_real2) |
Bessel function Jn(x) |
real bessyn (expr_real1, expr_real2) |
Bessel function Yn(x) |
real bessin(expr_real1, expr_real2) |
Bessel function In(x) |
real besskn (expr_real1, expr_real2) |
Bessel function Kn(x) |
real bessjnu (expr_real1, expr_real2) |
Bessel function Jv(x) |
real bessynu (expr_real1, expr_real2) |
Bessel function Yv(x) |
real bessjnup (expr_real1, expr_real2) |
Bessel function derivative of Jv(x) |
real bessynup (expr_real1, expr_real2) |
Bessel function derivative of Yv(x) |
real bessinu (expr_real1, expr_real2) |
Bessel function Iv(x) |
real bessinup(expr_real1, expr_real2) |
Bessel function derivative of Iv(x) |
real bessknu (expr_real1, expr_real2) |
Bessel function Kv(x) |
real bessknup(expr_real1, expr_real2) |
Bessel function derivative of Kv(x) |
real gamma1 (expr_real) |
|
real gamma2 (expr_real) |
|
real gampl (expr_real ) |
|
real gammi ( expr_real ) |
|
real frec (expr_real ) |
Frenel integral C(x) |
real fres (expr_real) |
Frenel integral S(x) |
real ci (expr_real ) |
Cosine integral Ci(x) |
real si (expr_real) |
Sine integral Si(x) |
real dawson (expr_real ) |
Dawson's integral F(x) |
real ai (expr_real) |
Airy function Ai(x) |
real aip (expr_real) |
Airy function, derivative of Ai(x) |
real bi (expr_real) |
Airy function Bi(x) |
real bip (expr_real) |
Airy function, derivative of Bi(x) |
real spjn (expr_real1, expr_real2) |
Spherical Bessel function jn(x) |
real spjnp (expr_real1, expr_real2) |
Spherical Bessel function, derivative of jn(x) |
real spyn (expr_real1, expr_real2) |
Spherical Bessel function yn(x) |
real spynp (expr_real1, expr_real2) |
Spherical bessel function, derivative of yn(x) |
real atan2 (expr_real1, expr_real2 ) |
Arc-tangent |
real pow (expr_real1, expr_real2) |
Power function |
real beta(expr_real1, expr_real2) |
Beta function |
real gammp (expr_real1, expr_real2) |
|
real gammq (expr_real1, expr_real2) |
|
real poi (expr_real1, expr_real2) |
Cumulative Poisson probability |
real chip (expr_real1, expr_real2) |
Chi-Square P(x2 | v); |
real chiq (expr_real1, expr_real2) |
Chi-Square Q(x2 | v); |
real sn (expr_real1, expr_real2) |
Jacobian elliptic fucntion sn(u, kc) |
real cn (expr_real1, expr_real2) |
Jacobian elliptic fucntion cn(u, kc) |
real dn (expr_real1, expr_real2) |
Jacobian elliptic fucntion dn(u, kc) |
real expnt (expr_real1, expr_real2) |
Exponential integer, En(x) |
real stp (expr_real1, expr_real2) |
Student's Distribution Probability, A(t|v) |
real rc (expr_real1, expr_real2) |
Carlson's degenerate elliptic integral, Rc(x, y) |
real ellf (expr_real1, expr_real2) |
Legendre elliptic integral of the first kind F(phi, k), |
real elle (expr_real1, expr_real2) |
Legendre elliptic integral of the second kind E(phi, k) |
real ellpi (expr_real1, expr_real2) |
Legendre elliptic integral of the 3rd kind II(phi, n, k) |
real betai (expr_real1, expr_real2, expr_real3) |
Incomplete Beta function, Ix(a, b) |
real legp (expr_real1, expr_real2, expr_real3) |
Legendre Polynomial |
real fdp (expr_real1, expr_real2, expr_real3) |
F-Distribution Probability |
real cbp (expr_real1, expr_real2, expr_real3) |
Cumulative Binomial Probability Distribution |
real rf (expr_real1, expr_real2, expr_real3) |
Carlson's elliptic integral of the first kind Rf(x, y, z) |
real rd (expr_real1, expr_real2, expr_real3) |
Carlson's elliptic integral of the second kind Rd(x, y, z) |
real rj (expr_real1, expr_real2, expr_real3) |
Carlson's elliptic integral of the third kind Rj(x, y, z) |
real normv (expr_vctr ) |
Norm of a vector |
real absv (expr_vctr) |
Norm of a vector |
real xcom (expr_vctr ) |
X-component of a vector |
real ycom (expr_vctr ) |
Y-component of a vector |
real zcom (expr_vctr) |
Z-component of a vector |
real rcom (expr_cplx) |
real part of a complex number |
real icom (expr_cplx) |
imaginary part of a complex number |
real argc (expr_cplx) |
argument of a complex number |
real absc (expr_cplx) |
Absolute value of a complex number |
real normc (expr_cplx) |
Norm of a complex number |
complex sqrtc (expr_cplx) |
Square root of a complex number |
complex expc (expr_cplx) |
Exponential of a complex number |
complex lnc (expr_cplx) |
Natural log of a complex number |
complex logc (expr_cplx) |
Log of a complex number |
complex cosc (expr_cplx) |
Cosine of a complex number |
complex sinc (expr_cplx) |
Sine of a complex number |
complex tanc (expr_cplx) |
Tangent of a complex number |
complex coshc (expr_cplx) |
Hyperbolic cosine of a complex number |
complex sinhc (expr_cplx) |
Hyperbolic sine of a complex number |
complex tanhc (expr_cplx) |
Hyperbolic tangent of a complex number |
complex powc (expr_cplx1, expr_cplx2) |
Power of a complex number |
complex polarc (expr_real1, expr_real2) |
Set a complex number with radius and argument |
complex hypgeo (expr_cplx1, expr_cplx2, expr_cplx3, expr_cplx4) |
Hypergeometric function, by direct integration |
complex hypsr (expr_cplx1, expr_cplx2, expr_cplx3, expr_cplx4) |
Hypergeometric function, iterating to machine accuracy |
complex hypsrd (expr_cplx1, expr_cplx2, expr_cplx3, expr_cplx4) |
Hypergeometric function, derivative of hypsr |
vector r2cv (expr_real1, expr_real2, expr_real3 ) |
Rectangular to Cylindrical |
vector r2sv (expr_real1, expr_real2, expr_real3 ) |
Rectangular to Spherical |
vector c2rv (expr_real1, expr_real2, expr_real3 ) |
Cylindrical to Rectangular |
vector s2rv (expr_real1, expr_real2, expr_real3 ) |
Spherical to Rectangular |
vector r2cvv (expr_vctr) |
Rectangular to Cylindrical |
vector r2svv (expr_vctr) |
Rectangular to Spherical |
vector c2rvv (expr_vctr) |
Cylindrical to Rectangular |
vector s2rvv (expr_vctr) |
Spherical to Rectangular |
vector unitv (expr_vctr) |
Returns unit vector |
Where expr_strn is any valid string expression, expr_intg, expr_intg1, and expr_intg2 are any valid integer expressions, expr_real, expr_real1, and expr_real2 are any valid real number expressions, expr_cplx, expr_cplx1, and expr_cplx2 are any valid complex number expressions, expr_vctr is any valid vector expression.