Skip to content
Symi Docs
WASM / JavaScript

Signatures in the WASM / JavaScript view are TypeScript. Where the JavaScript facade wraps an operation its form is listed first; the other calling forms are the raw wasm-bindgen exports.

On this page

Series and residues

taylor_series#

Raw WebAssembly: Default context

taylorSeries(
    input_expression: Expression,
    variable: string,
    expansion_point: Expression,
    order: number,
): Expression
Calling forms and variants

Raw WebAssembly: Explicit context: Context.taylorSeries

taylorSeries(
    input_expression: Expression,
    variable: string,
    expansion_point: Expression,
    order: number,
): Expression

Raw WebAssembly: Expression method: Expression.taylorSeries

taylorSeries(
    variable: string,
    expansion_point: Expression,
    order: number,
): Expression

Variant using local assumptions — Raw WebAssembly: AssumptionScope method: AssumptionScope.taylorSeries

taylorSeries(
    input_expression: Expression,
    variable: string,
    expansion_point: Expression,
    truncation_order: number,
): Expression

Truncated Taylor expansion about expansion_point, keeping terms of degree strictly less than order (the remainder is O((x−a)order⁡)O((x-a)^{\operatorname{order}}). Returns the truncated polynomial, not a series object; order = 0 returns zero. Coefficients are computed exactly by repeated symbolic differentiation.

maclaurin_series#

Raw WebAssembly: Default context

maclaurinSeries(
    input_expression: Expression,
    variable: string,
    order: number,
): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.maclaurinSeries

maclaurinSeries(
    input_expression: Expression,
    variable: string,
    order: number,
): Expression

Raw WebAssembly: Expression method: Expression.maclaurinSeries

maclaurinSeries(variable: string, order: number): Expression

taylor_series specialised to expansion point 0.

laurent_series#

Raw WebAssembly: Default context

laurentSeries(
    input_expression: Expression,
    variable: string,
    center: Expression,
    order: number,
): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.laurentSeries

laurentSeries(
    input_expression: Expression,
    variable: string,
    center: Expression,
    order: number,
): Expression

Raw WebAssembly: Expression method: Expression.laurentSeries

laurentSeries(
    variable: string,
    center: Expression,
    order: number,
): Expression

Truncated Laurent expansion at center: every (variable⁡−center⁡)k(\operatorname{variable} - \operatorname{center})^k term with −m≤k<order⁡-m \le k < \operatorname{order}, where m is the pole order. Analytic points degrade to the Taylor expansion. At an essential singularity (where pole_order declines) the result is an unevaluated series_unevaluated(...) placeholder, because no finite truncation of the principal part is correct.

residue#

Raw WebAssembly: Default context

residue(
    input_expression: Expression,
    variable: string,
    center: Expression,
): Expression
Calling forms

Raw WebAssembly: Explicit context: Context.residue

residue(
    input_expression: Expression,
    variable: string,
    center: Expression,
): Expression

Raw WebAssembly: Expression method: Expression.residue

residue(variable: string, center: Expression): Expression

Coefficient of (variable⁡−center⁡)−1(\operatorname{variable} - \operatorname{center})^{-1} in the Laurent expansion at center. Analytic/removable points give 0; simple poles use the limit of (x−c)f(x - c) f; higher poles use the derivative formula. Essential singularities return an unevaluated residue_unevaluated(...) placeholder. Rational functions use exact polynomial valuations and formal series division, so explicit algebraic centers do not need to occur as structural factors.

pole_order#

Raw WebAssembly: Default context

poleOrder(
    input_expression: Expression,
    variable: string,
    center: Expression,
): bigint | undefined
Calling forms

Raw WebAssembly: Explicit context: Context.poleOrder

poleOrder(
    input_expression: Expression,
    variable: string,
    center: Expression,
): bigint | undefined

Raw WebAssembly: Expression method: Expression.poleOrder

poleOrder(variable: string, center: Expression): bigint | undefined

Order of the singularity at center: 0 for analytic/removable points, m≥1m \ge 1 for a pole of order mm. Returns None (undefined in JS) when no order ≤16\leq 16 can be certified — the essential-singularity / undecidable verdict. Notes: this is the one series entry returning a plain integer, mirroring the core classifier; it never returns an unevaluated form. For a rational function at an exact algebraic center, the order is obtained from the square-free multiplicities of its numerator and denominator.

Example#

This family is not part of the recommended JavaScript facade in this release. Call it through the generated symi.raw layer, whose entries are listed with their wasm-bindgen signatures above, and read Migration for the ownership rules that apply there.

Symi documentation · WASM / JavaScript