<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Apple Flunks First Grade Math</title>
	<atom:link href="http://www.mikeindustries.com/blog/archive/2004/08/apple-calculator/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fapple-calculator&amp;seed_title=Apple+Flunks+First+Grade+Math</link>
	<description>A running commentary of occasionally interesting things.</description>
	<lastBuildDate>Thu, 18 Mar 2010 14:06:16 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Bob D</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fapple-calculator&amp;seed_title=Apple+Flunks+First+Grade+Math/comment-page-2#comment-41840</link>
		<dc:creator>Bob D</dc:creator>
		<pubDate>Fri, 16 Oct 2009 13:20:26 +0000</pubDate>
		<guid isPermaLink="false">#comment-41840</guid>
		<description>Can anyone tell me how to do the following?

Using Calculator, with input a real number between 0 and 1 for example, how do I get the angle for which the sin equals that real number?

That is, how do I enter arcsin  (or any other arc-trig) to determine the angle? Thanks.

Bob</description>
		<content:encoded><![CDATA[<p>Can anyone tell me how to do the following?</p>
<p>Using Calculator, with input a real number between 0 and 1 for example, how do I get the angle for which the sin equals that real number?</p>
<p>That is, how do I enter arcsin  (or any other arc-trig) to determine the angle? Thanks.</p>
<p>Bob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David K</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fapple-calculator&amp;seed_title=Apple+Flunks+First+Grade+Math/comment-page-2#comment-34313</link>
		<dc:creator>David K</dc:creator>
		<pubDate>Fri, 26 Sep 2008 18:17:08 +0000</pubDate>
		<guid isPermaLink="false">#comment-34313</guid>
		<description>Here is the problem I am having with the Apple Calculator. I can&#039;t get it to display numbers in the format I would like. 

Here is what its is doing if calculate 13.5 / 1539 it shows me 8.7719e-03

While that is technically a correct answer I think I want tit to display it in the format I have become accustomed to like .0087719

What do I need to do to get it from this format 8.7719e-03 to this format .0087719

Right now I have OSX 10.4.11, Calculator version 4.0.6  but I have the same problem with Leopard too

David</description>
		<content:encoded><![CDATA[<p>Here is the problem I am having with the Apple Calculator. I can&#8217;t get it to display numbers in the format I would like. </p>
<p>Here is what its is doing if calculate 13.5 / 1539 it shows me 8.7719e-03</p>
<p>While that is technically a correct answer I think I want tit to display it in the format I have become accustomed to like .0087719</p>
<p>What do I need to do to get it from this format 8.7719e-03 to this format .0087719</p>
<p>Right now I have OSX 10.4.11, Calculator version 4.0.6  but I have the same problem with Leopard too</p>
<p>David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sesli</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fapple-calculator&amp;seed_title=Apple+Flunks+First+Grade+Math/comment-page-2#comment-33530</link>
		<dc:creator>sesli</dc:creator>
		<pubDate>Tue, 08 Jul 2008 22:28:08 +0000</pubDate>
		<guid isPermaLink="false">#comment-33530</guid>
		<description>Jeff, you forget one crucial thing: we programmers are lazy. The standard math operations in any language are based on the basic integer and floating point operations as they are</description>
		<content:encoded><![CDATA[<p>Jeff, you forget one crucial thing: we programmers are lazy. The standard math operations in any language are based on the basic integer and floating point operations as they are</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fapple-calculator&amp;seed_title=Apple+Flunks+First+Grade+Math/comment-page-2#comment-33084</link>
		<dc:creator>steve</dc:creator>
		<pubDate>Wed, 28 May 2008 03:29:41 +0000</pubDate>
		<guid isPermaLink="false">#comment-33084</guid>
		<description>On the Mac bug site they wrote:

Additional information

For an advanced discussion of why this happens, see &quot;What Every Computer Scientist Should Know About Floating-Point Arithmetic&quot;

Interesting though that the computer scientists at Apple do not know this, and that they even point out what they should know, but don&#039;t, on their help site.</description>
		<content:encoded><![CDATA[<p>On the Mac bug site they wrote:</p>
<p>Additional information</p>
<p>For an advanced discussion of why this happens, see &#8220;What Every Computer Scientist Should Know About Floating-Point Arithmetic&#8221;</p>
<p>Interesting though that the computer scientists at Apple do not know this, and that they even point out what they should know, but don&#8217;t, on their help site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heike Childs</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fapple-calculator&amp;seed_title=Apple+Flunks+First+Grade+Math/comment-page-2#comment-31520</link>
		<dc:creator>Heike Childs</dc:creator>
		<pubDate>Mon, 17 Dec 2007 00:23:53 +0000</pubDate>
		<guid isPermaLink="false">#comment-31520</guid>
		<description>Today&#039;s calculator version 4.0.6. solved the addition problem of &quot;1938 + 65&quot; to equate 2000. After selection show paper tape and then pushing recalculate it came up with the correct answer 2003. What an embarrassment for Apple&#039;s math team. I&#039;m running the Operating system 10.4.11</description>
		<content:encoded><![CDATA[<p>Today&#8217;s calculator version 4.0.6. solved the addition problem of &#8220;1938 + 65&#8243; to equate 2000. After selection show paper tape and then pushing recalculate it came up with the correct answer 2003. What an embarrassment for Apple&#8217;s math team. I&#8217;m running the Operating system 10.4.11</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bwold</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fapple-calculator&amp;seed_title=Apple+Flunks+First+Grade+Math/comment-page-2#comment-31360</link>
		<dc:creator>bwold</dc:creator>
		<pubDate>Mon, 26 Nov 2007 05:55:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-31360</guid>
		<description>try

  sin 360

(degree mode)

the answer should be zero but the calc shows -2.449293598294706e-16

os x 10.3.9</description>
		<content:encoded><![CDATA[<p>try</p>
<p>  sin 360</p>
<p>(degree mode)</p>
<p>the answer should be zero but the calc shows -2.449293598294706e-16</p>
<p>os x 10.3.9</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Janne Kalliola</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fapple-calculator&amp;seed_title=Apple+Flunks+First+Grade+Math/comment-page-1#comment-482</link>
		<dc:creator>Janne Kalliola</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-482</guid>
		<description>This error is most probably due to the way computers store floating point numbers. As computers do not think with decimals but with binary numbers, these rounding mistakes do happen.

There are exact number storing formats available, but they are much more cumbersome to use and coders of simple applications as calculators do not generally bother.</description>
		<content:encoded><![CDATA[<p>This error is most probably due to the way computers store floating point numbers. As computers do not think with decimals but with binary numbers, these rounding mistakes do happen.</p>
<p>There are exact number storing formats available, but they are much more cumbersome to use and coders of simple applications as calculators do not generally bother.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike D.</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fapple-calculator&amp;seed_title=Apple+Flunks+First+Grade+Math/comment-page-1#comment-483</link>
		<dc:creator>Mike D.</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-483</guid>
		<description>Janne,

Sounds plausible, but that is setting the bar extremely low, don&#039;t you think?  I mean, the bar is pretty much just laying on the ground at that point.

I would think any calculator would use a number-storing format which could produce 100% accurate results on simple two-decimal arithmetic. When I think of rounding errors, I think more of legitimate repeating decimals like the square root of 2 or something.</description>
		<content:encoded><![CDATA[<p>Janne,</p>
<p>Sounds plausible, but that is setting the bar extremely low, don&#8217;t you think?  I mean, the bar is pretty much just laying on the ground at that point.</p>
<p>I would think any calculator would use a number-storing format which could produce 100% accurate results on simple two-decimal arithmetic. When I think of rounding errors, I think more of legitimate repeating decimals like the square root of 2 or something.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaun Inman</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fapple-calculator&amp;seed_title=Apple+Flunks+First+Grade+Math/comment-page-1#comment-484</link>
		<dc:creator>Shaun Inman</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-484</guid>
		<description>Didn&#039;t Netscape&#039;s JavaScript engine have this same problem?</description>
		<content:encoded><![CDATA[<p>Didn&#8217;t Netscape&#8217;s JavaScript engine have this same problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kim</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fapple-calculator&amp;seed_title=Apple+Flunks+First+Grade+Math/comment-page-1#comment-485</link>
		<dc:creator>Kim</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-485</guid>
		<description>Yes, it is to do with floating point precision.

If you want an explanation &lt;a href=&quot;http://docs.sun.com/source/806-3568/ncg_goldberg.html&quot; rel=&quot;nofollow&quot;&gt;check this out&lt;/a&gt;.

It can be solved by using integer math rather than floating point. Windows had the same problem with its calculator, but it was upgraded in XP which fixed the problem.

Oh, and I am really really surprised your software &quot;engineer&quot; did not know this. It is really basic introductory computer science stuff.</description>
		<content:encoded><![CDATA[<p>Yes, it is to do with floating point precision.</p>
<p>If you want an explanation <a href="http://docs.sun.com/source/806-3568/ncg_goldberg.html" rel="nofollow">check this out</a>.</p>
<p>It can be solved by using integer math rather than floating point. Windows had the same problem with its calculator, but it was upgraded in XP which fixed the problem.</p>
<p>Oh, and I am really really surprised your software &#8220;engineer&#8221; did not know this. It is really basic introductory computer science stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AkaXakA Watson</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fapple-calculator&amp;seed_title=Apple+Flunks+First+Grade+Math/comment-page-1#comment-486</link>
		<dc:creator>AkaXakA Watson</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-486</guid>
		<description>Thing is, if even this math is wrong, how can we trust the rest?</description>
		<content:encoded><![CDATA[<p>Thing is, if even this math is wrong, how can we trust the rest?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Schontzler</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fapple-calculator&amp;seed_title=Apple+Flunks+First+Grade+Math/comment-page-1#comment-487</link>
		<dc:creator>David Schontzler</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-487</guid>
		<description>Sounds like someone needs a new principal software engineer. I find it hard that he doesn&#039;t know much about floating point arithmetic operations.

And &quot;precision&quot; isn&#039;t a misnomer at all.</description>
		<content:encoded><![CDATA[<p>Sounds like someone needs a new principal software engineer. I find it hard that he doesn&#8217;t know much about floating point arithmetic operations.</p>
<p>And &#8220;precision&#8221; isn&#8217;t a misnomer at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doc Griffin</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fapple-calculator&amp;seed_title=Apple+Flunks+First+Grade+Math/comment-page-1#comment-488</link>
		<dc:creator>Doc Griffin</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-488</guid>
		<description>This situation is not limited to the Macintosh calculator program. It occurs on any system using floating point precision, including handheld calculators. The culprit here is the number 0.1. A perfectly straightforward decimal number, in binary it has an infinite repeating representation. In base two floating-point arithmetic, the number 0.1 lies strictly between two floating-point numbers and is exactly representable by neither of them.</description>
		<content:encoded><![CDATA[<p>This situation is not limited to the Macintosh calculator program. It occurs on any system using floating point precision, including handheld calculators. The culprit here is the number 0.1. A perfectly straightforward decimal number, in binary it has an infinite repeating representation. In base two floating-point arithmetic, the number 0.1 lies strictly between two floating-point numbers and is exactly representable by neither of them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike D.</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fapple-calculator&amp;seed_title=Apple+Flunks+First+Grade+Math/comment-page-1#comment-489</link>
		<dc:creator>Mike D.</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-489</guid>
		<description>Shaun,

Funny you should mention Netscape, because I actually thought of their frame sizing algorithm when I was thinking about this bug.  I know it&#039;s probably unrelated but it just reminded me of it.  Basically, if you are using a frameset and you specify your frame dimensions in pixels, Netscape (at least up through version 4) would convert your pixels to a window size percentage, and then convert it back to pixels resulting in rounding errors all the time.

Kim and David,

Thanks for the Sun link. It looks like it explains floating points pretty thoroughly, but sheesh, 105 pages of engineer-speak. All I know is that even if this problem is legitimate, these errors should never make it to the consumer.  As for our principal software engineer, I&#039;m pretty sure his astonishment had more to do with not knowing how a calculator which had been around since 1984 could suddenly have this bug, as opposed to not knowing what floating point operations are. I mean, what could have possibly changed in Panther that would have introduced such a bug in the &lt;em&gt;calculator&lt;/em&gt;? That is more the question...</description>
		<content:encoded><![CDATA[<p>Shaun,</p>
<p>Funny you should mention Netscape, because I actually thought of their frame sizing algorithm when I was thinking about this bug.  I know it&#8217;s probably unrelated but it just reminded me of it.  Basically, if you are using a frameset and you specify your frame dimensions in pixels, Netscape (at least up through version 4) would convert your pixels to a window size percentage, and then convert it back to pixels resulting in rounding errors all the time.</p>
<p>Kim and David,</p>
<p>Thanks for the Sun link. It looks like it explains floating points pretty thoroughly, but sheesh, 105 pages of engineer-speak. All I know is that even if this problem is legitimate, these errors should never make it to the consumer.  As for our principal software engineer, I&#8217;m pretty sure his astonishment had more to do with not knowing how a calculator which had been around since 1984 could suddenly have this bug, as opposed to not knowing what floating point operations are. I mean, what could have possibly changed in Panther that would have introduced such a bug in the <em>calculator</em>? That is more the question&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff O</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F08%2Fapple-calculator&amp;seed_title=Apple+Flunks+First+Grade+Math/comment-page-1#comment-490</link>
		<dc:creator>Jeff O</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-490</guid>
		<description>While it may be correct that the repeating decimal representation of a floating point number is more &quot;accurate&quot; in the sense that it&#039;s a more accurate representation of the internal number used in the calculator program, that strikes me as answering the wrong question. The job of the calculator is not to expose its messy internals to the world, but do the best job possible in reflecting the user&#039;s intent, recognizing that design compromises are necessary.

In this case, the user entered two numbers with specified precision of 10^-2. The computer then spit out a number with an apparent precision of 10^-12. All the digits beyond .01 are made up. Nonsense. Artifacts. Subtracting (or adding) two numbers does not increase the number of fractional digits that are relevant (note that dividing does), so displaying those digits is incorrect. When presented with two numbers like the ones shown and asked to perform an addition or subtraction operation, the calculator should only show the answer with the same degree of precision. (Although a truly comprehensive floating point solution would also indicate the degree of error in the calculation -- i.e., 9533.14 +/- 1x10^-14)

My closest analogy is in high school chemistry class when we were asked to weigh samples and perform calculations using the results. The calculations would be good to +/- 2 digits of accuracy (tolerance of about 1%), but my handy pocket calculator could spit out 8 digit calculation results. I&#039;d hand in the paper with all those digits neatly written out at which point the teacher would patiently explain that all the digits past the first two or three were useless and not worth the ink in which they were written.

I can&#039;t imagine it would add a great deal of code to have the calculator keep track of the number of significant digits entered and use it in calculating the number of significant digits to display on output.</description>
		<content:encoded><![CDATA[<p>While it may be correct that the repeating decimal representation of a floating point number is more &#8220;accurate&#8221; in the sense that it&#8217;s a more accurate representation of the internal number used in the calculator program, that strikes me as answering the wrong question. The job of the calculator is not to expose its messy internals to the world, but do the best job possible in reflecting the user&#8217;s intent, recognizing that design compromises are necessary.</p>
<p>In this case, the user entered two numbers with specified precision of 10^-2. The computer then spit out a number with an apparent precision of 10^-12. All the digits beyond .01 are made up. Nonsense. Artifacts. Subtracting (or adding) two numbers does not increase the number of fractional digits that are relevant (note that dividing does), so displaying those digits is incorrect. When presented with two numbers like the ones shown and asked to perform an addition or subtraction operation, the calculator should only show the answer with the same degree of precision. (Although a truly comprehensive floating point solution would also indicate the degree of error in the calculation &#8212; i.e., 9533.14 +/- 1&#215;10^-14)</p>
<p>My closest analogy is in high school chemistry class when we were asked to weigh samples and perform calculations using the results. The calculations would be good to +/- 2 digits of accuracy (tolerance of about 1%), but my handy pocket calculator could spit out 8 digit calculation results. I&#8217;d hand in the paper with all those digits neatly written out at which point the teacher would patiently explain that all the digits past the first two or three were useless and not worth the ink in which they were written.</p>
<p>I can&#8217;t imagine it would add a great deal of code to have the calculator keep track of the number of significant digits entered and use it in calculating the number of significant digits to display on output.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
