projects
/
linpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Variable renaming in LinExpr.scaleint()
[linpy.git]
/
linpy
/
linexprs.py
diff --git
a/linpy/linexprs.py
b/linpy/linexprs.py
index
e4ed1cc
..
a49f90e
100644
(file)
--- a/
linpy/linexprs.py
+++ b/
linpy/linexprs.py
@@
-273,9
+273,9
@@
class LinExpr:
Return the expression multiplied by its lowest common denominator to
make all values integer.
"""
Return the expression multiplied by its lowest common denominator to
make all values integer.
"""
- lc
m
= functools.reduce(lambda a, b: a*b // gcd(a, b),
+ lc
d
= functools.reduce(lambda a, b: a*b // gcd(a, b),
[value.denominator for value in self.values()])
[value.denominator for value in self.values()])
- return self * lc
m
+ return self * lc
d
def subs(self, symbol, expression=None):
"""
def subs(self, symbol, expression=None):
"""