I tried using the solution_dict option and I was still not able to index each solution from the solve function.
On Tuesday, March 6, 2012 10:55:08 AM UTC-8, Vincent Knight wrote: > > I'm not an expert (newish sage user) but I think you want to use the solve > function with solution_dict=True. This will give your solutions as a > dictionary which can then be indexed in the normal way. > > More about that on this page: > > http://www.sagemath.org/doc/reference/sage/numerical/optimize.html > > Vince > > On 6 March 2012 18:36, Eric Kangas <[email protected]> wrote: > >> Ok I am solving the eigenvalues and vectors for a coupled DE. All I need >> to know is how to extract the solutions to the solve function. It turns out >> that there are four solutions. I would like to find a way to extract each >> of them instead of the cut and paste method. I tried the usual python index >> soln[0:1] also with the flatten command but that did not work. >> >> -- >> 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/sage-support >> URL: http://www.sagemath.org >> > > > > -- > Dr Vincent Knight > Cardiff School of Mathematics > Senghennydd Road, > Cardiff > CF24 4AG > (+44) 29 2087 5548 > www.vincent-knight.com > @drvinceknight <http://twitter.com/#%21/drvinceknight> > Skype: drvinceknight > > -- 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/sage-support URL: http://www.sagemath.org
