Should we create a ticket for this ? I'd have done it if not for my doubt on the section I should pick for this... :-)
Nathann On Feb 10, 1:42 pm, Harald Schilly <[email protected]> wrote: > On Feb 10, 11:16 am, Simon King <[email protected]> wrote: > > > sage: f = y(n+2) - y(n+1) - y(n) > > ahh ... ok. now i get it ^^ > When I look into sympy/solvers/recurr.py right the first thingrsolve > does is to compute lhs - rhs. So, f = y(n) == y(n-1) - y(n-2) *should* > work. But it doesn't, because that equation doesn't get transformed > into a sympy Equality (just a "bool"). > > This works: > > sage: f = Equality(y(n), y(n-1) + y(n-2)) > sage:rsolve(f, y(n)) > C0*(1/2 + 5**(1/2)/2)**n + C1*(1/2 - 5**(1/2)/2)**n > > I'm +1 for introducingrsolvein sage (and yes, more namespace > pollution, but we have to think about all the newcomers who expect > some easy functions to work just out of the box, integrate, diff, > etc...) > > H -- 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
