CompactCoefficient

Symbolica documentation for getting started, symbolic expressions, numerical evaluation, pattern matching, and APIs in Python and Rust.

CompactCoefficient

class CompactCoefficient

A retained Symbolica alias root and definitions, without restoring a full expression.

Attributes

Name Description
alias_count Stored definitions for this coefficient; definitions may be shared with others.
aliases Alias/definition pairs in native Atom order
generation_mode Actual native sector route; a numerical-dual request can retain a symbolic fallback.
order Signed epsilon order of this possibly complex generated coefficient
root

alias_count

CompactCoefficient.alias_count: builtins.int

Stored definitions for this coefficient; definitions may be shared with others.

aliases

CompactCoefficient.aliases: builtins.list[tuple[Expression, Expression]]

Alias/definition pairs in native Atom order. Definitions may reference aliases. Read only for selected detail; this does not inline or expand any expression.

generation_mode

CompactCoefficient.generation_mode: builtins.str

Actual native sector route; a numerical-dual request can retain a symbolic fallback.

order

CompactCoefficient.order: builtins.int

Signed epsilon order of this possibly complex generated coefficient. Compiled kernels may split it into separate real/imaginary components.

root

CompactCoefficient.root: Expression

Methods

Name Description
_repr_html_
expression Explicitly materialize an actual coefficient through its native owner

_repr_html_

CompactCoefficient._repr_html_(slf: CompactCoefficient) -> builtins.str

expression

CompactCoefficient.expression() -> Expression

Explicitly materialize an actual coefficient through its native owner. Numerical-dual sectors cache full expressions on this explicit request; passive views retain only the compact recipe root and aliases.