Thanks, Laurent. I figured that out, but it is quite tedious to have to go through each worksheet and change the soln[0][1] to soln[0].rhs(). There are other things that work differently now and of course there are new ways how to achieve the same results, which might be more elegant. However, I don't think this warrants confronting the user with the need to recode all her previous work. I remember an old thread where WAS and others expressed their concern for backwards compatibility and not breaking old code by upgrading to a new version, but this seems to have been abandoned for quicker progress, I suppose. Hence the need for at least a possibility to run the old versions in parallel with the new one, or a conversion tool for old notebooks.
Cheers Stan Laurent wrote: > Stan Schymanski ha scritto: > >> Hi Jason, >> >> I gave an example for what does not work here: >> http://groups.google.com/group/sage-support/browse_thread/thread/17c717e8bfbdd367/b2fdb60e1f33b43e#b2fdb60e1f33b43e >> >> Today I noticed that my old use of .subs(locals()) now leads to an >> error, too. >> >> I could try to copy the notebook to somewhere else, but I don't think >> this would avoid the "Unable to start maxima" error I am getting. It >> seems that the upgrade to 4.1. changed something that 3.4 was using, so >> 3.4 does not work any more. If I install 3.4 again, I suspect that this >> could break 4.1, so I would get myself into an awful mess, wouldn't I? >> >> Thanks for your help! >> >> Stan >> >> > I don't know how to make work your old code on a new Sage, but here is > the way of working with Sage 4 : > > var('x y') > soln = solve(y == x^3 -2, x) > print soln > print soln[1].right_hand_side() > > Sage's answer : > > [ > x == 1/2*(I*sqrt(3) - 1)*(y + 2)^(1/3), > x == 1/2*(-I*sqrt(3) - 1)*(y + 2)^(1/3), > x == (y + 2)^(1/3) > ] > 1/2*(-I*sqrt(3) - 1)*(y + 2)^(1/3) > > > Have a good afternoon > Laurent > > > > > -- ________________________________________ Stan Schymanski Scientist Max Planck Institute for Biogeochemistry Postfach 10 01 64 D-07701 Jena Phone: +49.3641.576264 Fax: +49.3641.577274 WWW: http://www.bgc-jena.mpg.de/~sschym Biospheric Theory and Modelling Group http://www.bgc-jena.mpg.de/bgc-theory/ _________________________________________ --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---