Special functions
Special functions retain their symbolic form when a closed expression is not available.
Gamma family#
The first-tier gamma special functions. Symbolic special values, the non-positive-integer poles, the recurrence/reflection identities, and arbitrary-precision numeric evaluation (real and complex) all apply.
gamma#
api::Session method
pub fn gamma(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>Calling forms
api::Expression method: api::Expression::gamma
pub fn gamma(&self) -> Result<Expression, ApiError>The gamma function , the analytic continuation of (x-1)!.
log_gamma#
api::Session method
pub fn log_gamma(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>Calling forms
api::Expression method: api::Expression::log_gamma
pub fn log_gamma(&self) -> Result<Expression, ApiError>The principal-branch log-gamma function (not log(gamma(x)) off the real axis).
digamma#
api::Session method
pub fn digamma(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>Calling forms
api::Expression method: api::Expression::digamma
pub fn digamma(&self) -> Result<Expression, ApiError>The digamma function .
polygamma#
api::Session method
pub fn polygamma(
&self,
order: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The polygamma function , the order-th derivative of digamma;
polygamma(0, x) reduces to digamma(x).
beta#
api::Session method
pub fn beta(
&self,
left: &Expression,
right: &Expression,
) -> Result<Expression, ApiError>The beta function .
zeta#
api::Session method
pub fn zeta(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>The Riemann zeta function . Even positive integers fold to
the closed forms (zeta(2) = pi^2/6, zeta(4) = pi^4/90, …), zeta(0) = -1/2,
negative integers to their rational functional values (zeta(-1) = -1/12,
zeta(-2n) = 0); zeta(1) is the simple pole (undefined). Odd positive
integers (zeta(3), …) stay the symbolic head; every value evaluates to
arbitrary precision over and .
hurwitz_zeta#
api::Session method
pub fn hurwitz_zeta(
&self,
s: &Expression,
a: &Expression,
) -> Result<Expression, ApiError>The Hurwitz zeta function , the numeric primitive of
the family. hurwitz_zeta(s, 1) folds to zeta(s); hurwitz_zeta(s, 1/2) to
; a positive integer second argument reduces to zeta(s) minus
the finite head; a non-positive integer first argument gives a Bernoulli
polynomial in a.
polylogarithm#
api::Session method
pub fn polylogarithm(
&self,
order: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The principal-branch polylogarithm . The defining-series values
polylogarithm(s, 0) = 0, polylogarithm(s, 1) = zeta(s) for integer
s > 1, and polylogarithm(1, z) = -log(1-z) reduce exactly.
polylogarithm(2, 1/2) uses the branch-safe real dilogarithm reflection
identity and reduces to pi^2/12 - log(2)^2/2. At -1 the alternating
value polylogarithm(s, -1) = (2^(1-s) - 1) zeta(s) reduces exactly for integer
s > 1, so polylogarithm(2, -1) = -pi^2/12.
Numeric evaluation uses defining and near-one series in their certified regions,
the series in on the annulus about the unit circle that the other
routes do not reach,
Hurwitz-zeta continuation for general exterior orders, and a bounded Bernoulli
inversion formula for positive integer orders. Regions outside those certified
routes decline numerically rather than returning a low-confidence value.
lerch_phi#
api::Session method
pub fn lerch_phi(
&self,
argument: &Expression,
order: &Expression,
shift: &Expression,
) -> Result<Expression, ApiError>The principal Lerch transcendent , whose canonical argument order is
(argument, order, shift). Numeric evaluation uses the defining and near-one
continuation kernels where their hypotheses hold. Exact nonpositive integer shifts
are normalized through the finite-prefix recurrence before those kernels are selected;
other unsupported continuation regions decline numerically.
Error function and Fresnel integrals#
These are the entire, odd functions obtained by integrating a Gaussian kernel from the origin.
Each one vanishes at zero, reflects a negated argument out as an overall sign, and evaluates to
arbitrary precision over and through its hypergeometric representation.
They are the primitives indefinite integration closes onto when no elementary antiderivative
exists: exp(a*x^2 + b*x + c) integrates to error_function for a proved negative a and to
imaginary_error_function for a proved positive a, and sin or cos of a quadratic with a
leading coefficient of proved sign integrates to the Fresnel integrals. A leading coefficient
whose sign is not proved declines.
error_function#
api::Session method
pub fn error_function(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>The error function .
error_function(0) = 0 and the values at are .
error_function_complementary#
api::Session method
pub fn error_function_complementary(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>The complementary error function .
imaginary_error_function#
api::Session method
pub fn imaginary_error_function(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>The imaginary error function , with derivative . It is real on the real line and grows without bound towards .
fresnel_sine_integral#
api::Session method
pub fn fresnel_sine_integral(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>The Fresnel sine integral in the normalization of DLMF 7.2(iv), so and .
fresnel_cosine_integral#
api::Session method
pub fn fresnel_cosine_integral(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>The Fresnel cosine integral , with and .
Exponential, sine, cosine, and logarithmic integrals#
These are the special functions indefinite integration closes onto for exp(x)/x, sin(x)/x,
cos(x)/x, and 1/log(x). They are symbolic heads with exact derivatives; numeric evaluation of
them is not implemented and declines rather than returning a value.
exponential_integral#
api::Session method
pub fn exponential_integral(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>The exponential integral , with .
sine_integral#
api::Session method
pub fn sine_integral(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>The sine integral . sine_integral(0) = 0 and
sine_integral(infinity) = pi/2.
cosine_integral#
api::Session method
pub fn cosine_integral(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>The cosine integral , with .
logarithmic_integral#
api::Session method
pub fn logarithmic_integral(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>The logarithmic integral , with .
Generalized hypergeometric family#
Symi implements the ordinary , not the regularized (Olver-normalized) form.
Both parameter groups are ordered sequences: order and repetition are significant, because
p and q are the group lengths and a repeated parameter changes the function. A Python set
or frozenset is rejected; pass a list or tuple. An empty group is valid and is how 0F0 and
0F1 are written.
A call terminates into an exact polynomial when an upper parameter is a non-positive integer.
The lower parameters must avoid the non-positive integers, because those make a Pochhammer
denominator vanish; when a lower parameter is a non-positive integer but the series terminates
strictly before that denominator is reached, the polynomial is still well defined and is
returned. An uncancelled denominator singularity gives undefined.
Numeric evaluation sums the defining series where DLMF 16.2 guarantees convergence: everywhere for , and strictly inside the unit disk with a margin for . Beyond that disk the Gauss function is continued through three principal-branch transformations — Pfaff's (DLMF 15.8.1), the expansion in (DLMF 15.8.4), and the expansion in (DLMF 15.8.2) — and the confluent function uses Kummer's transformation (DLMF 13.2.39) for a negative real part, where the direct terms alternate and lose digits to cancellation. The route is chosen deterministically from the parameters and the argument.
Evaluation declines rather than returning a value whenever:
- the nonterminating series is divergent — it is not assigned a value by a hidden summability convention;
- an argument lies on, or indistinguishably near, the principal cut from to , where the function has two different boundary values;
- a continuation's parameter combination is at or near an integer, the resonance at which the two solutions coincide and the true expansion acquires logarithmic terms;
- no implemented route covers the region — a general with outside its disk, for instance, has no continuation in this release.
A returned value is accepted only when two evaluations at different working precisions agree to the precision that was requested, so a result hollowed out by cancellation declines instead of being reported. Exact simplification never falls back to a numeric result.
error_function and error_function_complementary are evaluated through their DLMF 7.11.1
confluent representation, which gives them the same arbitrary-precision complex behaviour.
Exact reductions that run automatically are limited to the globally safe ones — to the exponential, a zero argument to one, safe parameter cancellation, terminating expansion within a size budget — plus Gauss's summation at (DLMF 15.4.20) when is proved; with the condition unproved the call stays symbolic, because the series there genuinely diverges when it fails.
hypergeometric_pfq#
api::Session method
pub fn hypergeometric_pfq<UpperType, LowerType>(
&self,
upper_parameters: UpperType,
lower_parameters: LowerType,
argument: &Expression,
) -> Result<Expression, ApiError>
where
UpperType: IntoIterator<Item = Expression>,
LowerType: IntoIterator<Item = Expression>,The generalized hypergeometric function . The two parameter groups are ordered sequences: order and repetition are significant, so a set or frozenset is rejected.
hypergeometric_0f1#
api::Session method
pub fn hypergeometric_0f1(
&self,
lower_parameter: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The confluent limit , lowered to hypergeometric_pfq.
hypergeometric_1f1#
api::Session method
pub fn hypergeometric_1f1(
&self,
upper_parameter: &Expression,
lower_parameter: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>Kummer's confluent hypergeometric function .
hypergeometric_2f1#
api::Session method
pub fn hypergeometric_2f1(
&self,
first_upper_parameter: &Expression,
second_upper_parameter: &Expression,
lower_parameter: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The Gauss hypergeometric function .
Meijer G-function#
meijer_g#
api::Session method
pub fn meijer_g<FirstType, SecondType, ThirdType, FourthType>(
&self,
upper_numerator_parameters: FirstType,
upper_denominator_parameters: SecondType,
lower_numerator_parameters: ThirdType,
lower_denominator_parameters: FourthType,
argument: &Expression,
) -> Result<Expression, ApiError>
where
FirstType: IntoIterator<Item = Expression>,
SecondType: IntoIterator<Item = Expression>,
ThirdType: IntoIterator<Item = Expression>,
FourthType: IntoIterator<Item = Expression>,The Meijer G-function from its four ordered parameter groups. The orders m,
n, p, and q are read from the group lengths and are never supplied separately.
The four groups follow the DLMF 16.17 partition: the first n upper parameters, the remaining
p - n upper parameters, the first m lower parameters, and the remaining q - m lower
parameters. Any group may be empty.
A configuration in which some upper-numerator parameter minus some lower-numerator parameter is a
positive integer has colliding pole families and no separating contour, and gives undefined.
General Mellin–Barnes contour construction and evaluation are outside this release: a
syntactically valid call whose contour conditions are unsettled stays a symbolic head, and numeric
evaluation of it declines.
The one route into and out of the G head is the residue expansion of DLMF 16.17.2, which writes the call as a finite sum of terms. It applies when , or with the argument strictly inside the unit disk, and when no two of the first lower parameters differ by an integer — at an integer difference the poles merge and the true expansion carries logarithms, so the reduction declines instead. Numeric evaluation of a Meijer-G call runs through exactly that reduction and declines when it does not apply.
The reduction and its inverse are directed rewrites, requested through the special-function basis rather than applied automatically:
generalized_hypergeometricreduces an eligiblemeijer_gcall to its finite sum, and rewriteserror_functioninto its DLMF 7.11.1 confluent form;meijer_grewrites a call into the single G function of DLMF 16.18.1 with its gamma prefactor, declining when a parameter sits on a pole of its own gamma factor.
Bessel, Hankel, spherical-Bessel, and Airy families#
The cylinder functions use their principal branches. bessel_j and bessel_i become entire in
their argument at proved integer order; bessel_y, bessel_k, and the Hankel functions retain
their principal cut. Spherical functions require a nonnegative integer order and do not inherit a
spurious cut from their half-integer cylinder representation. Airy functions are entire.
bessel_j#
api::Session method
pub fn bessel_j(
&self,
order: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The principal Bessel function .
bessel_y#
api::Session method
pub fn bessel_y(
&self,
order: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The principal Bessel function .
bessel_i#
api::Session method
pub fn bessel_i(
&self,
order: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The principal modified Bessel function .
bessel_k#
api::Session method
pub fn bessel_k(
&self,
order: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The principal modified Bessel function .
hankel_first_kind#
api::Session method
pub fn hankel_first_kind(
&self,
order: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The principal Hankel function .
hankel_second_kind#
api::Session method
pub fn hankel_second_kind(
&self,
order: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The principal Hankel function .
spherical_bessel_j#
api::Session method
pub fn spherical_bessel_j(
&self,
order: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The spherical Bessel function , for .
spherical_bessel_y#
api::Session method
pub fn spherical_bessel_y(
&self,
order: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The spherical Bessel function , for .
spherical_hankel_first_kind#
api::Session method
pub fn spherical_hankel_first_kind(
&self,
order: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The spherical Hankel function , for .
spherical_hankel_second_kind#
api::Session method
pub fn spherical_hankel_second_kind(
&self,
order: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The spherical Hankel function , for .
airy_ai#
api::Session method
pub fn airy_ai(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>The Airy function .
airy_bi#
api::Session method
pub fn airy_bi(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>The Airy function .
airy_ai_prime#
api::Session method
pub fn airy_ai_prime(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>The derivative .
airy_bi_prime#
api::Session method
pub fn airy_bi_prime(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>The derivative .
Classical orthogonal polynomials#
Every family in this group is the classical polynomial sequence at a non-negative integer degree,
following DLMF Chapter 18. A degree proved not to be a non-negative integer gives undefined, and a
degree that cannot be classified leaves the call symbolic. Once the degree is admissible the value
is a finite polynomial and therefore entire in its argument, whatever the family parameters are: the
orthogonality hypotheses , , and are conditions of the
weighted-inner-product theorems, not conditions for the polynomial to have a value. hermite_polynomial
is the physicists' .
A literal degree up to 1024 at an exact rational argument, with exact rational family parameters,
evaluates to its exact rational value: chebyshev_polynomial_first_kind(10, 1/2) is -1/2. At any
other argument the named head stays as it is until expand_orthogonal_polynomial is asked for.
jacobi_polynomial#
api::Session method
pub fn jacobi_polynomial(
&self,
degree: &Expression,
first_parameter: &Expression,
second_parameter: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The Jacobi polynomial .
gegenbauer_polynomial#
api::Session method
pub fn gegenbauer_polynomial(
&self,
degree: &Expression,
parameter: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The Gegenbauer polynomial .
chebyshev_polynomial_first_kind#
api::Session method
pub fn chebyshev_polynomial_first_kind(
&self,
degree: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The Chebyshev polynomial of the first kind .
chebyshev_polynomial_second_kind#
api::Session method
pub fn chebyshev_polynomial_second_kind(
&self,
degree: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The Chebyshev polynomial of the second kind .
legendre_polynomial#
api::Session method
pub fn legendre_polynomial(
&self,
degree: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The Legendre polynomial .
generalized_laguerre_polynomial#
api::Session method
pub fn generalized_laguerre_polynomial(
&self,
degree: &Expression,
parameter: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The generalized Laguerre polynomial .
hermite_polynomial#
api::Session method
pub fn hermite_polynomial(
&self,
degree: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The physicists' Hermite polynomial .
ultraspherical_polynomial#
api::Session method
pub fn ultraspherical_polynomial(
&self,
degree: &Expression,
parameter: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The ultraspherical polynomial, lowered to its canonical Gegenbauer head.
laguerre_polynomial#
api::Session method
pub fn laguerre_polynomial(
&self,
degree: &Expression,
argument: &Expression,
) -> Result<Expression, ApiError>The Laguerre polynomial, lowered to its canonical generalized Laguerre head.
Example#
Special functions reduce at recognised arguments.
use symi::api::prelude::*;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let session = Session::new();
println!("{}", session.gamma(&session.rational(1, 2)?)?);
println!("{}", session.zeta(&session.integer(2))?);
println!("{}", session.beta(&session.integer(2), &session.integer(3))?);
println!("{}", session.digamma(&session.integer(1))?);
Ok(())
}convert_polynomial_basis#
api::Session method
pub fn convert_polynomial_basis<'a, VariableType>(
&self,
target: &Expression,
variable: VariableType,
basis: &OrthogonalPolynomialBasis,
) -> Result<Expression, ApiError>
where
VariableType: Into<VariableLike<'a>>,Calling forms
api::Expression method: api::Expression::convert_polynomial_basis
pub fn convert_polynomial_basis<'a, VariableType>(
&self,
variable: VariableType,
basis: &OrthogonalPolynomialBasis,
) -> Result<Expression, ApiError>
where
VariableType: Into<VariableLike<'a>>,Express a finite univariate polynomial in a classical orthogonal basis — as a
combination of Chebyshev, Legendre, Hermite, Laguerre, Gegenbauer, or Jacobi
polynomials rather than powers of the variable. The conversion is exact; a
target that is not a finite univariate polynomial in variable declines.
orthogonal_polynomial_coefficient#
api::Session method
pub fn orthogonal_polynomial_coefficient<'a, VariableType>(
&self,
target: &Expression,
variable: VariableType,
basis: &OrthogonalPolynomialBasis,
degree: usize,
) -> Result<Expression, ApiError>
where
VariableType: Into<VariableLike<'a>>,Calling forms
api::Expression method: api::Expression::orthogonal_polynomial_coefficient
pub fn orthogonal_polynomial_coefficient<'a, VariableType>(
&self,
variable: VariableType,
basis: &OrthogonalPolynomialBasis,
degree: usize,
) -> Result<Expression, ApiError>
where
VariableType: Into<VariableLike<'a>>,One exact coefficient of that expansion, without forming the whole of it: the coefficient of the basis polynomial of the given degree.
expand_orthogonal_polynomial#
api::Session method
pub fn expand_orthogonal_polynomial(
&self,
target: &Expression,
) -> Result<Expression, ApiError>Calling forms
api::Expression method: api::Expression::expand_orthogonal_polynomial
pub fn expand_orthogonal_polynomial(
&self,
) -> Result<Expression, ApiError>The inverse direction: expand every classical orthogonal polynomial call in the expression into an ordinary polynomial in its variable.
Additional API#
carlson_rc#
api::Session method
pub fn carlson_rc(
&self,
first_argument: &Expression,
second_argument: &Expression,
) -> Result<Expression, ApiError>Carlson's degenerate symmetric elliptic integral .
carlson_rd#
api::Session method
pub fn carlson_rd(
&self,
first_argument: &Expression,
second_argument: &Expression,
third_argument: &Expression,
) -> Result<Expression, ApiError>Carlson's symmetric elliptic integral .
carlson_rf#
api::Session method
pub fn carlson_rf(
&self,
first_argument: &Expression,
second_argument: &Expression,
third_argument: &Expression,
) -> Result<Expression, ApiError>Carlson's symmetric elliptic integral .
carlson_rj#
api::Session method
pub fn carlson_rj(
&self,
first_argument: &Expression,
second_argument: &Expression,
third_argument: &Expression,
fourth_argument: &Expression,
) -> Result<Expression, ApiError>Carlson's symmetric elliptic integral .
dirac_delta#
api::Session method
pub fn dirac_delta(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>Provides the dirac_delta operation on this native type.
elliptic_e#
api::Session method
pub fn elliptic_e(
&self,
parameter: &Expression,
) -> Result<Expression, ApiError>The complete second-kind elliptic integral , with parameter .
elliptic_e_incomplete#
api::Session method
pub fn elliptic_e_incomplete(
&self,
amplitude: &Expression,
parameter: &Expression,
) -> Result<Expression, ApiError>The incomplete second-kind elliptic integral , with parameter .
elliptic_f#
api::Session method
pub fn elliptic_f(
&self,
amplitude: &Expression,
parameter: &Expression,
) -> Result<Expression, ApiError>The incomplete first-kind elliptic integral , with parameter .
elliptic_k#
api::Session method
pub fn elliptic_k(
&self,
parameter: &Expression,
) -> Result<Expression, ApiError>The complete first-kind elliptic integral , with parameter .
elliptic_pi#
api::Session method
pub fn elliptic_pi(
&self,
characteristic: &Expression,
parameter: &Expression,
) -> Result<Expression, ApiError>The complete third-kind elliptic integral , with parameter .
elliptic_pi_incomplete#
api::Session method
pub fn elliptic_pi_incomplete(
&self,
characteristic: &Expression,
amplitude: &Expression,
parameter: &Expression,
) -> Result<Expression, ApiError>The incomplete third-kind elliptic integral , with parameter .
heaviside_step#
api::Session method
pub fn heaviside_step(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>Provides the heaviside_step operation on this native type.
jacobi_amplitude#
api::Session method
pub fn jacobi_amplitude(
&self,
argument: &Expression,
parameter: &Expression,
) -> Result<Expression, ApiError>The pinned Jacobi amplitude , with parameter .
jacobi_cn#
api::Session method
pub fn jacobi_cn(
&self,
argument: &Expression,
parameter: &Expression,
) -> Result<Expression, ApiError>Jacobi's elliptic function , with parameter .
jacobi_dn#
api::Session method
pub fn jacobi_dn(
&self,
argument: &Expression,
parameter: &Expression,
) -> Result<Expression, ApiError>Jacobi's elliptic function , with parameter .
jacobi_sn#
api::Session method
pub fn jacobi_sn(
&self,
argument: &Expression,
parameter: &Expression,
) -> Result<Expression, ApiError>Jacobi's elliptic function , with parameter .
jacobi_theta_1#
api::Session method
pub fn jacobi_theta_1(
&self,
argument: &Expression,
half_period_ratio: &Expression,
) -> Result<Expression, ApiError>Jacobi's first theta function , with half-period ratio .
jacobi_theta_2#
api::Session method
pub fn jacobi_theta_2(
&self,
argument: &Expression,
half_period_ratio: &Expression,
) -> Result<Expression, ApiError>Jacobi's second theta function , with half-period ratio .
jacobi_theta_3#
api::Session method
pub fn jacobi_theta_3(
&self,
argument: &Expression,
half_period_ratio: &Expression,
) -> Result<Expression, ApiError>Jacobi's third theta function , with half-period ratio .
jacobi_theta_4#
api::Session method
pub fn jacobi_theta_4(
&self,
argument: &Expression,
half_period_ratio: &Expression,
) -> Result<Expression, ApiError>Jacobi's fourth theta function , with half-period ratio .
lambert_w#
api::Session method
pub fn lambert_w(
&self,
argument: &Expression,
) -> Result<Expression, ApiError>Provides the lambert_w operation on this native type.
OrthogonalPolynomialBasis#
api re_export
pub use options::OrthogonalPolynomialBasis;A requested classical orthogonal polynomial basis and its parameters.
OrthogonalPolynomialBasis.family#
api::options::OrthogonalPolynomialBasis field
pub family:The requested family.
OrthogonalPolynomialBasis.new#
api::options::OrthogonalPolynomialBasis method
pub fn new(
family: OrthogonalPolynomialFamily,
parameters: Vec<Expression>,
) -> SelfNames one basis and its parameters in canonical call order.
OrthogonalPolynomialBasis.parameters#
api::options::OrthogonalPolynomialBasis field
pub parameters:The family parameters, in canonical call order.
OrthogonalPolynomialBasis.resolve#
api::options::OrthogonalPolynomialBasis method
pub fn resolve(&self, session: &Session) -> Result<core_basis, ApiError>Resolves this requested basis against a session that owns its parameters.
OrthogonalPolynomialFamily#
api re_export
pub use options::OrthogonalPolynomialFamily;A classical orthogonal polynomial family named at the API boundary.
OrthogonalPolynomialFamily.ChebyshevFirstKind#
api::options::OrthogonalPolynomialFamily variant
ChebyshevFirstKind,The Chebyshev family of the first kind.
OrthogonalPolynomialFamily.ChebyshevSecondKind#
api::options::OrthogonalPolynomialFamily variant
ChebyshevSecondKind,The Chebyshev family of the second kind.
OrthogonalPolynomialFamily.Gegenbauer#
api::options::OrthogonalPolynomialFamily variant
Gegenbauer,The Gegenbauer family, carrying one parameter.
OrthogonalPolynomialFamily.GeneralizedLaguerre#
api::options::OrthogonalPolynomialFamily variant
GeneralizedLaguerre,The generalized Laguerre family, carrying one parameter.
OrthogonalPolynomialFamily.Hermite#
api::options::OrthogonalPolynomialFamily variant
Hermite,The physicists' Hermite family.
OrthogonalPolynomialFamily.Jacobi#
api::options::OrthogonalPolynomialFamily variant
Jacobi,The Jacobi family, carrying two parameters.
OrthogonalPolynomialFamily.Legendre#
api::options::OrthogonalPolynomialFamily variant
Legendre,The Legendre family.
OrthogonalPolynomialFamily.from_name#
api::options::OrthogonalPolynomialFamily method
pub fn from_name(name: &str) -> Result<Self, ApiError>Resolves the stable binding spelling of an orthogonal polynomial family.
OrthogonalPolynomialFamily.into_core#
api::options::OrthogonalPolynomialFamily method
pub fn into_core(self) -> core_familyConverts this binding-neutral value to the engine representation.
OrthogonalPolynomialFamily.name#
api::options::OrthogonalPolynomialFamily method
pub fn name(self) -> &'static strReturns the stable binding spelling of this orthogonal polynomial family.
OrthogonalPolynomialFamily.parameter_count#
api::options::OrthogonalPolynomialFamily method
pub fn parameter_count(self) -> usizeThe number of family parameters this family carries.