Solve in bulk
Does anyone know how to solve tons of equations in a row like: 1+1 2+2 and it returns: 2 4 and I want to do it on algebra equations.
asked 2016-08-29 02:48:15 +0100
This post is a wiki. Anyone with karma >750 is welcome to improve it.
Does anyone know how to solve tons of equations in a row like: 1+1 2+2 and it returns: 2 4 and I want to do it on algebra equations.
Does something like the following satisfies your need?
sage: eqs = [x^2 == 1, x+1 == 0, 3*x == 2]
sage: [eq.solve(x) for eq in eqs]
[[x == -1, x == 1], [x == -1], [x == (2/3)]]
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2016-08-29 02:48:15 +0100
Seen: 579 times
Last updated: Aug 29 '16