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
8b4dc4a1
Commit
8b4dc4a1
authored
Apr 21, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed integral/remove power of one conflict using precedence.
parent
ba49325a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/rules/precedences.py
src/rules/precedences.py
+8
-4
No files found.
src/rules/precedences.py
View file @
8b4dc4a1
...
...
@@ -8,7 +8,7 @@ from .derivatives import chain_rule
from
.negation
import
double_negation
,
negated_factor
,
negated_nominator
,
\
negated_denominator
,
negated_zero
from
.fractions
import
multiply_with_fraction
from
.integrals
import
factor_out_constant
from
.integrals
import
factor_out_constant
,
integrate_variable_root
from
.powers
import
remove_power_of_one
...
...
@@ -24,9 +24,9 @@ HIGH = [
# list itself are compared by their position in the list: lower in the list
# means lower priority
LOW
=
[
move_constant
,
reduce_fraction_constants
,
factor_in_exponent_multiplicant
,
reduce_fraction_constants
,
move_constant
,
]
...
...
@@ -43,7 +43,11 @@ RELATIVE = [
(
factor_out_exponent_important
,
raise_numerics
),
(
factor_out_constant
,
multiply_with_fraction
)
(
factor_out_constant
,
multiply_with_fraction
),
# int x dx -> int x ^ 1 dx # do not remove power of one that has
# # deliberately been inserted
(
integrate_variable_root
,
remove_power_of_one
),
]
...
...
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