Removed

Share your advanced PureBasic knowledge/code with the community.
Dr_Wildrick
User
User
Posts: 36
Joined: Fri Feb 23, 2007 8:00 pm
Location: New York

Removed

Post by Dr_Wildrick »

Removed
Last edited by Dr_Wildrick on Sun Feb 24, 2008 6:00 am, edited 2 times in total.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

Thank you, never know when this concept will be handy.
Dr_Wildrick
User
User
Posts: 36
Joined: Fri Feb 23, 2007 8:00 pm
Location: New York

Removed

Post by Dr_Wildrick »

Removed
Last edited by Dr_Wildrick on Sun Feb 24, 2008 6:00 am, edited 1 time in total.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

I'm a little puzzled here, doesn't

Code: Select all

prob.d = (bluepulled/pulled) * (blue / total) / (blue/total)
just simplify to

Code: Select all

prob.d = (bluepulled/pulled)
???

Unless I'm missing something? :)

Try it :

Code: Select all

;Set the number of blue marbles 
Blue = 550 
;Set the number of green marbles 
Green = 250 
;Total number of marbles 
total = blue + green 

;Number of marbles we have pulled out so far? 
pulled = 67 

;How may of these were blue? 
bluepulled = 53 


prob.d = (bluepulled/pulled) * (blue / total) / (blue/total) 
Debug prob

prob.d = (bluepulled/pulled)
Debug prob                    ;Same answer!

I may look like a mule, but I'm not a complete ass.
Dr_Wildrick
User
User
Posts: 36
Joined: Fri Feb 23, 2007 8:00 pm
Location: New York

Removed

Post by Dr_Wildrick »

Removed
Post Reply