| Author |
Comment/Response |
West
|
10/20/11 12:43pm
sol = Solve[{x + y == -6, x - y == 25}, {x, y}, Reals]
list = {x, y} /. sol
innerList = list[[1]]
x1 = innerList[[1]]
y1 = innerList[[2]]
So I'm basically looking for a simpler way to set x1 and y1 to the solution of Solve. It's fairly odd I need to pull them out of lists twice in order to have them set as just integers. Anybody know a better way to do this?
Thanks
URL: , |
|