Ask Your Question

Revision history [back]

Functions returning unexpected results for symbolic expressions

The functions min and max are evaluated using Python builtin functions, and need to be replaced by min_symbolic and max_symbolic to handle symbolic expressions. Sage overrides other Python functions, for example ceil and floor, and presumably all Sage defined functions behave as expected with symbolic expressions as arguments. abs in particular is an explicit alias of abs_symbolic.

What other commonly used functions fall back on Python builtin functions and produce unexpected results when handling symbolic expressions?