finesse.symbols.evaluate

finesse.symbols.evaluate(x)[source]

Evaluates a symbol or N-dimensional array of symbols.

Parameters
xSymbol or array-like

A symbolic expression or an array of symbolic expressions.

Returns
outfloat, complex, numpy.ndarray

A single value for the evaluated expression if x is not array-like, otherwise an array of the evaluated expressions.