|
-
Mar 23rd, 2010, 09:40 AM
#10
Fanatic Member
Re: Math/stats question - Infinity / (1 + Infinity)
 Originally Posted by gigemboy
Megalith, I appreciate the effort, but you are speaking Greek to me  I'm not a math/stats guy, just writing some code to see if we can perform some calculations in .Net for our stats guy here, and he is picky about the underlying code. Sounds good, though 
I wish i could explain it in terms you would understand essentially you need to do a sum and add the result to a running total, you would need to have an additional function to calculate the factorial, not sure if vb has a function for this but its not too hard, factorial of 7 for example is !7 (or 7!) which is 1 x 2 x 3 x 4 x 5 x 6 x 7. I could write an example if needed but although we aren't talking simple maths this is the kind of thing a pc could easily work out. The result would be a real number in this case and not a Nan (although strictly speaking it could be but it would be higher than you used in the first place) you could also use a string and evaluate but this would be considerably harder (although you would be not restricted to 64 bits) there are examples of code to do this on the net however. its a similar problem mathematically as (sin x) / x which evaluates to infinity. thinking about it also, it is possible to scale an exponential so you could use 70.9782712894
and exp(10) not sure on how that works off the top of my head though. and i seem to remember you can evaluate exponential using sin or cos.
If debugging is the process of removing bugs, then programming must be the process of putting them in.
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
|