Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Spooky math problem

by hdb (Monsignor)
on Jan 09, 2014 at 20:47 UTC ( #1070027=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        if ( $envelope==min($a,$b) and $answer eq 'low' ) or ( $envelope==
    +max($a,$b) and $answer eq 'high' );
    }
    printf"Correct ones: %20.17f%%, theoretical odds: %20.17f%%\n", 100*$c
    +orrect/$n, 50+50*(chose(max($a,$b))-chose(min($a,$b)));
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2019-07-17 14:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?