ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 29 Aug 2016 10:22:51 +0200Solve in bulkhttps://ask.sagemath.org/question/34629/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.
Mon, 29 Aug 2016 02:48:15 +0200https://ask.sagemath.org/question/34629/solve-in-bulk/Answer by B r u n o for <p>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.</p>
https://ask.sagemath.org/question/34629/solve-in-bulk/?answer=34634#post-id-34634Does 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)]]
Mon, 29 Aug 2016 10:22:51 +0200https://ask.sagemath.org/question/34629/solve-in-bulk/?answer=34634#post-id-34634