Skip to content

EvaluatorConstantFunction

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

EvaluatorConstantFunction

class EvaluatorConstantFunction

A registered constant or fixed-argument function in an evaluator constant slot.

Returned by EvaluatorInstructions.constant_functions. Its properties are read-only; function names, tags, and arguments are Expression objects.

Attributes

Name Description
arguments The exact numerical arguments, empty for a registered constant such as pi.
function The registered function or constant symbol.
index The index of the corresponding slot in EvaluatorInstructions.constants.
tags The expression tags used to distinguish this function implementation.

arguments

EvaluatorConstantFunction.arguments: list[Expression]

The exact numerical arguments, empty for a registered constant such as pi.

function

EvaluatorConstantFunction.function: Expression

The registered function or constant symbol.

index

EvaluatorConstantFunction.index: int

The index of the corresponding slot in EvaluatorInstructions.constants.

tags

EvaluatorConstantFunction.tags: list[Expression]

The expression tags used to distinguish this function implementation.

Methods

Name Description
__repr__

__repr__

EvaluatorConstantFunction.__repr__() -> str