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
709a061c
Commit
709a061c
authored
Feb 23, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied pep8.
parent
261300cc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
src/rules/goniometry.py
src/rules/goniometry.py
+2
-2
src/rules/groups.py
src/rules/groups.py
+2
-2
src/rules/numerics.py
src/rules/numerics.py
+0
-5
No files found.
src/rules/goniometry.py
View file @
709a061c
from
..node
import
Expression
Node
as
N
,
ExpressionLeaf
as
L
,
Scope
,
\
OP_
ADD
,
OP_POW
,
OP_MUL
,
OP_
SIN
,
OP_COS
,
OP_TAN
from
..node
import
Expression
Leaf
as
L
,
Scope
,
OP_ADD
,
OP_POW
,
OP_MUL
,
\
OP_SIN
,
OP_COS
,
OP_TAN
from
..possibilities
import
Possibility
as
P
,
MESSAGES
from
..translate
import
_
...
...
src/rules/groups.py
View file @
709a061c
from
itertools
import
combinations
from
..node
import
Expression
Node
as
Node
,
ExpressionLeaf
as
Leaf
,
Scop
e
,
\
OP_ADD
,
OP_MUL
,
nary_node
,
negate
from
..node
import
Expression
Leaf
as
Leaf
,
Scope
,
OP_ADD
,
OP_MUL
,
nary_nod
e
,
\
negate
from
..possibilities
import
Possibility
as
P
,
MESSAGES
from
..translate
import
_
...
...
src/rules/numerics.py
View file @
709a061c
...
...
@@ -38,11 +38,6 @@ def add_numerics(root, args):
scope
,
c0
,
c1
=
args
value
=
c0
.
actual_value
()
+
c1
.
actual_value
()
if
value
<
0
:
leaf
=
Leaf
(
-
value
).
negate
()
else
:
leaf
=
Leaf
(
value
)
# Replace the left node with the new expression
scope
.
replace
(
c0
,
Leaf
(
abs
(
value
)).
negate
(
int
(
value
<
0
)))
...
...
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