Actuarial Outpost
 
Go Back   Actuarial Outpost > Actuarial Discussion Forum > Software & Technology
FlashChat Actuarial Discussion Preliminary Exams CAS/SOA Exams Cyberchat Around the World Suggestions


Upload your resume securely at https://www.dwsimpson.com
to be contacted when new jobs meet your skills and objectives.


Reply
 
Thread Tools Search this Thread Display Modes
  #41  
Old 03-04-2014, 06:29 PM
oedipus rex's Avatar
oedipus rex oedipus rex is offline
Member
SOA AAA
 
Join Date: Nov 2002
Favorite beer: too many to list here
Posts: 15,352
Default

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.
Reply With Quote
  #42  
Old 05-29-2014, 05:04 PM
campbell's Avatar
campbell campbell is offline
Mary Pat Campbell
SOA AAA
 
Join Date: Nov 2003
Location: NY
Studying for duolingo and coursera
Favorite beer: Murphy's Irish Stout
Posts: 84,602
Blog Entries: 6
Default

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

LinkedIn Profile
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -4. The time now is 10:07 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
*PLEASE NOTE: Posts are not checked for accuracy, and do not
represent the views of the Actuarial Outpost or its sponsors.
Page generated in 0.12441 seconds with 9 queries