Skip to content

Commit

Permalink
binary operator from JSON for Basic Arithmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Dec 30, 2024
1 parent 10f48d5 commit 5b5a5e3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions mathics/builtin/arithfns/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ class Divide(InfixOperator):
}

grouping = "Left"
operator = "/"

rules = {
"Divide[x_, y_]": "Times[x, Power[y, -1]]",
Expand Down Expand Up @@ -206,8 +205,6 @@ class Minus(PrefixOperator):
),
}

operator = "-"

rules = {
"Minus[x_]": "Times[-1, x]",
}
Expand Down Expand Up @@ -280,8 +277,6 @@ class Plus(InfixOperator, SympyFunction):
None: "0",
}

operator = "+"

summary_text = "add"

# FIXME Note this is deprecated in 1.11
Expand Down Expand Up @@ -431,8 +426,6 @@ class Power(InfixOperator, MPMathFunction):
}

nargs = {2}
operator = "^"

rules = {
"Power[]": "1",
"Power[x_]": "x",
Expand Down Expand Up @@ -551,7 +544,6 @@ class Subtract(InfixOperator):
attributes = A_LISTABLE | A_NUMERIC_FUNCTION | A_PROTECTED
grouping = "Left"

operator = "-"
rules = {
"Subtract[x_, y_]": "Plus[x, Times[-1, y]]",
}
Expand Down Expand Up @@ -614,7 +606,6 @@ class Times(InfixOperator, SympyFunction):

formats = {}

operator = "*"
operator_display = " "

rules = {}
Expand Down

0 comments on commit 5b5a5e3

Please sign in to comment.