Series and residues
taylor_series#
Explicit context
func taylorSeries(
target: UniffiExpression,
variable: String,
expansionPoint: UniffiExpression,
truncationOrder: UInt64,
) -> UniffiExpressionCalling forms and variants
Expression method: UniffiExpression.taylorSeries
func taylorSeries(
variable: String,
expansionPoint: UniffiExpression,
truncationOrder: UInt64,
) -> UniffiExpressionVariant using local assumptions — UniffiAssumptionScope method: UniffiAssumptionScope.taylorSeries
func taylorSeries(
target: UniffiExpression,
variable: String,
expansionPoint: UniffiExpression,
truncationOrder: UInt64,
) -> UniffiExpressionTruncated Taylor expansion about expansion_point, keeping terms of degree
strictly less than order (the remainder is
. Returns the truncated polynomial, not a series object;
order = 0 returns zero. Coefficients are computed exactly by repeated
symbolic differentiation.
maclaurin_series#
Explicit context
func maclaurinSeries(
inputExpression: UniffiExpression,
variable: String,
truncationOrder: UInt64,
) -> UniffiExpressionCalling forms
Expression method: UniffiExpression.maclaurinSeries
func maclaurinSeries(
variable: String,
truncationOrder: UInt64,
) -> UniffiExpressiontaylor_series specialised to expansion point 0.
laurent_series#
Explicit context
func laurentSeries(
target: UniffiExpression,
variable: String,
center: UniffiExpression,
order: UInt64,
) -> UniffiExpressionCalling forms
Expression method: UniffiExpression.laurentSeries
func laurentSeries(
variable: String,
center: UniffiExpression,
order: UInt64,
) -> UniffiExpressionTruncated Laurent expansion at center: every term
with , 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#
Explicit context
func residue(
inputExpression: UniffiExpression,
variable: String,
center: UniffiExpression,
) -> UniffiExpressionCalling forms
Expression method: UniffiExpression.residue
func residue(
variable: String,
center: UniffiExpression,
) -> UniffiExpressionCoefficient of in the Laurent expansion at
center. Analytic/removable points give 0; simple poles use the limit of
; 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#
Explicit context
func poleOrder(
inputExpression: UniffiExpression,
variable: String,
center: UniffiExpression,
) -> Int64?Calling forms
Expression method: UniffiExpression.poleOrder
func poleOrder(variable: String, center: UniffiExpression) -> Int64?Order of the singularity at center: 0 for analytic/removable points,
for a pole of order . Returns None (undefined in JS) when no
order 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.