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
3f28fa21
Commit
3f28fa21
authored
Apr 21, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup.
parent
19282d20
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/rules/numerics.py
src/rules/numerics.py
+2
-2
tests/test_rules_derivatives.py
tests/test_rules_derivatives.py
+2
-2
No files found.
src/rules/numerics.py
View file @
3f28fa21
from
itertools
import
combinations
from
.utils
import
greatest_common_divisor
from
.utils
import
greatest_common_divisor
,
is_numeric_node
from
..node
import
ExpressionLeaf
as
Leaf
,
Scope
,
OP_ADD
,
OP_DIV
,
OP_MUL
,
\
OP_POW
from
..possibilities
import
Possibility
as
P
,
MESSAGES
...
...
@@ -195,7 +195,7 @@ def match_multiply_numerics(node):
p
=
[]
scope
=
Scope
(
node
)
numerics
=
filter
(
lambda
n
:
n
.
is_numeric
()
,
scope
)
numerics
=
filter
(
is_numeric_node
,
scope
)
for
n
in
numerics
:
if
n
.
negated
:
...
...
tests/test_rules_derivatives.py
View file @
3f28fa21
from
src.rules.derivatives
import
der
,
get_derivation_variable
,
\
from
src.rules.derivatives
import
get_derivation_variable
,
\
match_zero_derivative
,
match_one_derivative
,
one_derivative
,
\
zero_derivative
,
match_variable_power
,
variable_root
,
\
variable_exponent
,
match_const_deriv_multiplication
,
\
...
...
@@ -6,7 +6,7 @@ from src.rules.derivatives import der, get_derivation_variable, \
logarithmic
,
match_goniometric
,
sinus
,
cosinus
,
tangens
,
\
match_sum_product_rule
,
sum_rule
,
product_rule
,
match_quotient_rule
,
\
quotient_rule
,
power_rule
from
src.node
import
Scope
,
sin
,
cos
,
ln
from
src.node
import
Scope
,
sin
,
cos
,
ln
,
der
from
src.possibilities
import
Possibility
as
P
from
tests.rulestestcase
import
RulesTestCase
,
tree
...
...
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