diff --git a/pysr/export_sympy.py b/pysr/export_sympy.py index 81142f481..e10609bde 100644 --- a/pysr/export_sympy.py +++ b/pysr/export_sympy.py @@ -47,6 +47,8 @@ "ceil": sympy.ceiling, "sign": sympy.sign, "gamma": sympy.gamma, + "max": lambda x, y: sympy.Piecewise((y, x < y), (x, True)), + "min": lambda x, y: sympy.Piecewise((x, x < y), (y, True)), }