• Lucid Dreaming - Dream Views




    Results 1 to 13 of 13

    Thread: Crash my code

    Threaded View

    1. #6
      DuB
      DuB is offline
      Distinct among snowflakes DuB's Avatar
      Join Date
      Sep 2005
      Gender
      Posts
      2,399
      Likes
      362
      R handles these issues quite straightforwardly and sensibly using special numeric-type values "Inf" and, if you really screw up, "NaN" (Not a Number).
      Code:
      > 1/0
      [1] Inf
      > is.finite(1/0)
      [1] FALSE
      > -1/0
      [1] -Inf
      > 1/Inf
      [1] 0
      > 0/0
      [1] NaN
      > # although, amusingly:
      > is.numeric(NaN)
      [1] TRUE
      Last edited by DuB; 07-31-2011 at 10:15 PM.

    Similar Threads

    1. Crack this code
      By Tyler in forum Senseless Banter
      Replies: 12
      Last Post: 07-31-2010, 04:24 PM
    2. Security code!?!?
      By Noogah in forum The Lounge
      Replies: 4
      Last Post: 10-30-2009, 03:59 AM
    3. Want to QA some C++ code?
      By ninja9578 in forum Tech Talk
      Replies: 15
      Last Post: 08-11-2009, 01:11 AM
    4. Decipher the code!
      By Original Poster in forum Senseless Banter
      Replies: 20
      Last Post: 11-12-2007, 02:30 AM

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •