Skip to content

Commit c37afe7

Browse files
committed
rocky's observations
1 parent 331c9a7 commit c37afe7

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

mathics/builtin/layout.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@
1616
from mathics.builtin.makeboxes import MakeBoxes
1717
from mathics.builtin.options import options_to_rules
1818
from mathics.core.atoms import Real, String
19-
from mathics.core.builtin import (
20-
BinaryOperator,
21-
Builtin,
22-
Operator,
23-
PostfixOperator,
24-
PrefixOperator,
25-
)
19+
from mathics.core.builtin import Builtin, Operator, PostfixOperator, PrefixOperator
2620
from mathics.core.expression import Evaluation, Expression
2721
from mathics.core.list import ListExpression
2822
from mathics.core.symbols import Symbol

mathics/builtin/recurrence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class RSolve(Builtin):
4949
## PyPy: {{a -> Function[{n}, 1 - C[1] + C[1] -1 ^ n]}}
5050
## CPython: {{a -> Function[{n}, 1 + C[1] -1 ^ n - C[1]]}
5151
52-
Geta "pure function" solution for a with two boundary conditions:
52+
Get a "pure function" solution for a with two boundary conditions:
5353
>> RSolve[{a[n + 2] == a[n], a[0] == 1, a[1] == 4}, a, n]
5454
= {{a -> Function[{n}, 5 / 2 - 3 (-1) ^ n / 2]}}
5555
"""

mathics/eval/makeboxes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ def compare_precedence(
7474
) -> Optional[int]:
7575
"""
7676
compare the precedence of the element regarding a precedence value.
77-
If both precedences are equivalent, return 0. If precedence of element
78-
is higher, return 1, otherwise -1.
77+
If both precedences are equal, return 0. If precedence of the
78+
first element is higher, return 1, otherwise -1.
7979
If precedences cannot be compared, return None.
8080
"""
8181
while element.has_form("HoldForm", 1):

test/builtin/numbers/test_diffeqns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"DSolve[f[x] == 0, f, {}]",
6767
None,
6868
),
69-
## Order of arguments shoudn't matter
69+
# # Order of arguments shoudn't matter
7070
(
7171
"DSolve[D[f[x, y], x] == D[f[x, y], y], f, {x, y}]",
7272
None,

0 commit comments

Comments
 (0)