File: recur.dem

package info (click to toggle)
maxima 5.42.1-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 150,192 kB
  • sloc: lisp: 382,565; fortran: 14,666; perl: 14,365; tcl: 11,123; sh: 4,622; makefile: 2,688; ansic: 444; xml: 23; awk: 17; sed: 17
file content (13 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
load("recur.mac");
(declare(n, integer),
  matchdeclare(nn, lambda([e], symbolp(e) and featurep(e, integer))),
  tellsimpafter('binomial(nn, nn), 1),
  'done)$

char(u(n+3)+6*u(n+2)+12*u(n+1)+8*u(n),0,u,n,3,[u(0)=1,u(1)=-2,u(2)=8]);
char(u(n+1)-u(n),(1/6)*n*(n-1)*(n-2)+n-1,u,n,1,[u(0)=1]);
char(u(n+2)-2*u(n+1)+u(n),n**2,u,n,2,[u(0)=0,u(1)=1]);
genf(u(n+2)-u(n),2**n,u,n,2,[u(0)=1,u(1)=0]);
char(u(n+2)-4*u(n),3+2*n,u,n,2,[u(0)=1,u(1)=0]);
varc1(u(n+1)-(n+1)*u(n),1,u,n,1,[u(0)=1]);
varc2(u(n+1)-(n+1)*u(n),1,u,n,1,[u(0)=1]);