Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
trs
Commits
dae7dd45
Commit
dae7dd45
authored
Jan 22, 2012
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed add_exponents message typo and added add_numerics message.
parent
6f628ddd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
src/rules/numerics.py
src/rules/numerics.py
+5
-0
src/rules/powers.py
src/rules/powers.py
+1
-1
No files found.
src/rules/numerics.py
View file @
dae7dd45
...
@@ -3,6 +3,7 @@ from itertools import combinations
...
@@ -3,6 +3,7 @@ from itertools import combinations
from
.utils
import
nary_node
from
.utils
import
nary_node
from
..node
import
ExpressionLeaf
as
Leaf
,
OP_DIV
,
OP_MUL
from
..node
import
ExpressionLeaf
as
Leaf
,
OP_DIV
,
OP_MUL
from
..possibilities
import
Possibility
as
P
,
MESSAGES
from
..possibilities
import
Possibility
as
P
,
MESSAGES
from
..translate
import
_
def
add_numerics
(
root
,
args
):
def
add_numerics
(
root
,
args
):
...
@@ -25,6 +26,10 @@ def add_numerics(root, args):
...
@@ -25,6 +26,10 @@ def add_numerics(root, args):
return
nary_node
(
'+'
,
scope
)
return
nary_node
(
'+'
,
scope
)
MESSAGES
[
add_numerics
]
=
_
(
'Combine the constants {3} and {4}, which'
' will reduce to {3} + {4}.'
)
#def match_subtract_numerics(node):
#def match_subtract_numerics(node):
# """
# """
# 3 - 2 -> 2.0
# 3 - 2 -> 2.0
...
...
src/rules/powers.py
View file @
dae7dd45
...
@@ -138,7 +138,7 @@ def add_exponents(root, args):
...
@@ -138,7 +138,7 @@ def add_exponents(root, args):
return
nary_node
(
'*'
,
scope
)
return
nary_node
(
'*'
,
scope
)
MESSAGES
[
add_exponents
]
=
_
(
'Add the exponents {1} and {2}, which'
MESSAGES
[
add_exponents
]
=
_
(
'Add the exponents
of
{1} and {2}, which'
' will reduce to {1[0]}^({1[1]} + {2[1]}).'
)
' will reduce to {1[0]}^({1[1]} + {2[1]}).'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment