On May 22, 4:23 am, Luke <hazelnu...@gmail.com> wrote:
> Does anybody use solve() by passing the function and/or the symbol
> arguments as a set, rather than a list or a tuple?
>
> I can't see a reason why using it with a set would be beneficial, and
> without support for sets, there are some aspects of solve that would
> become easier with regard to being able to solve equation(s) for both
> Symbol objects and Function objects.
>
but as has been noted in another thread, the conversion is so easy is
it a problem just to internally convert the set to a list and then do
whatever is made easier in solve? I was just thinking about how I
would use sets to solve a system of equations in an interactive
session, writing the equations and then just getting the set of
symbolic atoms in the equations and passing that as the set of symbols
to solve for. But on the other hand *I* could be the one to make sure
that the set gets turned into a list before sending it. Can you give
an example where it would be inconvenient to handle this translation
within the solve routine itself?
/chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to sympy@googlegroups.com
To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---