Hello,

I've been trying to solve recurrence relations and managed to find the 
solve_rec in maxima.  For example, when I evaluate 

sol=maxima('solve_rec(a[n+2]+a[n+1]-2*a[n]=0,a[n],a[0]=1,a[1]=3)')

the value of sol is

a[n]=(-2)^(n+1)/3+5/3



Now what I'd like to do is define a Sage function that matches this output. 
 I haven't been about to do so.  Anyone know how?

Ken Levasseur
UMass Lowell


*
*


-- 
You received this message because you are subscribed to the Google Groups 
"sage-edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-edu?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to