PreparedIntegral

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

PreparedIntegral

class PreparedIntegral

A lowered Atom input that can be integrated repeatedly without repeating Symbolica-to-ring and Hlog conversion.

Create instances with integration.prepare. The object is immutable; copy.copy and copy.deepcopy return independent Python handles that share its immutable backing storage.

Attributes

Name Description
indeterminate_count Number of exact Symbolica indeterminates in the prepared context.
indeterminates Symbolica indeterminates in the prepared exact polynomial context.
integration_variables Integration variables in their requested order.
options Independent copy of the options captured during preparation.
shuffle_term_count Number of shuffle entries in the prepared integrand.
variable_count Number of requested integration variables.

indeterminate_count

PreparedIntegral.indeterminate_count: builtins.int

Number of exact Symbolica indeterminates in the prepared context.

indeterminates

PreparedIntegral.indeterminates: builtins.list[Expression]

Symbolica indeterminates in the prepared exact polynomial context.

integration_variables

PreparedIntegral.integration_variables: builtins.list[Expression]

Integration variables in their requested order.

options

PreparedIntegral.options: IntegrationOptions

Independent copy of the options captured during preparation.

shuffle_term_count

PreparedIntegral.shuffle_term_count: builtins.int

Number of shuffle entries in the prepared integrand.

variable_count

PreparedIntegral.variable_count: builtins.int

Number of requested integration variables.

Methods

Name Description
__copy__
__deepcopy__
__len__ Return the number of prepared shuffle entries.
__repr__
integrate Integrate and return a native Symbolica expression.
integrate_detailed Integrate and retain metadata about the collected exact result.

__copy__

PreparedIntegral.__copy__() -> PreparedIntegral

__deepcopy__

PreparedIntegral.__deepcopy__(_memo: typing.Any) -> PreparedIntegral

__len__

PreparedIntegral.__len__() -> builtins.int

Return the number of prepared shuffle entries.

__repr__

PreparedIntegral.__repr__() -> builtins.str

integrate

PreparedIntegral.integrate(options: typing.Optional[IntegrationOptions] = None) -> Expression

Integrate and return a native Symbolica expression.

integrate_detailed

PreparedIntegral.integrate_detailed(options: typing.Optional[IntegrationOptions] = None) -> IntegrationResult

Integrate and retain metadata about the collected exact result.