Re: The seven step series

From: Bruno Marchal <marchal.domain.name.hidden>
Date: Fri, 21 Aug 2009 09:47:03 +0200

On 21 Aug 2009, at 01:24, meekerdb .domain.name.hidden wrote:

>
> On Thu, Aug 20, 2009 at 12:32 PM, Bruno Marchal<marchal.domain.name.hidden>
> wrote:
>>
>>
>> Hi,
>>
>> I give the solution of the first of the last exercises.
> ...
>> This motivates the definition of the following function from N to N,
>> called factorial.
>> factorial(0) = 1, and factorial(n) = n*(n-1)*(n-2)*(n-3) * ... *1, if
>> is n is different from 0.
>>
>> Note this: if n is different from 0, for each n we have that
>> fact(n) =
>> n*fact(n).
>
> Of course you meant fact(n)=n*fact(n-1).


Yes, indeed.

Note that later we will see stronger form of recursion, but here it is
just a "typo" mistake.

Bruno


http://iridia.ulb.ac.be/~marchal/




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Everything List" group.
To post to this group, send email to everything-list.domain.name.hidden
To unsubscribe from this group, send email to everything-list+unsubscribe.domain.name.hidden
For more options, visit this group at http://groups.google.com/group/everything-list?hl=en
-~----------~----~----~----~------~----~------~--~---
Received on Fri Aug 21 2009 - 09:47:03 PDT

This archive was generated by hypermail 2.3.0 : Fri Feb 16 2018 - 13:20:16 PST