FunctionDefinition
Symbolica documentation for getting started, symbolic expressions, numerical evaluation, pattern matching, and APIs in Python and Rust.
FunctionDefinition
FunctionDefinition()A function definition and its evaluator registration settings.
Methods
| Name | Description |
|---|---|
__new__ |
Define a function for an evaluator |
__new__
FunctionDefinition.__new__(
function: Expression,
arguments: Sequence[Expression],
body: Expression,
inlining: Literal['always', 'never', 'auto'] = 'auto',
) -> FunctionDefinitionDefine a function for an evaluator. The function may either be a symbol (e.g. f) or a function call, where each argument is considered a tag. For example, function=f(1) would treat the 1 as a tag that is not passed to the function body.