Slash Boxes
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.
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?

    • 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 nu

      • Googling revealed that 0.8414709848 = sin(1)
        • by rjbs (4671) on 2007.07.03 7:39 (#55918) Homepage Journal
          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.
          • 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