Skip to content

Commit ea3d67f

Browse files
committed
revert using sympy.sign
1 parent 7de2067 commit ea3d67f

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

mathics/builtin/makeboxes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def eval_general(self, expr, f, evaluation):
400400
result.append(to_boxes(String(right), evaluation))
401401
return RowBox(*result)
402402

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

mathics/eval/arithmetic.py

-7
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,6 @@ def eval_Sign(expr: BaseElement) -> Optional[BaseElement]:
256256
"""
257257
if expr is a number, return its sign.
258258
"""
259-
sympy_expr = expr.to_sympy()
260-
if sympy_expr is not None:
261-
print(" sympy_expr", sympy_expr)
262-
result = from_sympy(sympy.sign(sympy_expr))
263-
if result is not None:
264-
return result
265-
return None
266259

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

0 commit comments

Comments
 (0)