finesse.symbols.Symbol.lambdify

Symbol.lambdify(*args, expand_symbols=False, ignore_unused_symbols=False)[source]

Converts this symbolic expression into a function that can be called.

Parameters
argsSymbols

Symbols to use to make up the arguments of the generated function. If none are provided then the current values of ParameterRef`s are used and `Variables are left as they are.

expand_symbolsbool, optional

If True, the expression will first have any dependent variables expanded. See .expand_symbols.