Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  •   Q: sum of 1, 2, and 3
      A: 6
      ?: wrong!

    What would you expect the sum of those numbers to be?

    • by rjbs (4671) on 2007.07.02 7:10 (#55878) Homepage Journal
      Six! Whoops. I clearly zoned out while writing this. Here are some more stupid "plain English" examples:

        Q: sum of 5, 6, and 7
        A: 18
        ?: right!
       
        Q: sum of five, six, and seven
        A: (none)
        ?: useless
       
        Q: sum of five, 6, and seven
        A: 6
        ?: wrong
       
        Q: sum of five, s1x, and seven
        A: 0.8414709848
        ?: okay, I typoed; what happened?
      What did happen there? s, 1, x, and s1 are all (no reply). 1x is 1. s1x gets that small number.
      --
      rjbs
      • Googling revealed that 0.8414709848 = sin(1)
        • Wow... just...

          Q: s1
          A: (no answer)
           
          Q: sin 1
          A: 1
           
          Q: sin(1)
          A: 0.0174524064
           
          Q: s1x
          A: 0.8414709848
           
          Q: s2x
          A: 0.9092974268
          That's the right sin(2) for s2x, there. The answer for sin(1) is for 1 degree. The one you gave is for one radian.

          No idea.
          --
          rjbs
          • This was good for a good out-loud laugh this morning. Thank you. :)

            --
            J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers