evaluate

pypagate.evaluate(form: Formula | Term) Any

Given a Term or Formula get the current value it contains. For terms this is the same as .unwrap() method, but for for Formula, the entire expression is recursively evaluated.

Parameters:

form (class: Formula | Term) – A formula (or term) to extract the current value of.

Returns:

The current value of the Formula or Term.