<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Math Tricks &#187; excel rounding</title>
	<atom:link href="http://mathtricks.org/tag/excel-rounding/feed/" rel="self" type="application/rss+xml" />
	<link>http://mathtricks.org</link>
	<description>Math Tricks + Math Games = Math Fun!</description>
	<lastBuildDate>Thu, 02 Sep 2010 03:04:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Excel Rounding</title>
		<link>http://mathtricks.org/real-life-math/bad-math/excel-rounding/</link>
		<comments>http://mathtricks.org/real-life-math/bad-math/excel-rounding/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 20:41:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Bad Math]]></category>
		<category><![CDATA[excel rounding]]></category>
		<category><![CDATA[Math Tricks]]></category>
		<category><![CDATA[Real Life Math]]></category>

		<guid isPermaLink="false">http://mathtricks.org/?p=103</guid>
		<description><![CDATA[Excel Rounding In my line of work, we generate polynomial curves very often.  It is important for us to have software that will generate polynomial equations for the data that we generate – equations for the standard curves that we generate so that we can determine values for our unknown samples. This is both an [...]]]></description>
			<content:encoded><![CDATA[<h2>Excel Rounding</h2>
<p>In my line of work, we generate polynomial curves very often.  It is important for us to have software that will generate polynomial equations for the data that we generate – equations for the standard curves that we generate so that we can determine values for our unknown samples.</p>
<p>This is both an example of <strong>real life math</strong> and <strong>bad math</strong>.  To start, I’ll just say that we used to generate linear curves for our assays.  The data for these assays were analyzed in Microsoft Excel, and we were very satisfied with the linear curves generated by Excel.</p>
<p>Last year, we changed our assay such that the standard curve that was generated was no longer linear.  The new type of curve was a second-order polynomial (of the form AX<sup>2</sup> + BX + C).  So, OK, Excel can handle polynomial data, right?  Well, we discovered a problem with Excel – <strong>Excel rounding</strong> of the polynomial coefficients!  The problem seems to exist with only large coefficients, but we do deal with polynomials with large coefficients every day.</p>
<p>To illustrate the problem, I generated some data for the equation:</p>
<p>Y = 8386111X<sup>2</sup> + 24421000X + 0.058</p>
<p>Here is a table of data generated using this equation:</p>
<table border="0" cellspacing="0" cellpadding="0" width="219">
<tbody>
<tr>
<td width="65" valign="bottom">
<p align="center"><strong><span style="text-decoration: underline;">X</span></strong></p>
</td>
<td width="154" valign="bottom">
<p align="center"><strong><span style="text-decoration: underline;">Y</span></strong></p>
</td>
</tr>
<tr>
<td width="65" valign="bottom">
<p align="center">0.00003</p>
</td>
<td width="154" valign="bottom">
<p align="center">732.6955475</p>
</td>
</tr>
<tr>
<td width="65" valign="bottom">
<p align="center">0.00033</p>
</td>
<td width="154" valign="bottom">
<p align="center">8059.901247</p>
</td>
</tr>
<tr>
<td width="65" valign="bottom">
<p align="center">0.00333</p>
</td>
<td width="154" valign="bottom">
<p align="center">81414.98075</p>
</td>
</tr>
<tr>
<td width="65" valign="bottom">
<p align="center">0.03333</p>
</td>
<td width="154" valign="bottom">
<p align="center">823268.0256</p>
</td>
</tr>
<tr>
<td width="65" valign="bottom">
<p align="center">0.33333</p>
</td>
<td width="154" valign="bottom">
<p align="center">9072023.463</p>
</td>
</tr>
<tr>
<td width="65" valign="bottom">
<p align="center">3.33333</p>
</td>
<td width="154" valign="bottom">
<p align="center">174582076.7</p>
</td>
</tr>
</tbody>
</table>
<p>So far so good.  OK, so using Excel (Microsoft Office 2003), I generated this polynomial curve:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-104" title="excel rounding" src="http://mathtricks.org/wp-content/uploads/2009/09/excel-rounding.png" alt="excel rounding" width="459" height="344" /></p>
<p>As you can see, the equation of the curve generated by Excel is not the same as the equation that we used to generate the data used in our example.  There was some <strong>Excel rounding</strong> of the coefficients A and B:</p>
<p>Y = 8386111X<sup>2</sup> + 24421000X + 0.058     equation used to generate data</p>
<p>Y = 8E+06X<sup>2</sup> + 2E+07X + 0.058    equation generated by Excel</p>
<p>Close, but no cigar!  In our line of work, we require precise and accurate data, ant this <strong>Excel rounding</strong> problem is unacceptable.  We just got in Office 2007, but the problem still exists there too.  We are now using GraphPad, which does not round.</p>
<p>Well, as it is getting close to Halloween, I thought it appropriate to write about this example of Microsoft <strong>math tricks</strong> – not treats.  Has anybody else discovered any limitations with Excel?  Please feel free to post!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://mathtricks.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d103').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d103" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http%3A%2F%2Fmathtricks.org%2Freal-life-math%2Fbad-math%2Fexcel-rounding%2F&amp;submitHeadline=Excel+Rounding&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://mathtricks.org/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fmathtricks.org%2Freal-life-math%2Fbad-math%2Fexcel-rounding%2F&amp;title=Excel+Rounding" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://mathtricks.org/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmathtricks.org%2Freal-life-math%2Fbad-math%2Fexcel-rounding%2F&amp;title=Excel+Rounding" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://mathtricks.org/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fmathtricks.org%2Freal-life-math%2Fbad-math%2Fexcel-rounding%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://mathtricks.org/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmathtricks.org%2Freal-life-math%2Fbad-math%2Fexcel-rounding%2F&amp;title=Excel+Rounding" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://mathtricks.org/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http%3A%2F%2Fmathtricks.org%2Freal-life-math%2Fbad-math%2Fexcel-rounding%2F&amp;bm_description=Excel+Rounding" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://mathtricks.org/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http%3A%2F%2Fmathtricks.org%2Freal-life-math%2Fbad-math%2Fexcel-rounding%2F&amp;T=Excel+Rounding" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://mathtricks.org/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fmathtricks.org%2Freal-life-math%2Fbad-math%2Fexcel-rounding%2F&amp;title=Excel+Rounding" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://mathtricks.org/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmathtricks.org%2Freal-life-math%2Fbad-math%2Fexcel-rounding%2F&amp;title=Excel+Rounding" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://mathtricks.org/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fmathtricks.org%2Freal-life-math%2Fbad-math%2Fexcel-rounding%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://mathtricks.org/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http%3A%2F%2Fmathtricks.org%2Freal-life-math%2Fbad-math%2Fexcel-rounding%2F" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://mathtricks.org/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Excel+Rounding+@+http%3A%2F%2Fmathtricks.org%2Freal-life-math%2Fbad-math%2Fexcel-rounding%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://mathtricks.org/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fmathtricks.org%2Freal-life-math%2Fbad-math%2Fexcel-rounding%2F&amp;t=Excel+Rounding" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://mathtricks.org/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
<a style="font-size:90%;text-align: right; " title="Click me to hide the sites." href="#" onclick="$$('div.d103').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;">Hide Sites</a>
</div>
</div>
<!-- Social Bookmarks END -->
<script type="text/javascript">$$('div.d103').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); </script>]]></content:encoded>
			<wfw:commentRss>http://mathtricks.org/real-life-math/bad-math/excel-rounding/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
