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
b04cf62c
Commit
b04cf62c
authored
Mar 15, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed a bunch of unused imports.
parent
9146b782
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
12 deletions
+5
-12
src/rules/derivatives.py
src/rules/derivatives.py
+0
-2
src/rules/fractions.py
src/rules/fractions.py
+2
-2
src/rules/goniometry.py
src/rules/goniometry.py
+2
-4
src/rules/numerics.py
src/rules/numerics.py
+0
-1
src/rules/sort.py
src/rules/sort.py
+1
-3
No files found.
src/rules/derivatives.py
View file @
b04cf62c
from
itertools
import
combinations
from
.utils
import
find_variables
from
.utils
import
find_variables
from
.logarithmic
import
ln
from
.logarithmic
import
ln
from
.goniometry
import
sin
,
cos
from
.goniometry
import
sin
,
cos
...
...
src/rules/fractions.py
View file @
b04cf62c
from
itertools
import
combinations
,
product
from
itertools
import
combinations
,
product
from
.utils
import
least_common_multiple
,
partition
from
.utils
import
least_common_multiple
,
partition
from
..node
import
ExpressionLeaf
as
L
,
Scope
,
negate
,
OP_DIV
,
OP_ADD
,
\
from
..node
import
ExpressionLeaf
as
L
,
Scope
,
OP_DIV
,
OP_ADD
,
OP_MUL
,
\
OP_
MUL
,
OP_
POW
,
nary_node
,
negate
OP_POW
,
nary_node
,
negate
from
..possibilities
import
Possibility
as
P
,
MESSAGES
from
..possibilities
import
Possibility
as
P
,
MESSAGES
from
..translate
import
_
from
..translate
import
_
...
...
src/rules/goniometry.py
View file @
b04cf62c
from
.utils
import
is_fraction
from
..node
import
ExpressionNode
as
N
,
ExpressionLeaf
as
L
,
OP_ADD
,
OP_MUL
,
\
from
..node
import
ExpressionNode
as
N
,
ExpressionLeaf
as
L
,
Scope
,
OP_ADD
,
\
OP_DIV
,
OP_SIN
,
OP_COS
,
OP_TAN
,
OP_SQRT
,
PI
,
TYPE_OPERATOR
OP_POW
,
OP_MUL
,
OP_DIV
,
OP_SIN
,
OP_COS
,
OP_TAN
,
OP_SQRT
,
PI
,
\
TYPE_OPERATOR
from
..possibilities
import
Possibility
as
P
,
MESSAGES
from
..possibilities
import
Possibility
as
P
,
MESSAGES
from
..translate
import
_
from
..translate
import
_
...
...
src/rules/numerics.py
View file @
b04cf62c
...
@@ -99,7 +99,6 @@ def match_divide_numerics(node):
...
@@ -99,7 +99,6 @@ def match_divide_numerics(node):
assert
node
.
is_op
(
OP_DIV
)
assert
node
.
is_op
(
OP_DIV
)
n
,
d
=
node
n
,
d
=
node
divide
=
False
nv
,
dv
=
n
.
value
,
d
.
value
nv
,
dv
=
n
.
value
,
d
.
value
if
n
.
is_int
()
and
d
.
is_int
():
if
n
.
is_int
()
and
d
.
is_int
():
...
...
src/rules/sort.py
View file @
b04cf62c
from
itertools
import
product
,
combinations
from
..node
import
Scope
,
OP_MUL
from
..node
import
Scope
,
OP_ADD
,
OP_MUL
from
..possibilities
import
Possibility
as
P
,
MESSAGES
from
..possibilities
import
Possibility
as
P
,
MESSAGES
from
..translate
import
_
from
..translate
import
_
...
...
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