Re: Powers of 5
- From: Phil Carmody <thefatphil_demunged@xxxxxxxxxxx>
- Date: 05 Sep 2006 09:15:15 +0300
James Waldby <j-waldby@xxxxxxxx> writes:
You merely replaced "return (5 * power(n-1))" with
"return power(k-1)**2". Instead, make the function
split three ways -
if n <= 1 return 5,
else if n is even return the square of something,
else return power(n-1)*5.
Why are people mindlessly propagating the complete
falsity that 5^0 = 5?
You, James, should know better.
Phil
--
"Home taping is killing big business profits. We left this side blank
so you can help." -- Dead Kennedys, written upon the B-side of tapes of
/In God We Trust, Inc./.
.
- References:
- Powers of 5
- From: Josh
- Re: Powers of 5
- From: Rick Decker
- Re: Powers of 5
- From: Josh
- Re: Powers of 5
- From: James Waldby
- Powers of 5
- Prev by Date: Re: Powers of 5
- Next by Date: Re: topologies on IR^2
- Previous by thread: Re: Powers of 5
- Next by thread: Re: Powers of 5
- Index(es):
Relevant Pages
|