On Tue, Apr 9, 2013 at 11:00 AM, ThanhVu (Vu) Nguyen <[email protected]> wrote:
> A minor question:  any plan to put the solve_lin_sys solver as the back
> end of solve() ?

Yes, but there is still work to do. This code is very specialized, and
won't work for symbolic coefficients. The whole matrices need to be
rewritten to allow the entries to be gmpy objects, or more generally,
objects from the polys ground types.

This is all still very new and very internal. Don't be surprised if
the API completely changes without notice!

For subs, you can try things like lambdify.

Aaron Meurer

>
> Currently my input is a list of expressions can be feed directly to
> solve().  To use the solve_lin_sys I would have to first create ring
> over the variables, apply that ring over all the expressions and give
> them to solve_lin_sys, then finally convert the result back to expressions.
>
> This is the code I wrote to do these tasks
>
> from sympy.polys.rings import vring
> from sympy.polys.domains import QQ
> from sympy.polys.solvers import solve_lin_sys
>
> def mysolve(eqts)
>     uks = get_vars(eqts)  #set of  symbols (variables) from all equations
>     vr = vring(uks, QQ)
>     eqts = map(vr,eqts)
>     rs = solve_lin_sys(eqts, vr)
>     rs = OrderedDict([(k.as_expr(),v.as_expr()) for k,v in rs.iteritems()])
> return rs
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy?hl=en-US.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to