Skip to content

Commit

Permalink
revert using sympy.sign
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera committed Jul 25, 2023
1 parent 7de2067 commit ea3d67f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion mathics/builtin/makeboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def eval_general(self, expr, f, evaluation):
result.append(to_boxes(String(right), evaluation))
return RowBox(*result)

def eval_outerprecedenceform(self, expr, precedence, form, evaluation):
def no_eval_outerprecedenceform(self, expr, precedence, form, evaluation):
"""MakeBoxes[PrecedenceForm[expr_, precedence_],
form:StandardForm|TraditionalForm|OutputForm|InputForm]"""

Expand Down
7 changes: 0 additions & 7 deletions mathics/eval/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,6 @@ def eval_Sign(expr: BaseElement) -> Optional[BaseElement]:
"""
if expr is a number, return its sign.
"""
sympy_expr = expr.to_sympy()
if sympy_expr is not None:
print(" sympy_expr", sympy_expr)
result = from_sympy(sympy.sign(sympy_expr))
if result is not None:
return result
return None

def eval_complex_sign(n: BaseElement) -> Optional[BaseElement]:
if isinstance(n, Complex):
Expand Down

0 comments on commit ea3d67f

Please sign in to comment.