axiom-mail
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Axiom-mail] sum()


From: Martin Rubey
Subject: Re: [Axiom-mail] sum()
Date: Tue, 22 Jun 2004 08:59:04 +0000

You tried: 

 >    f: Integer -> Integer;
 >    f(0)==1; f(1)==2;
 >    f(n)==sum(f(i)*f(n-i), i=0..(n-1))

Try

f: Integer -> Integer;          
f(0)==1; f(1)==2;                       
f(n)==reduce(+,[f(i)*f(n-i) for i in 1..(n-1)])

I have no good explanation why sum won't work. (Well, I know why it happens
internally. I'm looking for a solution...)

Martin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]