Results 1 to 19 of 19

Thread: [RESOLVED] Math/stats question - Infinity / (1 + Infinity)

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Resolved [RESOLVED] Math/stats question - Infinity / (1 + Infinity)

    I am using the Math.Exp function in a calculation, and the result essentially is Infinity / 1 + Infinity, which is 1 statistically, but it is showing as "NaN" (not a number). Is there a way to calculate/show the result of this as 1 (besides just testing for NaN and explicitly setting it as 1?)

    The equation simplifies as:

    Math.Exp(X) / (1 + Math.Exp(X))

    X is a number larger than 709.782712893 in order to get the NaN result.
    Last edited by gigemboy; Mar 23rd, 2010 at 08:52 AM. Reason: Why did I make math plural?

Posting Permissions

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



Click Here to Expand Forum to Full Width