Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lifeware
biocham
Commits
699c656c
Commit
699c656c
authored
Jan 20, 2020
by
SOLIMAN Sylvain
Browse files
handle unary minus in monomials
parent
f2a58053
Changes
1
Hide whitespace changes
Inline
Side-by-side
tropical.pl
View file @
699c656c
...
...
@@ -316,6 +316,10 @@ split_pos_neg_and_subst_rec(N * T, Vars, Ai, Pos, Neg) :-
)
).
split_pos_neg_and_subst_rec
(
-
E
,
Vars
,
Ai
,
Pos
,
Neg
)
:-
!,
split_pos_neg_and_subst_rec
(
E
,
Vars
,
Ai
,
Neg
,
Pos
).
split_pos_neg_and_subst_rec
(
K
,
Vars
,
Ai
,
Pos
,
Neg
)
:-
split_pos_neg_and_subst_rec
(
1
*
K
,
Vars
,
Ai
,
Pos
,
Neg
).
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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