|
-
Mar 23rd, 2010, 08:06 AM
#1
[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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|