Negate an equation:
|
02-08-2017, 05:48 PM
(This post was last modified: 02-09-2017 12:35 PM by compsystems.)
Post: #2
|
|||
|
|||
RE: Negate an equation:
eqs:={"x+y<=3","y<=9","c=-x-y"};
expr("neg("+eqs[3]+")"); returns -( c == (-x-y) ) this is a bug? I do not know why change = to ==, Alters the expression, and becomes a comparison, affecting the logic of an algorithm, simplify(Ans); returns 0 (false) should be eqs:={"x+y<=3","y<=9","c=-x-y"}; expr("neg("+eqs[3]+")"); returns -( c = (-x-y) ) simplify(Ans); -c = -(-x-y) -c = (x+y) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Negate an equation: - DrD - 02-08-2017, 05:40 PM
RE: Negate an equation: - compsystems - 02-08-2017 05:48 PM
RE: Negate an equation: - DrD - 02-09-2017, 12:00 PM
RE: Negate an equation: - Didier Lachieze - 02-09-2017, 12:16 PM
RE: Negate an equation: - DrD - 02-09-2017, 05:06 PM
RE: Negate an equation: - Didier Lachieze - 02-09-2017, 07:55 PM
RE: Negate an equation: - DrD - 02-09-2017, 08:10 PM
RE: Negate an equation: - Han - 02-09-2017, 08:47 PM
|
User(s) browsing this thread: