Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2019-06-17 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (80 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!