Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: recursive formula.

by rsteinke (Scribe)
on Aug 07, 2004 at 01:00 UTC ( [id://380797]=note: print w/replies, xml ) Need Help??


in reply to Re: recursive formula.
in thread recursive formula.

You forget that r_0 is always zero, so
P(1, 1, 1) = (1 - 1) P(1, 1) + (1 - 1) P(1, 1) + (1 - 0) P(1, 1) = P(1, 1) = P(1) = 1
Ron Steinke rsteinke@w-link.net

Replies are listed 'Best First'.
Re^3: recursive formula.
by BrowserUk (Patriarch) on Aug 07, 2004 at 05:34 UTC

    Thanks. That's the source of my misunderstanding. I saw the r0 = 0 reference, but I also saw r running 1 .. n and i running 1 to n.

    I missed that n-i = 0 whenever n=i. Stupid.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://380797]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-19 10:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found