On Mar 30, 2:58 pm, ObsessiveMathsFreak <obsessivemathsfr...@gmail.com> wrote: > I'm just wondering if there is a canonical (i.e. convienient(i.e. > lazy)) way to define simple sequences and series in sage. In > particular, is there a standard way to define recursive series? > > Suppose for example that You wanted to define the series a_n=1/n^2. Is > there a way to do this without writing a for loop? > > And moreover, suppose you wanted to define the recursive sequences > a_n=(n^2+2)a_{n-1}. Is there a way to do this automatically?
I think Maxima can do recurrences. http://maxima.sourceforge.net/docs/manual/en/maxima_76.html But this hasn't been added to Sage yet, in the sense of wrapping the functionality nicely. http://trac.sagemath.org/sage_trac/ticket/1291 -- 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 URL: http://www.sagemath.org