I know that you have discussed this before and there was no consensus, however I need some help on this subject.
At the moment it seems awfully hard to write code that uses `solve` (as opposed to using it interactively) because one has to check for all the different types of output. Is it an empty list, dict, list of tuples of answers, list of answers, dict of answers, list of dicts or whatever? And when there is no solution as opposed to when the solver is not smart enough, what is the output? The docstring speaks about some of this stuff, however it is really hard to get a clear idea of what the logic is (there are indeed many examples, however no explanation of the logic). So my questions are: How to process the output of solve in code? Is it really the only way to check whether it is a list or a dict? Is there a way to force the use of dict? If not, what do you think about adding such a flag? -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
