Actuarial Outpost Censored SOA Article!!!!!!! You Will Be Shocked!
 Register Blogs Wiki FAQ Calendar Search Today's Posts Mark Forums Read
 FlashChat Actuarial Discussion Preliminary Exams CAS/SOA Exams Cyberchat Around the World Suggestions

#41
03-04-2014, 05:29 PM
 oedipus rex Member SOA AAA Join Date: Nov 2002 Favorite beer: too many to list here Posts: 15,374

that is pretty good. I like it since it's testable in Excel very very easily. (=POWER(EXP(1), PI())-PI())
__________________
Life can only be understood backwards; but it must be lived forwards. --S.K.
#42
05-29-2014, 04:04 PM
 campbell Mary Pat Campbell SOA AAA Join Date: Nov 2003 Location: NY Studying for duolingo and coursera Favorite beer: Murphy's Irish Stout Posts: 88,081 Blog Entries: 6

and here is the payoff

http://www.soa.org/News-and-Publicat...rithmetic.aspx

Quote:
 LOSING MY PRECISION: TIPS FOR HANDLING TRICKY FLOATING POINT ARITHMETIC
I'll just pull out my tips:

Quote:
 Tip 1: Whenever possible, add numbers of similar small magnitude together before trying to add to larger magnitude numbers. Tip 2: Before subtracting floating point numbers, you may need to “massage” the original numbers or change your algorithm in order to not lose significant digits in subtraction. Tip 3: To prevent overflow and underflow (as well as loss of precision) when multiplying and dividing numbers, try to rearrange the product so that one is multiplying by numbers near to one. Tip 4: Sometimes transforming your calculation by applying a function (such as logarithms) can remove the danger of overflow and underflow, though it may provide a new source of loss of precision.
__________________
It's STUMP