Gamma, GammaNum | Euler's Gamma function |
Zeta, ZetaNum | Riemann's Zeta function |
Bernoulli, BernoulliArray | Bernoulli numbers and polynomials |
Euler | Euler numbers and polynomials |
LambertW, LambertWNum | Lambert's W function |
gamma | Euler's constant gamma |
GoldenRatio | the Golden Ratio |
Catalan | Catalan's Constant |
Gamma(x) GammaNum(number) |
number -- expression that can be evaluated to a number
Note that Euler's constant gamma<=>0.57722 is the lowercase gamma in Yacas.
In> Precision(30) Out> True; In> Gamma(1.3) Out> Gamma(1.3); In> N(%) Out> 0.897470696306277188493754954771; In> Gamma(1.5) Out> Sqrt(Pi)/2; In> GammaNum(1.5); Out> 0.88622692545275801364908374167; |
Zeta(x) ZetaNum(number) |
number -- expression that can be evaluated to a number
In> Precision(30) Out> True; In> Zeta(1) Out> Infinity; In> Zeta(1.3) Out> Zeta(1.3); In> N(%) Out> 3.93194921180954422697490751058798; In> Zeta(2) Out> Pi^2/6; In> ZetaNum(2); Out> 1.64493406684822643647241516664602; |
Bernoulli(index) BernoulliArray(index) Bernoulli(index, x) |
index -- expression that can be evaluated to an integer
An auxiliary function BernoulliArray(n) might be useful too: it returns an array (of type GenericArray) of Bernoulli numbers up to n. The array is 1-based, so that the n-th Bernoulli number is BernoulliArray(n)[n+1].
In> Bernoulli(20); Out> -174611/330; In> Bernoulli(4, x); Out> ((x-2)*x+1)*x^2-1/30; |
Euler(index) Euler(index,x) |
index -- expression that can be evaluated to an integer
In> Euler(6) Out> -61; In> Euler(5,x) Out> (x-1/2)^5+(-10*(x-1/2)^3)/4+(25*(x-1/2))/16; In> Simplify(%) Out> (2*x^5-5*x^4+5*x^2-1)/2; |
LambertW(x) LambertWNum(x) |
For real arguments x, W(x) is real if x>= -Exp(-1).
LambertWNum is an auxiliary function that computes the numerical value of the principal branch of Lambert's W function for real arguments x>= -Exp(-1) to current precision.
In> LambertW(0) Out> 0; In> N(LambertW(-0.24/Sqrt(3*Pi))) Out> -0.0851224014; |
N(gamma) gamma() |
The constant is available symbolically as gamma or numerically as a function gamma(). This is a "cached constant" which is recalculated only when precision is increased. The numerical value of the constant can also be obtained as N(gamma). The low-level numerical computations are performed by the routine GammaConstNum.
Note that Euler's Gamma function Gamma(x) is the capitalized Gamma in Yacas.
In> gamma+Pi Out> gamma+Pi; In> N(%) Out> 3.7188083184; In> [Precision(20);V(gamma());] CachedConstant: Info: constant gamma is being recalculated at precision 20 GammaConstNum: Info: used 56 iterations at working precision 24 Out> 0.57721566490153286061; |
N(GoldenRatio) GoldenRatio() |
The constant is available symbolically as GoldenRatio or numerically as a function GoldenRatio(). This is a "cached constant" which is recalculated only when precision is increased. The numerical value of the constant can also be obtained as N(GoldenRatio).
In> GoldenRatio - 1 Out> GoldenRatio-1; In> N(%) Out> 0.6180339887; In> N(1/GoldenRatio) Out> 0.6180339887; In> [Precision(20);V(GoldenRatio());] CachedConstant: Info: constant GoldenRatio is being recalculated at precision 20 Out> 1.6180339887498948482; |
N(Catalan) Catalan() |
The constant is available symbolically as Catalan or numerically as a function Catalan(). This is a "cached constant" which is recalculated only when precision is increased. The numerical value of the constant can also be obtained as N(Catalan). The low-level numerical computations are performed by the routine CatalanConstNum.
In> N(Catalan) Out> 0.9159655941; In> DirichletBeta(2) Out> Catalan; In> [Precision(20);V(Catalan());] CachedConstant: Info: constant Catalan is being recalculated at precision 20 Out> 0.91596559417721901505; |