Floating Points: IEEE Standard unifes arithmetic model. Moler, C. Technical Report Mathworks Inc, 1996.
Paper abstract bibtex N/A
@TechReport{Moler1996,
Title = {Floating Points: IEEE Standard unifes arithmetic model},
Author = {Moler, C.},
Institution = {Mathworks Inc},
Year = {1996},
Abstract = {N/A},
Review = {Talks about how MATLAB uses 64-bit floating-point values for both floats and ints. eps() gives the accuracy to the next floating-point value. Since the floating-point is represented by (1+f) * 2^e, if the value cannot be represented as a base-2 value, we get round errors. A good example of this is pi.
For example, sind(90) != sin(pi)
Tips:
- Instead of using A == B (where A and B are not integers...integers are exact, as long as they're smaller than 2^52), consider using (A - B < threshold). The comparison algorithm (such as the isequal command), due to roundoff error, causes all sorts of problems.
- For trig functions, take advantage of periodicity and shift the argument into the [0, pi] range (better yet, shift it into the [0, pi/4] range, if possible) since MATLAB uses Taylor series to calculate trig functions. It is more accurate (and faster) to calculate trig functions in that [0, pi] range. If the intermediate range values gets really big, then we lose precision. This shifting technique is called 'argument reduction'
- Use integers or symbolics as much as possible. They are more accuractly stored (how? I have no idea. MATLAB stores both int and float the same way)
- Arrange the order of operations in a way that small numbers operate on each other first before onto larger numbers -> delay the loss of precision as much as possible
"Simply put, if you have an algorithm that is sensitive to floating point innacuracies, you have a bad algorithm. They are inescapable and just have to be contained."
Other reads:
http://www.mathworks.com/company/newsletters/news_notes/clevescorner/winter02_cleve.html
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_prog/f2-12135.html
http://www.mathworks.com/support/solutions/en/data/1-16FOQ/index.html?solution=1-16FOQ},
Timestamp = {2009.11.30},
Url = {http://www.mathworks.com/company/newsletters/news_notes/pdf/Fall96Cleve.pdf}
}
Downloads: 0
{"_id":"Ecczw2YH9my3cMon7","bibbaseid":"moler-floatingpointsieeestandardunifesarithmeticmodel-1996","downloads":0,"creationDate":"2017-09-14T16:34:36.843Z","title":"Floating Points: IEEE Standard unifes arithmetic model","author_short":["Moler, C."],"year":1996,"bibtype":"techreport","biburl":"https://raw.githubusercontent.com/jfslin/jfslin.github.io/master/jf2lin.bib","bibdata":{"bibtype":"techreport","type":"techreport","title":"Floating Points: IEEE Standard unifes arithmetic model","author":[{"propositions":[],"lastnames":["Moler"],"firstnames":["C."],"suffixes":[]}],"institution":"Mathworks Inc","year":"1996","abstract":"N/A","review":"Talks about how MATLAB uses 64-bit floating-point values for both floats and ints. eps() gives the accuracy to the next floating-point value. Since the floating-point is represented by (1+f) * 2^e, if the value cannot be represented as a base-2 value, we get round errors. A good example of this is pi. For example, sind(90) != sin(pi) Tips: - Instead of using A == B (where A and B are not integers...integers are exact, as long as they're smaller than 2^52), consider using (A - B < threshold). The comparison algorithm (such as the isequal command), due to roundoff error, causes all sorts of problems. - For trig functions, take advantage of periodicity and shift the argument into the [0, pi] range (better yet, shift it into the [0, pi/4] range, if possible) since MATLAB uses Taylor series to calculate trig functions. It is more accurate (and faster) to calculate trig functions in that [0, pi] range. If the intermediate range values gets really big, then we lose precision. This shifting technique is called 'argument reduction' - Use integers or symbolics as much as possible. They are more accuractly stored (how? I have no idea. MATLAB stores both int and float the same way) - Arrange the order of operations in a way that small numbers operate on each other first before onto larger numbers -> delay the loss of precision as much as possible \"Simply put, if you have an algorithm that is sensitive to floating point innacuracies, you have a bad algorithm. They are inescapable and just have to be contained.\" Other reads: http://www.mathworks.com/company/newsletters/news_notes/clevescorner/winter02_cleve.html http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_prog/f2-12135.html http://www.mathworks.com/support/solutions/en/data/1-16FOQ/index.html?solution=1-16FOQ","timestamp":"2009.11.30","url":"http://www.mathworks.com/company/newsletters/news_notes/pdf/Fall96Cleve.pdf","bibtex":"@TechReport{Moler1996,\n Title = {Floating Points: IEEE Standard unifes arithmetic model},\n Author = {Moler, C.},\n Institution = {Mathworks Inc},\n Year = {1996},\n\n Abstract = {N/A},\n Review = {Talks about how MATLAB uses 64-bit floating-point values for both floats and ints. eps() gives the accuracy to the next floating-point value. Since the floating-point is represented by (1+f) * 2^e, if the value cannot be represented as a base-2 value, we get round errors. A good example of this is pi. \n\nFor example, sind(90) != sin(pi)\n\nTips:\n- Instead of using A == B (where A and B are not integers...integers are exact, as long as they're smaller than 2^52), consider using (A - B < threshold). The comparison algorithm (such as the isequal command), due to roundoff error, causes all sorts of problems. \n\n- For trig functions, take advantage of periodicity and shift the argument into the [0, pi] range (better yet, shift it into the [0, pi/4] range, if possible) since MATLAB uses Taylor series to calculate trig functions. It is more accurate (and faster) to calculate trig functions in that [0, pi] range. If the intermediate range values gets really big, then we lose precision. This shifting technique is called 'argument reduction'\n\n- Use integers or symbolics as much as possible. They are more accuractly stored (how? I have no idea. MATLAB stores both int and float the same way)\n\n- Arrange the order of operations in a way that small numbers operate on each other first before onto larger numbers -> delay the loss of precision as much as possible\n\n\"Simply put, if you have an algorithm that is sensitive to floating point innacuracies, you have a bad algorithm. They are inescapable and just have to be contained.\"\n\nOther reads:\nhttp://www.mathworks.com/company/newsletters/news_notes/clevescorner/winter02_cleve.html\nhttp://www.mathworks.com/access/helpdesk/help/techdoc/matlab_prog/f2-12135.html\nhttp://www.mathworks.com/support/solutions/en/data/1-16FOQ/index.html?solution=1-16FOQ},\n Timestamp = {2009.11.30},\n Url = {http://www.mathworks.com/company/newsletters/news_notes/pdf/Fall96Cleve.pdf}\n}\n\n","author_short":["Moler, C."],"key":"Moler1996","id":"Moler1996","bibbaseid":"moler-floatingpointsieeestandardunifesarithmeticmodel-1996","role":"author","urls":{"Paper":"http://www.mathworks.com/company/newsletters/news_notes/pdf/Fall96Cleve.pdf"},"downloads":0},"search_terms":["floating","points","ieee","standard","unifes","arithmetic","model","moler"],"keywords":[],"authorIDs":[],"dataSources":["iCsmKnycRmHPxmhBd"]}