atom_to_canonical_string
gammaloop Function
atom_to_canonical_string(atom_str: str) -> strParse a Symbolica expression and return its canonical string form.
Parameters
atom_strstrSymbolica expression to parse and normalize.
Returns
str
The parsed expression in canonical string form.
Raises
ExceptionIf
atom_stris not a valid Symbolica expression.
Examples
Normalize a symbolic expression before comparing or storing it:
atom_to_canonical_string("x + x")View generated signature source: docs/api/python/gammaloop-python.pyi:2004