AiryBi¶
Status: Stable
documented, exercised by the test suite and/or worked examples, with no known limitations recorded.
Description¶
AiryBi[z]
gives the Airy function Bi(z), the solution of y'' = z y that grows exponentially as z -> +Infinity.
AiryBi[0] = 1/(3^(1/6) Gamma[2/3]), AiryBi[Infinity] = Infinity,
AiryBi[-Infinity] = 0. An entire function of z. Real and complex inputs
D[AiryBi[z], z] = AiryBiPrime[z]. Listable.
Notes
evaluate numerically at machine or arbitrary (MPFR) precision;Examples (6)¶
Every input below was run against the current Mathilda build and its output recorded.
Basic examples (2)¶
Applications (4)¶
In[3]:= AiryBi[0]
Out[3]= 1/(3^(1/6) Gamma[2/3])
In[4]:= N[AiryBi[0], 40]
Out[4]= 0.6149266274460007351509223690936135535947
In[5]:= D[AiryBi[z], z]
Out[5]= AiryBiPrime[z]
In[6]:= N[AiryBi[2.0 + 1.0 I], 20]
Out[6]= 0.778230383757041677129 + 2.50509630006410244363*I
Algorithm¶
Mathilda -- the Airy function Bi.
AiryBi[z] Airy function Bi(z), the solution of y'' = z y that grows
exponentially as z -> +Infinity along the real axis. Bi is an
*entire* function of z (no branch cuts), the companion of Ai.
Evaluation is layered so each kind of argument takes the most accurate and cheapest route:
exact special values -> AiryBi[0] = 1/(3^(1/6) Gamma[2/3]),
AiryBi[+Infinity] = Infinity, AiryBi[-Infinity] = 0
machine real -> unified complex-MPFR core at 53 bits, real part
arbitrary real -> unified complex-MPFR core at mpfr_get_prec bits
complex (any precision) -> unified complex-MPFR core, Complex[..] result
everything else -> stays symbolic (return NULL)
The unified core airy_bi_core evaluates Bi(z) and Bi'(z) together in a file-local complex-MPFR toolkit (acx, pairs of mpfr_t -- no MPC library is available; this mirrors the acx/ecx/pcx/gcx toolkits in airyai.c/ erf.c/polylog.c/gamma.c). It routes between three algorithms on r = |z|, theta = arg z, and the requested output precision P:
- Maclaurin series (small/moderate |z|, accurate everywhere). From
Bi'' = z Bi the Taylor coefficients satisfy b_0 = Bi(0), b_1 = Bi'(0),
b_2 = 0 and b_n = b_{n-3} / (n (n-1)) for n >= 3 -- identical recurrence
to Ai, different seed constants. The partial sums reach magnitude
~exp((2/3) r^{3/2}) before cancelling for complex / negative arguments,
so the core adds (2/3) r^{3/2} / ln2 guard bits to absorb that exactly.
- Dominant asymptotic series (large |z|, central sector), DLMF 9.7.7/9.7.8.
With zeta = (2/3) z^{3/2}
Bi(z) ~ exp(zeta)/(sqrt(pi) z^{1/4}) Sum u_k / zeta^k,
Bi'(z) ~ z^{1/4} exp(zeta)/sqrt(pi) Sum v_k / zeta^k,
summed to the optimal (smallest-term) truncation. The u_k, v_k are the
SAME coefficients as Ai's asymptotic series, but with no (-1)^k sign and
prefactor 1/sqrt(pi) (not 1/(2 sqrt(pi))). The single dominant series is
accurate only where the neglected recessive companion ~exp(-2 Re zeta)
is below 2^-P, i.e. Re zeta = (2/3) r^{3/2} cos(3 theta/2) > (P ln2)/2.
Bi's anti-Stokes line is |arg z| = pi/3, so this keeps the whole positive
half-plane (including the exponentially large positive axis) at full
precision.
- Connection to Ai (large |z|, otherwise -- near and left of |arg z| = pi/3,
covering the oscillatory negative real axis). DLMF 9.2.10:
Bi(z) = e^{ i pi/6} Ai(z e^{ 2 pi i/3}) + e^{-i pi/6} Ai(z e^{-2 pi i/3}),
Bi'(z) = e^{i5pi/6} Ai'(z e^{ 2 pi i/3}) + e^{-i5pi/6} Ai'(z e^{-2 pi i/3}).
The two rotated points have |arg| <= pi and |w| = |z| (large), so they are
evaluated by a file-local Ai asymptotic kernel (direct series + Ai's own
2 pi/3 connection wrapper, DLMF 9.2.12). The Bi oscillation on the
negative axis emerges naturally from the two rotated Ai evaluations.
D[AiryBi[z], z] = AiryBiPrime[z] (see calculus/deriv.c); the Maclaurin series at 0 is produced by the generic Taylor-via-D path once AiryBi[0] / AiryBiPrime[0] have closed-form values.
AiryBiPrime[z] = Bi'(z) is a full numeric evaluator in its own right: because
same Maclaurin / asymptotic / connection machinery and simply selects the derivative component. Its exact values are AiryBiPrime[0] = 3^(1/6)/Gamma[1/3] and AiryBiPrime[+Infinity] = Infinity (Bi' is the dominant, growing solution); at -Infinity Bi' has no limit (oscillation with growing ~|z|^(1/4) amplitude) and is left unevaluated.
Attributes (both heads): Listable, NumericFunction, Protected.
Implementation notes¶
Attributes: Listable, NumericFunction, Protected.
References¶
See also: AiryAi, N, AiryBiPrime
- Source:
src/info.c - Specification:
docs/spec/builtins/special-functions.md - Tests:
tests/test_airybi.c - Tests:
tests/test_compile.c - Tests:
tests/test_numeric_stress.c
Notes & additional examples¶
Notes¶
AiryBi[z] is the dominant solution of the Airy equation y'' == z y, growing
exponentially as z -> +Infinity while AiryBi[-Infinity] == 0. Its exact
value at the origin is 1/(3^(1/6) Gamma[2/3]), and D[AiryBi[z], z] returns
AiryBiPrime[z]. Complex arguments are evaluated to the requested MPFR
precision; AiryBi is Listable.