<?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>squareCircleZ</title>
	<atom:link href="http://www.squarecirclez.com/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.squarecirclez.com/blog</link>
	<description>Mathematics, learning, computing, travel - and whatever...</description>
	<lastBuildDate>Tue, 09 Feb 2010 08:51:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Today is &#8220;e&#8221; day</title>
		<link>http://www.squarecirclez.com/blog/today-is-e-day/4133</link>
		<comments>http://www.squarecirclez.com/blog/today-is-e-day/4133#comments</comments>
		<pubDate>Sun, 07 Feb 2010 09:31:30 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=4133</guid>
		<description><![CDATA[The number <i>e</i> is an important number in math. It arises in many diverse problems.


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/my-infinitys-bigger-than-yours/739' rel='bookmark' title='Permanent Link: My infinity&#8217;s bigger than yours'>My infinity&#8217;s bigger than yours</a></li>
<li><a href='http://www.squarecirclez.com/blog/dinosaur-mathematics/82' rel='bookmark' title='Permanent Link: Dinosaur Mathematics&#8230;'>Dinosaur Mathematics&#8230;</a></li>
<li><a href='http://www.squarecirclez.com/blog/nursing-entrance-test-for-mathematicians-or-nurses/1342' rel='bookmark' title='Permanent Link: Nursing Entrance Test &#8211; for mathematicians or nurses?'>Nursing Entrance Test &#8211; for mathematicians or nurses?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>&#8220;<i>e</i>&#8221; is one of those amazing numbers that arises naturally in the scheme of things. </p>
<p>(Others include &#8220;pi&#8221; <span style='font-family: "Times New Roman", Times, serif'>&pi;</span> = 3.141592653&#8230;, which is the circumference of any circle divided by its diameter; and &#8220;phi&#8221; &phi; = 1.6180339887&#8230;, which is the so-called &#8220;<a href="http://www.intmath.com/Numbers/mathOfBeauty.php">beauty ratio</a>&#8220;). Both of these numbers are irrational (that is, their decimals go on forever and never repeat).</p>
<p><i>e</i> is also an irrational number and it has value: </p>
<p><i>e</i> = 2.718281828459&#8230;</p>
<p>The number <i>e</i> was &#8220;discovered&#8221; by several mathematicians (Oughtred, Huygens, Jacob Bernoulli, Mercator and Leibniz)  but they didn&#8217;t quite <em>know</em> they had stumbled on it and didn&#8217;t know its significance.</p>
<p>There are some curious properties of <i>e</i>, one of which is that it&#8217;s the limiting value as <i>n</i> &rarr; &infin; of (1 + <sup>1</sup>/<sub><i>n</i></sub>)<sup><i>n</i></sup>.</p>
<p>It can also be found by adding the infinite sum: </p>
<p><i>e</i> = 1 + <span style="font-size:1.2em"><sup>1</sup>/<sub>1!</sub></span> + <span style="font-size:1.2em"><sup>1</sup>/<sub>2!</sub></span> + <span style="font-size:1.2em"><sup>1</sup>/<sub>3!</sub></span> + &#8230; </p>
<p>So what is <i>e</i> good for? </p>
<p>It is used extensively in logarithms (which was the only way to do difficult calculations for hundreds of years before calculators came along), exponential growth (of populations, money or <a href="http://www.squarecirclez.com/blog/math-of-drugs-and-bodies-pharmacokinetics/4098">drug concentrations over time</a>) and complex numbers (which were used to design the computer or mobile device you are reading this on).</p>
<p>So happy &#8220;<i>e</i>&#8221; day (February 7th, or 2/7).</p>
<p>[For more information on <i>e</i>, see the <a href="http://www-history.mcs.st-and.ac.uk/HistTopics/e.html">MacTutor</a> history.]</p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/my-infinitys-bigger-than-yours/739' rel='bookmark' title='Permanent Link: My infinity&#8217;s bigger than yours'>My infinity&#8217;s bigger than yours</a></li>
<li><a href='http://www.squarecirclez.com/blog/dinosaur-mathematics/82' rel='bookmark' title='Permanent Link: Dinosaur Mathematics&#8230;'>Dinosaur Mathematics&#8230;</a></li>
<li><a href='http://www.squarecirclez.com/blog/nursing-entrance-test-for-mathematicians-or-nurses/1342' rel='bookmark' title='Permanent Link: Nursing Entrance Test &#8211; for mathematicians or nurses?'>Nursing Entrance Test &#8211; for mathematicians or nurses?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/today-is-e-day/4133/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intmath Newsletter &#8211; Graphs, pharmacokinetics, color blindness</title>
		<link>http://www.squarecirclez.com/blog/intmath-newsletter-graphs-pharmacokinetics-color-blindness/3984</link>
		<comments>http://www.squarecirclez.com/blog/intmath-newsletter-graphs-pharmacokinetics-color-blindness/3984#comments</comments>
		<pubDate>Tue, 02 Feb 2010 13:13:59 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Intmath Newsletters]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=3984</guid>
		<description><![CDATA[<p>  In this Newsletter</p>
<p>1.  Math tip (a) &#8211; Graphs using free math software <br />
  2. Math tip (b) &#8211; Math of drugs and bodies (pharmacokinetics)<br />
  3. Latest IntMath Poll - math applications <br />
  4.  Latest from the Math Blog<br />
  5. Final thoughts</p>


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/intmath-newsletter-drawing-graphs-fear-of-math-tests/2263' rel='bookmark' title='Permanent Link: IntMath Newsletter &#8211; Drawing graphs, fear of math tests'>IntMath Newsletter &#8211; Drawing graphs, fear of math tests</a></li>
<li><a href='http://www.squarecirclez.com/blog/math-and-color-blindness/4063' rel='bookmark' title='Permanent Link: Math and color blindness'>Math and color blindness</a></li>
<li><a href='http://www.squarecirclez.com/blog/math-of-drugs-and-bodies-pharmacokinetics/4098' rel='bookmark' title='Permanent Link: Math of drugs and bodies (pharmacokinetics)'>Math of drugs and bodies (pharmacokinetics)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>02 February 2010</p>
<p>  In this Newsletter</p>
<p>1.  Math tip (a) &ndash; Graphs using free math software <br />
  2. Math tip (b) &ndash; Math of drugs and bodies (pharmacokinetics)<br />
  3. Latest IntMath Poll &#8211; math applications <br />
  4.  Latest from the Math Blog<br />
  5. Final thoughts</p>
<h3>1. Math tip (a) – Graphs using free math software</h3>
<p>The latest IntMath Poll asked readers how they normally draw math graphs.</p>
<p>The response from 1900 users was interesting: </p>
<p><strong>65%</strong> said they use paper; <strong>20%</strong> said graphics calculator and <strong>15%</strong> said computer software.</p>
<p>There are many free online and downloadable graphics programs out there and it surprises me so few people use them to draw their math graphs. </p>
<p>In this tip, I show how to avoid some of the pitfalls of using software to draw graphs. Go to:</p>
<p><span  style="margin-left:50px;"><a href="http://www.squarecirclez.com/blog/graphs-using-free-math-software/4115">Graphs using free math software</a></span></p>
<h3>2. Math tip (b) &ndash; Math of drugs and bodies (pharmacokinetics)</h3>
<p>Several people have written asking me to write an introduction to pharmacokinetics. This is the process where the body absorbs and metabolizes drugs (or food, or any chemical).</p>
<p>The math involves diffrential equations, but I think everyone will find it an interesting read. Go to:</p>
<p><span style="margin-left:50px;"><a href="http://www.squarecirclez.com/blog/math-of-drugs-and-bodies-pharmacokinetics/4098">Math of drugs and bodies (pharmacokinetics)</a></span></p>
<h3>3. Latest IntMath Poll &#8211; Math applications </h3>
<p>One of the most common questions from math students is, &quot;When are we ever going to use this stuff?&quot;</p>
<p>This month&#8217;s IntMath Poll asks readers whether they feel they get a good understanding of how math is applied in the &quot;real world&quot;.</p>
<p>Please add your vote &#8211; you can do so on any page in:</p>
<p><span style="margin-left:50px;"><a href="http://www.intmath.com/">Interactive Mathematics</a>.</span> </p>
<h3>4. Latest from the Math Blog</h3>
<p>A) <a href="http://www.squarecirclez.com/blog/math-and-color-blindness/4063">Math and color blindness</a><br />
  <br />
What&#8217;s the best way to present math so color blind people can read it? Are you color blind? I&#8217;d love to hear your reaction to this article.</p>
<p>B) <a href="http://www.squarecirclez.com/blog/camera-purchase-decisions-how-math-helps/3805">Camera purchase decisions &#8211; how math helps</a> <br />
  A site selling electronics uses math concepts to help customers decide.  </p>
<p>C) <a href="http://www.squarecirclez.com/blog/friday-math-movie-george-dyson-at-the-birth-of-the-computer/3897">Friday math movie &#8211; George Dyson at the birth of the computer</a> <br />
  The story of one of the most important inventions ever.  </p>
<p>D) <a href="http://www.squarecirclez.com/blog/math-graphs-on-the-web-without-images/3298">Math graphs on the Web without images</a> <br />
Here&#8217;s one way to plot good looking graphs on the Web &#8211; use ASCIIsvg. </p>
<h3>5. Final thoughts</h3>
<p><b>a. Practice </b></p>
<p>Everyone tells us to practice math and you will become an expert. Here&#8217;s another take on that advice. </p>
<p><span style="margin-left:50px;">Practice does not make perfect.<br /><span style="margin-left:50px;">Only perfect practice makes perfect. [Vince Lombardi.] </span></p>
<p><b>b. Biodiversity</b></p>
<p>2010 is the International Year of Biodiversity. The rise and decline of populations is a very interesting math topic.</p>
<p>What can you do to study &#8211; and help &#8211; endangered species in your area?</p>
<p>Until next time, enjoy whatever you learn. </p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/intmath-newsletter-drawing-graphs-fear-of-math-tests/2263' rel='bookmark' title='Permanent Link: IntMath Newsletter &#8211; Drawing graphs, fear of math tests'>IntMath Newsletter &#8211; Drawing graphs, fear of math tests</a></li>
<li><a href='http://www.squarecirclez.com/blog/math-and-color-blindness/4063' rel='bookmark' title='Permanent Link: Math and color blindness'>Math and color blindness</a></li>
<li><a href='http://www.squarecirclez.com/blog/math-of-drugs-and-bodies-pharmacokinetics/4098' rel='bookmark' title='Permanent Link: Math of drugs and bodies (pharmacokinetics)'>Math of drugs and bodies (pharmacokinetics)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/intmath-newsletter-graphs-pharmacokinetics-color-blindness/3984/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Graphs using free math software</title>
		<link>http://www.squarecirclez.com/blog/graphs-using-free-math-software/4115</link>
		<comments>http://www.squarecirclez.com/blog/graphs-using-free-math-software/4115#comments</comments>
		<pubDate>Tue, 02 Feb 2010 00:35:00 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Computers & Internet]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=4115</guid>
		<description><![CDATA[Do we still need to graph on paper, or should we use free math graphers instead?


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/free-math-software-downloads/849' rel='bookmark' title='Permanent Link: Free math software downloads'>Free math software downloads</a></li>
<li><a href='http://www.squarecirclez.com/blog/geogebra-math-software-a-review/734' rel='bookmark' title='Permanent Link: GeoGebra math software &#8211; a review'>GeoGebra math software &#8211; a review</a></li>
<li><a href='http://www.squarecirclez.com/blog/grafeq-math-graphing-software/216' rel='bookmark' title='Permanent Link: GrafEq math graphing software'>GrafEq math graphing software</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Being able to sketch graphs on paper is an important skill, but I&#8217;m wondering about the future of this. There are now many free (or cheap) graphing tools available and I am surprised so few students actually use them (or are allowed to use them).</p>
<p>Let&#8217;s have a look at some of the available math graphing tools. </p>
<h4>Graphics Calculators</h4>
<p>Here are the Texas Instruments TI-83 (left) and Hewlett-Packard HP 40gs (right) calculators. </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/TI-83.jpg" alt="TI-83 calculator" width="127" height="257" /> <img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/HP.jpg" alt="HP calculator" width="127" height="257" /></p>
<p>Graphics calculators are handy, but the screen size is small and there is usually no scale on the axes. Cost is often prohibitive, at around US$100. </p>
<h4>Online Graphers</h4>
<p>Here&#8217;s a few places where you can graph your curve &#8211; for free! </p>
<p>The first one is on IntMath.com, and uses Scalable Vector Graphics (you need Firefox browser, or a plugin for IE).</p>
<ul>
<li><a href="http://www.intmath.com/Functions-and-graphs/graphs-using-svg.php">Plot your own SVG Math Graphs</a> </li>
</ul>
<p>The following are also free offerings. They are either Flash or Java applets. </p>
<ul>
<li><a href="http://www.wolframalpha.com/">Wolfram|Alpha</a></li>
<li><a href="http://www.freemathhelp.com/equation-grapher.html">Flash Equation Grapher</a> </li>
<li><a href="http://graphsketch.com/">GraphSketch.com</a></li>
<li><a href="http://www.coolmath.com/graphit/">GraphApplet</a> (warning &#8211; red text on a black background) </li>
<li><a href="http://www.calculateforfree.com/graph.html">GCalc</a></li>
</ul>
<h4>Computer Applications</h4>
<p>Here are some of my favorites. In each case you need to download and install the software. </p>
<ul>
<li><a href="http://www.geogebra.org/cms/">GeoGebra</a> (Free. I wrote a <a href="http://www.squarecirclez.com/blog/geogebra-math-software-a-review/734">review of GeoGebra</a> which shows how to get started with it.)</li>
<li><a href="http://download.cnet.com/Graph/3000-2053_4-10063417.html?tag=mncol">Graph 4.3</a> (Free. Small download, from cnet.com)</li>
<li><a href="http://www.mackichan.com/index.html?products/snb.html">Scientific Notebook</a> (US$90, but does much more than a graphics calculator) </li>
</ul>
<h3>Some problems with using graphics software </h3>
<p>If you don&#8217;t have a good idea of what a function should look like before your use a graphics package, you can have all sorts of problems.</p>
<p>Here&#8217;s an example of a function which catches out the unaware.</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/30overx-2.gif" alt="30/(x - 2)" width="86" height="38" /> </p>
<p>Let&#8217;s graph it on Geogebra. </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/geogebra-1.gif" alt="Geogebra 1" width="195" height="179" /></p>
<p>Hmmm &#8211; it appears to be empty. Is there an error? What&#8217;s going on?</p>
<p>We <strong>zoom out</strong> a few times and start to see 2 curves. Once again, is there a mistake? Why 2 curves? </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/geogebra-3.gif" alt="zoomed out" width="327" height="322" /> </p>
<p>I zoomed out because I had a good idea in my head what the graph should look like. Since I couldn&#8217;t see either of the 2 arms of this curve, and because of the 30 in the denominator, I knew I had to zoom out. </p>
<p>If I left my graph at that, I would still not have a good idea of what the function looks like. I have not chosen a view that shows the crucial features of this graph. </p>
<p>The <strong>default view</strong> in Geogebra was too close to the origin (0, 0) to see any of the curve. </p>
<p>Let&#8217;s have another go, this time using Scientific Notebook. This is what I get when I try to graph the curve. </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/SNB-1.gif" alt="SNB" width="317" height="229" /></p>
<p>I get a vertical line passing through 2 on the <em>x</em>-axis. But notice the scale on the <em>y</em>-axis. The number &quot;4e+09&quot; actually means 4 &times; 10<sup>9</sup> or 4 billion. So Scientific Notebook recognizes that there are very large values of <em>y</em> involved in this function, and has shown us the limits of its internal coding.</p>
<p>This time if we <strong>zoom in</strong>,  we can start to see the graph appearing as before. But I need to <strong>know</strong> to zoom in, otherwise I would miss it altogether. </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/SNB-2.gif" alt="SNB-2" width="329" height="236" /></p>
<p>What was that vertical line that appeared before? Was it a mistake? Why did it disappear when we zoomed in?</p>
<p>Next, we use my <a href="http://www.intmath.com/Functions-and-graphs/graphs-using-svg.php">SVG Grapher</a>. It&#8217;s similar to Geogebra in that its default view misses the curves, but is also similar to Scientific Notebook in that it shows a vertical line through 2 on the <em>x</em>-axis.</p>
<p>When we zoom out a bit, this is what we get. </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/SVG.gif" alt="SVG" width="350" height="287" /> </p>
<p>We are still not showing all the vital features of the graph, and that vertical line is still there. What&#8217;s that about?</p>
<p>Next, I tried the  Flash Math Grapher. Once again I needed to do some zooming. The <em>x</em>- and <em>y</em>- scales are strange (multiples of 13.01??, and is that the <em>x</em>-axis or the line <em>y</em> = -2.98?) , but at least I can get a pretty good view. </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/flash-math-grapher.gif" alt="Flash Math Grapher" width="428" height="352" /></p>
<p>Next, let&#8217;s call in the big guns. <a href="http://www.wolframalpha.com/">Wolfram|Alpha</a> gives us the following 2 graphs when we put our function in their search box (and they give us a lot more information about the function).</p>
<p>This time we get intelligent graphs that have appropriate <em>x</em>- and <em>y</em>- scales and actually show the curves. Note the first one does not have a vertical line through 2, but the second one does. Why? </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/wolfram.gif" alt="Wolfram" width="234" height="300" /></p>
<h3>That vertical line through <em>x</em> = 2</h3>
<p>When the software draws the graph, it chooses regularly-spaced <em>x</em>-values and substitutes them into the function, plots the resulting dots and joins them.</p>
<p>In the above examples that have a vertical line, it means the software has chosen a value just slightly less than 2 (which will give a very small, negative value for <em>y</em>) and another one just slightly more than 2 (which gives a very large positive value for <em>y</em>).</p>
<p>Here&#8217;s an exaggerated version of what it&#8217;s doing (using only a very few data points joined by straight lines).</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/geogebra-5.gif" alt="exaggerated" width="456" height="286" /></p>
<p>If the <em>x</em>-value chosen is exactly 2, the software will normally just skip that value (since it will return a &quot;division by 0&quot; error). The (almost) vertical line should not be included in the graph, since we cannot have <em>x</em> = 2 (this function is undefined for <em>x</em> = 2 since the bottom of the fraction would be zero). </p>
<p>This gap in the graph is called a <strong>discontinuity</strong>. It should be a gap &#8211; not joined by a line as above. </p>
<p>Some software handles this situation gracefully (like the Wolfram|Alpha example) while in others, you need to either understand why the vertical line is there, or in some cases, you can elect to include discontinuities or not. </p>
<h3>Best answer</h3>
<p>Here&#8217;s probably the best way to display the graph of this function.</p>
<p>Our graph has 2 <strong>asymptotes</strong>. When a curve gets closer and closer to a line but does not touch it, that line is called an <strong>asymptote</strong></p>
<p>The first asymptote is the <em>x</em>-axis and the other is the vertical line, <em>x</em> = 2, which I drew using a dashed line of a different color (since it is not part of the graph). </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/geogebra-4.gif" alt="final answer" width="479" height="466" /> </p>
<p>I have shown the 2 asymptotes clearly and I have also labeled the <em>x</em>- and <em>y</em>-axes.</p>
<p>Here&#8217;s the function again for convenience.</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/30overx-2.gif" alt="30/(x - 2)" width="86" height="38" /></p>
<p>I knew the graph was going to involve asymptotes since the <em>x</em>-variable is in the denominator (and we can&#8217;t have 0 in the denominator) and also considering when <em>x</em> gets really big, the value of the function will be really small.  </p>
<p>If I didn&#8217;t know this (from graphing many of them on paper), I would have made a mess of graphing my function on a computer. </p>
<h3>Graphing software and the future</h3>
<p>Will graphing software change what we do in classrooms? Should it? Is it really necessary to sketch graphs on paper still? </p>
<p>If you can draw a quick sketch of a function on paper, it certainly helps your understanding for many types of math problems. The conclusion from above is that it is certainly worthwhile to have a good sense of what a graph should look like before graphing it using software, so we can manipulate the settings to show the graph properly.</p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/free-math-software-downloads/849' rel='bookmark' title='Permanent Link: Free math software downloads'>Free math software downloads</a></li>
<li><a href='http://www.squarecirclez.com/blog/geogebra-math-software-a-review/734' rel='bookmark' title='Permanent Link: GeoGebra math software &#8211; a review'>GeoGebra math software &#8211; a review</a></li>
<li><a href='http://www.squarecirclez.com/blog/grafeq-math-graphing-software/216' rel='bookmark' title='Permanent Link: GrafEq math graphing software'>GrafEq math graphing software</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/graphs-using-free-math-software/4115/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Math of drugs and bodies (pharmacokinetics)</title>
		<link>http://www.squarecirclez.com/blog/math-of-drugs-and-bodies-pharmacokinetics/4098</link>
		<comments>http://www.squarecirclez.com/blog/math-of-drugs-and-bodies-pharmacokinetics/4098#comments</comments>
		<pubDate>Mon, 01 Feb 2010 00:30:57 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=4098</guid>
		<description><![CDATA[Why do doctors say "take 1 tablet every 3 hours"? How long does it take a drug to be absorbed?


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/intmath-newsletter-graphs-pharmacokinetics-color-blindness/3984' rel='bookmark' title='Permanent Link: Intmath Newsletter &#8211; Graphs, pharmacokinetics, color blindness'>Intmath Newsletter &#8211; Graphs, pharmacokinetics, color blindness</a></li>
<li><a href='http://www.squarecirclez.com/blog/the-melting-arctic-a-disturbing-application-of-math/1030' rel='bookmark' title='Permanent Link: The melting Arctic &#8211; a disturbing application of math'>The melting Arctic &#8211; a disturbing application of math</a></li>
<li><a href='http://www.squarecirclez.com/blog/today-is-e-day/4133' rel='bookmark' title='Permanent Link: Today is &#8220;e&#8221; day'>Today is &#8220;e&#8221; day</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Pharmacokinetics is the process whereby substances (like food and drugs) are ingested into the body (via mouth or needles) and processed. We&#8217;ll concentrate on drugs. </p>
<div class="imgRt" style="width:155px"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/syringe.jpg" alt="syringe" width="150" height="226" /><br />
Preparing a syringe.</div>
<p>The process of pharmacokinetics has 5 steps: </p>
<ul>
<li> <strong>Liberation</strong> &#8211; the drug is released from the formulation.</li>
<li><strong>Absorption</strong> &#8211; the drug enters the body.</li>
<li><strong>Distribution</strong> &#8211; the drug disperses throughout the body</li>
<li><strong>Metabolism</strong> &#8211; the drug is broken down by the body.</li>
<li><strong>Excretion</strong> &#8211; the drug is eliminated from the body.
  </li>
</ul>
<p>Of course, each drug needs to act on the body in a different way. Some drugs need to be absorbed quickly (like nitroglycerin if we are having a heart attack) and preferably eliminated quickly (otherwise toxins build up in the blood). For other drugs, we want slow absorption so we get maximum benefit and don&#8217;t lose a lot of it from excretion.</p>
<p>So when your doctor prescribes (say) &quot;take 2 tablets every meal time&quot;, this is based on the desirable levels of drug concentration and known levels of distribution, metabolism and excretion in the body. </p>
<h3>What&#8217;s the math?</h3>
<p>When the nurse first administers the drug, the concentration of the drug in the blood stream is zero. As the drug moves around the body and is metabolized, the concentration of the drug increases. </p>
<p>There comes a point when the concentration no longer increases and begins to decline. This is the period when the drug is fully distributed and metabolism is taking place. As time goes on, the drug concentration gets less and less and falls below a certain effective amount. Time to take some more pills.</p>
<p>We can model such a situation mathematically with a <a href="http://www.intmath.com/Differential-equations/DEs-intro.php">differential equation</a>. It has 2 parts &#8211; an absorption part and an elimination part. At first, absorption (increasing drug concentration) takes precedence and over time, elimination (decreasing concentration) is the most important element.</p>
<p>We have the following variables:</p>
<p><em>D = </em>drug dose given </p>
<p><em>V </em>= volume distributed in the body </p>
<p><em>C</em> = concentration of the drug at time <em>t</em></p>
<p><em>F</em> = fraction of dose which has been absorbed (also called bioavailability)</p>
<p><em>A = </em>absorption rate constant</p>
<p><em>E</em> = elimination rate constant </p>
<p><em>t</em> = time </p>
<p><strong>Absorption part: </strong>This depends on the amount of the drug given, the fraction that has been absorbed and the absorption rate constant. It decreases as time goes on. The expression for absorption is given by: </p>
<p><em>A &times; F &times; D &times; e<sup>-At</sup></em> </p>
<p><strong>Elimination part:</strong> The elimination dynamic is affected by the elimination constant, the volume distributed in the body and the concentration left of the drug. The expression for this part is:</p>
<p><em>E </em> <em>&times; V &times; C</em></p>
<p>For our model, we need to <strong>subtract</strong> the elimination part from the absorption part (since the absorption part increases the concentration of drug and the elimination part decreases it). Our differential equation is as follows:</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/DE-0.gif" alt="DE-0" width="214" height="38" /></p>
<p>We now substitute some typical values for our variables (without units to keep things simple. Note <i>C</i> is a variable, the one for which we seek an expression in <em>t</em>.) </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/DE-1.gif" alt="DE-1" width="354" height="73" /></p>
<p>Solving this differential equation (using a computer algebra system), gives the concentration at time <em>t</em> as:</p>
<p><em>C</em>(<em>t</em>) = 533.3(<em>e<sup>&minus;</sup></em><sup>0.4</sup><em><sup><em>t</em></sup> &minus; e</em><sup>&minus;0.5<em>t</em></sup>) </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/pharmacokinetics.gif" alt="pharmacokinetics" width="390" height="259" /></p>
<p>We can see in the graph the portion where the concentration increases (up to around <em>t</em> = 3) and levels off. The concentration then decreases to almost zero at <em>t</em> = 24. </p>
<p>Pharmacokinetics is yet another interesting &#8220;real life&#8221; application of math.</p>
<p>[Based on: <a href="http://www.boomer.org/c/p1/index.html">A First Course in Pharmacokinetics</a>.<br />
  Photo credit: <a href="http://www.flickr.com/photos/jkgroove/191905357/">Syringe</a>] </p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/intmath-newsletter-graphs-pharmacokinetics-color-blindness/3984' rel='bookmark' title='Permanent Link: Intmath Newsletter &#8211; Graphs, pharmacokinetics, color blindness'>Intmath Newsletter &#8211; Graphs, pharmacokinetics, color blindness</a></li>
<li><a href='http://www.squarecirclez.com/blog/the-melting-arctic-a-disturbing-application-of-math/1030' rel='bookmark' title='Permanent Link: The melting Arctic &#8211; a disturbing application of math'>The melting Arctic &#8211; a disturbing application of math</a></li>
<li><a href='http://www.squarecirclez.com/blog/today-is-e-day/4133' rel='bookmark' title='Permanent Link: Today is &#8220;e&#8221; day'>Today is &#8220;e&#8221; day</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/math-of-drugs-and-bodies-pharmacokinetics/4098/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Math and color blindness</title>
		<link>http://www.squarecirclez.com/blog/math-and-color-blindness/4063</link>
		<comments>http://www.squarecirclez.com/blog/math-and-color-blindness/4063#comments</comments>
		<pubDate>Mon, 25 Jan 2010 00:19:14 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Computers & Internet]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=4063</guid>
		<description><![CDATA[What's the best way to present math so color blind people can read it?


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/intmath-newsletter-graphs-pharmacokinetics-color-blindness/3984' rel='bookmark' title='Permanent Link: Intmath Newsletter &#8211; Graphs, pharmacokinetics, color blindness'>Intmath Newsletter &#8211; Graphs, pharmacokinetics, color blindness</a></li>
<li><a href='http://www.squarecirclez.com/blog/making-math-accessible-for-the-blind/2946' rel='bookmark' title='Permanent Link: Making math accessible for the blind'>Making math accessible for the blind</a></li>
<li><a href='http://www.squarecirclez.com/blog/friday-math-movie-mixed-feelings-vision-through-the-tongue/1267' rel='bookmark' title='Permanent Link: Friday Math Movie &#8211; Mixed Feelings (Vision through the tongue)'>Friday Math Movie &#8211; Mixed Feelings (Vision through the tongue)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Color blindness is caused by a problem in the red, green or blue cones of the retina and is most often genetic in origin. It affects males almost exclusively. </p>
<p>Color blindness  is not evenly spread across different ethnic groups. Around 8% of Caucasian men, 5% of Asians, and 4% of African  males  have the most common type of color blindness &mdash; the inability to tell the difference between red and green.</p>
<p>As an example of the difficulties faced by those who cannot distinguish red and green, here is how a red apple is perceived by a <strong>deuteranope</strong> (someone with the most common red-green color blindness) .</p>
<div class="imgCenter"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/red-apple2.jpg" alt="red apple" width="200" height="194" /> <img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/red-apple-deuteranope2.jpg" alt="red apple deuteranope" width="200" height="194" /><br />
Red apple as perceived by a normally sited person (left) and by a color-blind person (right). </div>
<p>Now we see how a green apple is perceived by a  deuteranope.</p>
<div class="imgCenter"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/green-apple2.jpg" alt="green apple" width="200" height="194" /> <img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/green-apple-deuteranope2.jpg" alt="green apple deuteranope" width="200" height="194" /><br />
Green apple (left) and as seen by a deuteranope (right). </div>
<p>As you can see, there is very little difference in the perceived color for the 2 apples and therefore  it must be quite a challenge to go grocery shopping. We distinguish many vegetables (including the quality of those vegetables) by their color. </p>
<p>Note that color blind people see <strong>some</strong> color (it&#8217;s not blank or invisible), but they don&#8217;t distinguish green and red. </p>
<h3>Check how color blind people see your images and text</h3>
<p>I obtained the apple images on the right above using the excellent facility at <a href="http://vischeck.com/vischeck/">VisCheck</a>. You can upload any image and see how it will look to people with different kinds of color blindness. </p>
<h3>Colors of the Rainbow</h3>
<p>Here are the rainbow colors, with the way a color blind person would see them.</p>
<div class="imgCenter">
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/rainbow.jpg" alt="rainbow" width="414" height="287" /> <br />
Colors of the rainbow &#8211; normal (top) and as a color blind person sees it (bottom)</p>
</div>
<h3>The Ishihara Color Test</h3>
<p>Shinobu Ishihara published tests for color blindness in 1917. They consist of circles with numbers embedded using different colors, as follows. </p>
<div class="imgCenter">
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/120px-Ishihara_1.png" alt="Color test 12" width="120" height="120" /> <img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/120px-Ishihara_11.png" alt="color test 6" width="120" height="120" /> <img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/120px-Ishihara_19.png" alt="color test 2" width="120" height="120" /> <img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/120px-Ishihara_23.png" alt="color test 42" width="120" height="120" /><br />
Ishihara Color Test Plates</p>
</div>
<p><strong>Note: </strong>If you have trouble seeing numbers in the above plates, it does <strong>not</strong> necessarily mean you are color blind. Each computer monitor has different settings and capabilities. Color blindness tests should only be done using paper print-outs.  </p>
<h3>Color blindness and learning math</h3>
<p>Let&#8217;s now look at the implications of color blindness for math students.  </p>
<p>Here&#8217;s a pie chart that could be used as part of a statistics lesson. The colors are unsaturated, making it difficult to read. </p>
<div class="imgCenter">
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/pie-chart2.gif" alt="pie chart" width="300" height="211" /><br />
Pie chart original </p>
</div>
<p>And now for the version that a  color blind person sees.  </p>
<div class="imgCenter">
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/pie-chart-deuteranope2.gif" alt="pie chart deuteranope" width="300" height="212" /><br />
Pie chart as seen by a deuteranope. </p>
</div>
<p>What if the teacher asked a question like &quot;What percent is represented by the orange sector?&quot; The brownish colors are almost indistinguishable and this would make interpretation of this chart quite difficult. </p>
<p>Notice that the order of the items in the legend does not follow the order of the sectors of the pie chart, so there is a double whammy for anyone trying to figure it out. </p>
<h3>What colors should we use?</h3>
<p>According to Okabe and Ito in the very useful article <a href="http://jfly.iam.u-tokyo.ac.jp/color/">Color Universal Design</a>, the following are <strong>good practices</strong> to follow when developing materials. </p>
<blockquote>
<h4>Principles of Color Universal Design</h4>
<ol>
<li>Choose color schemes that can be easily identified by people with all types of color vision.</li>
<li>Use  a combination of different shapes, positions, line types and coloring patterns, to ensure that information is conveyed to all users including those who cannot distinguish differences in color.</li>
<li>Clearly state color names where users are expected to use those names in communication.</li>
</ol>
</blockquote>
<p>No matter what the background color of your presentation, Okabe and Ito advise to <strong>avoid red, orange, yellow, yellow-green and green</strong>, if such colors are important for distinguishing information. That last bit is important &#8211; you don&#8217;t need to avoid these colors if they enhance the visual appeal for normally sighted people. </p>
<p>A lot of presenters use color for <strong>emphasis</strong>, but it can be lost on some viewers.</p>
<p>For example, the following could possibly look all black and so the emphasis is lost.</p>
<blockquote>
<p><strong><span style="color:#d00000;">Dark red characters</span> amongst black text</strong></p>
</blockquote>
<p>The following at least will be clearer. </p>
<blockquote>
<p><strong><span style="color:blue;">Dark blue characters </span>amongst black text</strong></p>
</blockquote>
<p>But please don&#8217;t use blue too often on Web pages, since this is traditionally the color for <strong>links</strong> and should be avoided.</p>
<h4>Back to the Pie Chart  </h4>
<p>Let&#8217;s go back to our pie chart and try to improve it. Here&#8217;s the chart again with better, more saturated colors. I have used <strong>magenta</strong> (equal amounts of blue and red, or #ff00ff in color hex) for one of the sectors. Note it looks light blue to a color blind person. Also observe how dark red (#c00000) and light green (#00ff00) appear. </p>
<div class="imgCenter"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/pie-chart_fixed.gif" alt="pie chart - fixed" width="229" height="211" /> <img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/pie-chart_fixed_deuteranope.gif" alt="pie chart fixed deuteranope" width="231" height="211" /><br />
Pie chart with saturated colors (left) and how it appears for a color blind person (right). </div>
<p>It&#8217;s better, but far from perfect.</p>
<p>The legend (the dots on the right of each image) adds extra cognitive load for everyone. If we <strong>label</strong> each sector as follows, it is easier to read and understand.</p>
<div class="imgCenter">
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/pie-chart2-no-legend.gif" alt="no legend" width="308" height="241" /></p>
<p>Easier to follow pie chart </p>
</div>
<h3>Line Graphs</h3>
<p>Here&#8217;s a graph from a page I wrote illustrating <a href="http://www.intmath.com/Vectors/vector-addition.php">Vector Addition</a>. (We&#8217;re adding 2 vectors, <strong>A</strong> and <strong>B</strong>, and the resultant vector is <strong>R</strong>.)</p>
<div class="imgCenter">
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/vectors.gif" alt="vectors" width="408" height="316" /><br />
Adding vectors (original)</p>
</div>
<p>I chose primary colors (blue and green for <strong>A</strong> and <strong>B</strong>), and &quot;red&quot; for the &quot;resultant&quot; (<strong>R</strong>), which is fairly commonplace. But look how disastrous it is for a color blind person:</p>
<div class="imgCenter">
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/vectors-deuteranope.jpg" alt="vectors - deuteranope" width="400" height="281" /><br />
Adding vectors as seen by color blind person </p>
</div>
<p>In this case, the vectors are clearly labeled, but the colors do not help at all.</p>
<p>I changed the script to replace green with black. I&#8217;m still using  red (in the original) for the resultant vector, but I think you&#8217;ll agree all colors are distinguishable now.</p>
<div class="imgCenter">
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/vector-fixed-deuteranope.jpg" alt="vector fixed deuteranops" width="346" height="299" /><br />
Blue, black and red vector arrows, as seen by a color blind person. </p>
</div>
<h3>Redundant Coding</h3>
<p>Here&#8217;s another kind of line graph that&#8217;s found in statistics. It shows a projection of the population by age for the USA.</p>
<div class="imgCenter">
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/population.jpg" alt="population" width="400" height="371" /><br />
Projected numbers of people per age cohort, USA. (Original) </p>
</div>
<p>Here&#8217;s how it looks to a color blind person. </p>
<div class="imgCenter">
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/population-deuteranope.jpg" alt="population" width="400" height="371" /> <br />
Line chart &#8211; as seen by a deuteranope. </p>
</div>
<p>As we&#8217;ve seen in the other examples, it&#8217;s better to <strong>label</strong> the lines in a chart (rather than use a legend), and to use different patterns (square, triangle, cross, etc) on each line. This is called <strong>redundant coding</strong>, since we are differentiating the information in more ways than one.</p>
<p>Here&#8217;s a better version of this graph, with redundant coding.</p>
<div class="imgCenter">
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/population-fixed.gif" alt="population fixed" width="404" height="424" /> <br />
Line chart with redundant coding. </p>
</div>
<p>I didn&#8217;t change the colors (since that would have produced limited benefits).</p>
<p>It&#8217;s also best to use <strong>thick lines</strong> when drawing graphs, since thin ones are more difficult for color blind people to see. </p>
<h3>Avoid Certain Color Combinations</h3>
<p>Even normally sighted people have difficulty reading certain color combinations. Particularly on Powerpoint slides, it is irritating trying to read <strong>red</strong> or <strong>dark blue</strong> text on a dark background, something like this:</p>
<blockquote>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/black.gif" alt="black" width="136" height="74" /></p>
</blockquote>
<p>Bad enough for normally sighted people, but disastrous for color blind people, as follows.</p>
<blockquote>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/black-deuteranope.jpg" alt="black background" width="136" height="74" /> </p>
</blockquote>
<p>The usual rules apply for Powerpoint slides &#8211; use <strong>highly contrasting colors</strong> &#8211; the best is black on white. Here&#8217;s the same text in a form which is easier for everyone to read (black on white):</p>
<blockquote>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/white.gif" alt="white" width="104" height="31" /> </p>
</blockquote>
<h3>Conclusion</h3>
<p>We can&#8217;t assume everyone in an educational setting can see things the way we see them (in fact, that&#8217;s almost always the case on many levels, not just color perception!).</p>
<p>Proper labeling of graphs, charts, equations and avoiding indistinguishable colors will certainly help improve readability for all learners &#8211; not just the color blind ones. </p>
<p>I realize now I need to go back and fix a lot of my own graphics so they are more readable.</p>
<p>Don&#8217;t get me wrong &#8211; still use lots of color in your presentations, but keep in mind the needs of those 5% or so of readers who are color blind.</p>
<p><strong>Please comment: </strong>Are you color blind? I&#8217;d love to hear your feedback or corrections on anything I have written here. </p>
<p><strong>Image Credits</strong></p>
<p><a href="http://www.flickr.com/photos/bulinna/">Red apple</a>:  <a rel="license" href="http://creativecommons.org/licenses/by/2.0/">CC BY 2.0</a></p>
<p><a href="http://www.flickr.com/photos/shareski/">Green apple</a>:  <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA 2.0</a></p>
<p><a href="http://en.wikipedia.org/wiki/Ishihara_color_test">Ishihara Plates</a></p>
<p><a href="http://manyeyes.alphaworks.ibm.com/manyeyes/visualizations/40-population-projections-by-age-201">Population Projections</a> </p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/intmath-newsletter-graphs-pharmacokinetics-color-blindness/3984' rel='bookmark' title='Permanent Link: Intmath Newsletter &#8211; Graphs, pharmacokinetics, color blindness'>Intmath Newsletter &#8211; Graphs, pharmacokinetics, color blindness</a></li>
<li><a href='http://www.squarecirclez.com/blog/making-math-accessible-for-the-blind/2946' rel='bookmark' title='Permanent Link: Making math accessible for the blind'>Making math accessible for the blind</a></li>
<li><a href='http://www.squarecirclez.com/blog/friday-math-movie-mixed-feelings-vision-through-the-tongue/1267' rel='bookmark' title='Permanent Link: Friday Math Movie &#8211; Mixed Feelings (Vision through the tongue)'>Friday Math Movie &#8211; Mixed Feelings (Vision through the tongue)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/math-and-color-blindness/4063/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Camera purchase decisions &#8211; how math helps</title>
		<link>http://www.squarecirclez.com/blog/camera-purchase-decisions-how-math-helps/3805</link>
		<comments>http://www.squarecirclez.com/blog/camera-purchase-decisions-how-math-helps/3805#comments</comments>
		<pubDate>Mon, 11 Jan 2010 00:30:27 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Computers & Internet]]></category>
		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=3805</guid>
		<description><![CDATA[A site selling electronics uses math concepts to help customers decide.


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/canon-woes/150' rel='bookmark' title='Permanent Link: Canon woes'>Canon woes</a></li>
<li><a href='http://www.squarecirclez.com/blog/review-of-top-math-sites/1247' rel='bookmark' title='Permanent Link: Review of Top Math Sites'>Review of Top Math Sites</a></li>
<li><a href='http://www.squarecirclez.com/blog/canon-i455-printer/8' rel='bookmark' title='Permanent Link: Canon i455 Printer'>Canon i455 Printer</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the scenario. You&#8217;re ready to buy your next camera and you&#8217;ve been searching around using Google or whatever. </p>
<p>You end up on <a href="http://reviews.cnet.com/digital-cameras/">cnet&#8217;s digital camera reviews</a> or perhaps <a href="http://www.dpreview.com/">dpreview</a>. Both sites give you good information, but after you&#8217;ve spent hours trying to compare makes, models and prices, it becomes overwhelming.</p>
<p>Math to the rescue. </p>
<p>At <a href="http://www.retrevo.com/s/digital+camera?cmpid=flashAd#_h_2">Retrevo</a>, you can see a visual representation (using a familiar 2-coordinate system), comparing price (horizontal axis) and value (vertical axis) for a large range of cameras.</p>
<p>Here&#8217;s a screen shot. The dots represent cameras, and the flags are for the best value cameras (currently a Lumix camera is regarded as best value).</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2009/12/camera-purchase-decisions.gif" alt="camera-purchase-decisions" title="camera-purchase-decisions" width="336" height="400" class="alignnone size-full wp-image-3806" /></p>
<p>So if you want a cheap camera that is great value, choose one in the top left corner. If you&#8217;re going for something classy, avoid the duds (expensive but poor value) in the bottom right quadrant.</p>
<p>Over in the <a href="http://www.retrevo.com/samples/Printer.html">printer section</a>, we see a rather mathematical way of representing the developmental position of a product (this is the Epson Artisan 810 printer, which is &#8220;buzzing&#8221; currently):</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2009/12/buzzing.gif" alt="buzzing" title="buzzing" width="407" height="172" class="alignnone size-full wp-image-3891" /></p>
<p>Apparently the idea is to buy something on the ascendancy, rather than a &#8220;has-been&#8221;.</p>
<p>Expect more of this type of analysis on Web sites, particularly high-traffic ones selling electronics products. </p>
<p>A picture is worth a thousand words.</p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/canon-woes/150' rel='bookmark' title='Permanent Link: Canon woes'>Canon woes</a></li>
<li><a href='http://www.squarecirclez.com/blog/review-of-top-math-sites/1247' rel='bookmark' title='Permanent Link: Review of Top Math Sites'>Review of Top Math Sites</a></li>
<li><a href='http://www.squarecirclez.com/blog/canon-i455-printer/8' rel='bookmark' title='Permanent Link: Canon i455 Printer'>Canon i455 Printer</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/camera-purchase-decisions-how-math-helps/3805/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Friday math movie &#8211; George Dyson at the birth of the computer</title>
		<link>http://www.squarecirclez.com/blog/friday-math-movie-george-dyson-at-the-birth-of-the-computer/3897</link>
		<comments>http://www.squarecirclez.com/blog/friday-math-movie-george-dyson-at-the-birth-of-the-computer/3897#comments</comments>
		<pubDate>Fri, 08 Jan 2010 00:54:46 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Computers & Internet]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=3897</guid>
		<description><![CDATA[<a href="http://www.squarecirclez.com/blog/?p=3897"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2009/12/early-computer.jpg" alt="early-computer" title="early-computer" width="128" height="89" class="imgRt" /></a>The story of one of the most important inventions ever.


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/friday-math-movie-toys-that-make-worlds/3664' rel='bookmark' title='Permanent Link: Friday Math Movie &#8211; Toys that make worlds'>Friday Math Movie &#8211; Toys that make worlds</a></li>
<li><a href='http://www.squarecirclez.com/blog/friday-math-movie-george-bush-fuzzy-math/924' rel='bookmark' title='Permanent Link: Friday Math Movie &#8211; George Bush fuzzy math'>Friday Math Movie &#8211; George Bush fuzzy math</a></li>
<li><a href='http://www.squarecirclez.com/blog/friday-math-movie-the-webs-secret-stories/3670' rel='bookmark' title='Permanent Link: Friday Math Movie &#8211; the Web&#8217;s secret stories'>Friday Math Movie &#8211; the Web&#8217;s secret stories</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This is an interesting overview of the story behind the development of the digital computer, from TED.</p>
<p>Historian and philosopher of science, George Dyson, talks about early computer concepts (including those by mathematician Leibniz), ENIAC (Electronic Numerical Integrator And Computer) in the 1940s, the use of computers to create atomic bombs, the huge frustrations involved in early computers, the mouse and punch cards. </p>
<p>It&#8217;s interesting when he talks about the computer &#8220;evolving&#8221; into a new kind of &#8220;symbio-organism&#8221;.</p>
<p><object width="446" height="326"><param name="movie" value="http://video.ted.com/assets/player/swf/EmbedPlayer.swf"></param><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent"></param><param name="bgColor" value="#ffffff"></param><param name="flashvars" value="vu=http://video.ted.com/talks/dynamic/GeorgeDyson_2003-medium.flv&#038;su=http://images.ted.com/images/ted/tedindex/embed-posters/GeorgeDyson-2003.embed_thumbnail.jpg&#038;vw=432&#038;vh=240&#038;ap=0&#038;ti=278&#038;introDuration=16500&#038;adDuration=4000&#038;postAdDuration=2000&#038;adKeys=talk=george_dyson_at_the_birth_of_the_computer;year=2003;theme=tales_of_invention;theme=technology_history_and_destiny;theme=what_s_next_in_tech;event=TED2003;&#038;preAdTag=tconf.ted/embed;tile=1;sz=512x288;" /><embed src="http://video.ted.com/assets/player/swf/EmbedPlayer.swf" pluginspace="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" bgColor="#ffffff" width="446" height="326" allowFullScreen="true" flashvars="vu=http://video.ted.com/talks/dynamic/GeorgeDyson_2003-medium.flv&#038;su=http://images.ted.com/images/ted/tedindex/embed-posters/GeorgeDyson-2003.embed_thumbnail.jpg&#038;vw=432&#038;vh=240&#038;ap=0&#038;ti=278&#038;introDuration=16500&#038;adDuration=4000&#038;postAdDuration=2000&#038;adKeys=talk=george_dyson_at_the_birth_of_the_computer;year=2003;theme=tales_of_invention;theme=technology_history_and_destiny;theme=what_s_next_in_tech;event=TED2003;"></embed></object></p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/friday-math-movie-toys-that-make-worlds/3664' rel='bookmark' title='Permanent Link: Friday Math Movie &#8211; Toys that make worlds'>Friday Math Movie &#8211; Toys that make worlds</a></li>
<li><a href='http://www.squarecirclez.com/blog/friday-math-movie-george-bush-fuzzy-math/924' rel='bookmark' title='Permanent Link: Friday Math Movie &#8211; George Bush fuzzy math'>Friday Math Movie &#8211; George Bush fuzzy math</a></li>
<li><a href='http://www.squarecirclez.com/blog/friday-math-movie-the-webs-secret-stories/3670' rel='bookmark' title='Permanent Link: Friday Math Movie &#8211; the Web&#8217;s secret stories'>Friday Math Movie &#8211; the Web&#8217;s secret stories</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/friday-math-movie-george-dyson-at-the-birth-of-the-computer/3897/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intmath Newsletter &#8211; Length of an arc, what&#8217;s new, goals</title>
		<link>http://www.squarecirclez.com/blog/intmath-newsletter-length-of-an-arc-whats-new-goals/3832</link>
		<comments>http://www.squarecirclez.com/blog/intmath-newsletter-length-of-an-arc-whats-new-goals/3832#comments</comments>
		<pubDate>Thu, 07 Jan 2010 00:08:52 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Intmath Newsletters]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=3832</guid>
		<description><![CDATA[In this Newsletter

1. What's new on IntMath; and plans for 2010
2. Math tip – Length of an arc
3. Subscribe, connect &#38; communicate with IntMath
4. Latest from the Math Blog
5. Final thought – Goals


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/intmath-newsletter-radicals-integrator-and-goals/1670' rel='bookmark' title='Permanent Link: IntMath Newsletter &#8211; Radicals, Integrator and Goals'>IntMath Newsletter &#8211; Radicals, Integrator and Goals</a></li>
<li><a href='http://www.squarecirclez.com/blog/arc-length-for-the-inner-curve-of-a-window/4012' rel='bookmark' title='Permanent Link: Arc length for the inner curve of a window'>Arc length for the inner curve of a window</a></li>
<li><a href='http://www.squarecirclez.com/blog/intmath-newsletter-graphs-pharmacokinetics-color-blindness/3984' rel='bookmark' title='Permanent Link: Intmath Newsletter &#8211; Graphs, pharmacokinetics, color blindness'>Intmath Newsletter &#8211; Graphs, pharmacokinetics, color blindness</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Happy New Year to everyone!  </p>
<p>In this Newsletter  </p>
<p>1. What&#8217;s new on IntMath; and plans for 2010<br />
  2. Math tip – Length of an arc<br />
  3. Subscribe, connect &amp; communicate with IntMath<br />
  4. Latest from the Math Blog<br />
  5. Final thought – Goals </p>
<h3>1. What&#8217;s new on IntMath</h3>
<h4>(a) Math graphs without images</h4>
<p>Need to draw the graph of a function?  </p>
<p>I&#8217;ve added some new pages where you can see math graphs using <b>scalable vector graphics</b> rather than images (like .gif, .jpg or .png). You&#8217;ll see a different graph each time you load the page (not like images, where it&#8217;s the same each time you see it).</p>
<ul>
<li><strong>Adding vectors: </strong>This page in the Vectors chapter produces a different example each time you re-load it: <a href="http://www.intmath.com/Vectors/vector-addition.php">Adding Vectors</a>.</li>
<li><strong>User-generated graphs:</strong> You can plot your own math graphs on this page: <a href="http://www.intmath.com/Functions-and-graphs/graphs-using-svg.php">Plot your own SVG  Graphs</a></li>
</ul>
<p>[Please use <strong>Firefox, Chrome, Safari or Opera</strong> browsers. Internet Explorer requires <a href="http://www.adobe.com/svg">Adobe's SVG Viewer</a> plugin for this to work.]</p>
<h4>(b) Faster IntMath</h4>
<p>Slow-loading Web pages irritate everyone. I did some tweaks so that all pages on IntMath load faster. I hope it improves your enjoyment of the site!</p>
<h4>(c) New in the Newsletter</h4>
<p>When you subscribed to the Intmath Newsletter, I gave you an opportunity to indicate the topics you&#8217;d like me to cover.  </p>
<p>Well, the list of requested topics is now very long (several hundred topics!). I can&#8217;t cover them all, but I&#8217;ll do my best.  </p>
<p>Also, there is quite a broad range of people reading this Newsletter. Most are students, some of whom are beginners studying algebra, while others are doing more advanced topics, like trigonometry, logarithms and graphs, while others are studying calculus.  </p>
<p>My attempt in each Newsletter is to cover a broad range of topics and hopefully you find something interesting in each one. </p>
<p> For future Newsletters, I&#8217;ll still aim to have 2 Math Tips, with the first one being more &#8220;general&#8221; in nature and applicable to just about anyone at any level of mathematics; while the second one will be aimed at those of you who have been studying math for a longer time. </p>
<h4>(d) Plans for 2010</h4>
<p>I have lots of interesting new things in store involving IntMath during 2010. Watch the Newsletters for announcements!</p>
<h3>2. Math tip – Length of an arc</h3>
<p>A reader who works for a glass company (true story) wrote to me recently and asked how to solve the following.</p>
<blockquote>
<p>I&#8217;ve got to make a window with a curved top. The width of the frame is the same all round, including the part around the curved portion.  </p>
<p> What&#8217;s a formula for the length of the inner arc of the curved portion? </p>
</blockquote>
<p>The required length is labeled HI in the diagram.</p>
<div class="imgCenter"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/window4-question.gif" alt="window with curved top question" title="window with curved top question" width="262" height="296" class="alignnone size-full wp-image-4011" /></div>
<p>(This is not quite a &#8220;Norman window&#8221;, would have a complete semi-circle on top.)</p>
<p> This is a typical &#8220;real life&#8221; question, in that we don&#8217;t have  a lot of information to go on, so we&#8217;ll need to make some assumptions.  </p>
<p>Try it yourself first. The solution involves trigonometry and the use of <a href="http://www.intmath.com/Trigonometric-functions/7_Radians.php">radians</a> (a better alternative to degrees).  </p>
<p>Then check out <a href="http://www.squarecirclez.com/blog/arc-length-for-the-inner-curve-of-a-window/4012">the full solution</a>. </p>
<h3>3. Subscribe, connect &amp; communicate with IntMath</h3>
<p>Here are a few ways to keep up with the latest on IntMath:</p>
<ul>
<li>Subscribe to the blog so you are alerted every time there is a new article. (you can use the <a href="http://www.squarecirclez.com/blog/feed/rss">blog feed</a> in your iGoogle or MyYahoo page).</li>
<li>Get the &#8220;daily Math Tweet&#8221; on Twitter: <a href="http://twitter.com/intmath">IntMath on Twitter</a></li>
<li>If you want to connect with me on Facebook, please say you&#8217;re a subscriber to the IntMath Newsletter. Otherwise, I won&#8217;t know who you are.</li>
<li>I love to get your feedback. You can comment on any article in <a href="http://www.squarecirclez.com/blog/">the blog</a> or ask your questions in the <a href="http://www.intmath.com/Help/comments.php">Comments section</a> in IntMath..</li>
</ul>
<h3>4. Latest from the Math Blog</h3>
<p>1) <a href="http://www.squarecirclez.com/blog/new-names-for-the-days-of-the-week/3962">New names for the days  of the week</a>  </p>
<p>Perhaps it&#8217;s time to move away from the ancient names used for the days of the week?</p>
<p>2) <a href="http://www.squarecirclez.com/blog/classic-math-mistakes/3879">Classic math mistakes</a> </p>
<p>Displaying posters of math mistakes can actually help students to learn.  </p>
<p>3) <a href="http://www.squarecirclez.com/blog/friday-math-movie-pump-up-your-brain/2590">Friday math movie &#8211; Pump up your brain</a> </p>
<p>Looking for a sure-fire way to boost your math scores? Check out this video that helps you to pump up your brain.  </p>
<p>4) <a href="http://www.squarecirclez.com/blog/fair-slicing-of-the-pizza-using-math/3858">Fair slicing of the pizza &#8211; using math</a> </p>
<p>Not all pizza gets sliced neatly through the middle. How can we ensure a fair distribution of slice area?  </p>
<p>5) <a href="http://www.squarecirclez.com/blog/friday-math-movie-the-webs-secret-stories/3670">Friday Math Movie &#8211; the Web&#8217;s secret stories</a> This is one artist&#8217;s visualization of the emotions of the Web. </p>
<h3>5. Final thought – Goals</h3>
<p>The beginning of a new year is a good time to reflect on what we achieved last year and what is in store for 2010.</p>
<p>There are 3 types of people. Are you one who:</p>
<ul>
<li>Makes things happen?</li>
<li>Watches things happen?</li>
<li>Wonders what happened?</li>
</ul>
<p>In every math class, there are those who ensure their learning is efficient and enjoyable. They make it happen by being organized, reading ahead, listening in class and practicing what they learned before it fades away.  </p>
<p>Then there are those who regard math as a &#8220;spectator sport&#8221; and let the teacher do all the work &mdash; then wonder why they aren&#8217;t doing very well.  </p>
<p>Finally, there are those who have no idea what is going on. They are easily distracted and have no idea how to answer if they are asked a question.  </p>
<p>So what are your math goals for 2010? Will you be someone who makes things happen and therefore improve your chances for success?</p>
<p>Until next time.</p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/intmath-newsletter-radicals-integrator-and-goals/1670' rel='bookmark' title='Permanent Link: IntMath Newsletter &#8211; Radicals, Integrator and Goals'>IntMath Newsletter &#8211; Radicals, Integrator and Goals</a></li>
<li><a href='http://www.squarecirclez.com/blog/arc-length-for-the-inner-curve-of-a-window/4012' rel='bookmark' title='Permanent Link: Arc length for the inner curve of a window'>Arc length for the inner curve of a window</a></li>
<li><a href='http://www.squarecirclez.com/blog/intmath-newsletter-graphs-pharmacokinetics-color-blindness/3984' rel='bookmark' title='Permanent Link: Intmath Newsletter &#8211; Graphs, pharmacokinetics, color blindness'>Intmath Newsletter &#8211; Graphs, pharmacokinetics, color blindness</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/intmath-newsletter-length-of-an-arc-whats-new-goals/3832/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Arc length for the inner curve of a window</title>
		<link>http://www.squarecirclez.com/blog/arc-length-for-the-inner-curve-of-a-window/4012</link>
		<comments>http://www.squarecirclez.com/blog/arc-length-for-the-inner-curve-of-a-window/4012#comments</comments>
		<pubDate>Wed, 06 Jan 2010 14:02:35 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=4012</guid>
		<description><![CDATA[A glass manufacturer asked me how to find the length of the inner arc of a circular window frame.


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/intmath-newsletter-length-of-an-arc-whats-new-goals/3832' rel='bookmark' title='Permanent Link: Intmath Newsletter &#8211; Length of an arc, what&#8217;s new, goals'>Intmath Newsletter &#8211; Length of an arc, what&#8217;s new, goals</a></li>
<li><a href='http://www.squarecirclez.com/blog/hubble-math/2411' rel='bookmark' title='Permanent Link: Hubble math'>Hubble math</a></li>
<li><a href='http://www.squarecirclez.com/blog/curved-spacetime-simulation/954' rel='bookmark' title='Permanent Link: Curved spacetime simulation'>Curved spacetime simulation</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A reader who works for a glass company (true story) wrote to me recently and asked how to solve the following. </p>
<blockquote><p>I&#8217;ve got to make a window with a curved top. The width of the frame is the same all round, including the part around the curved portion. </p>
<p>What&#8217;s a formula for the length of the inner arc of the curved portion?
</p></blockquote>
<p>The required length is labeled HI in the diagram.</p>
<div class="imgCenter"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/window4-question.gif" alt="window with curved top question" title="window with curved top question" width="262" height="296" class="alignnone size-full wp-image-4011" /></div>
<p>(This is not quite a &#8220;Norman window&#8221;, since it&#8217;s not a semi-circle on top.)</p>
<p>This is a typical &#8220;real life&#8221; question, in that we don&#8217;t have  a lot of information to go on, so we&#8217;ll need to make some assumptions.</p>
<h3>Solution &#8211; Example</h3>
<p>Let&#8217;s consider a plausible example first. We assume the curves are arcs of circles. (They looked circular in the question. If they are not circles we could adjust later, but for the sake of the example, we&#8217;ll stick to this reasonable assumption.)</p>
<p>Let the total frame (length CD) be say 4 units wide and the edges of the frame be 0.3 units wide. I pick a point P in the center (horizontally) of the frame (I choose point P (2,1)), and draw 2 concentric circles, 0.3 units apart. The outer one is 5 units, the inner one 4.7 units. I could have chosen any radii for my concentric circles, of course, as long as the inner and outer radii differ by 0.3 units.</p>
<div class="imgCenter"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/window4-solution2.gif" alt="window solution" title="window solution" width="280" height="391" class="alignnone size-full wp-image-4014" /></div>
<p>If I can find angle <span style="font-family:Times, 'Times New Roman', serif;font-size:1.1em">&theta;</span>, it will be straightforward to find the arc length HI.</p>
<p>First, we find angle <span style="font-family:Times, 'Times New Roman',serif;font-size:1.1em">&alpha;</span> by using the right triangle PMI.</p>
<p><span style="font-family:Times, 'Times New Roman', serif;font-size:1.1em">cos &alpha; = 1.7 / 4.7 = 0.3617</span></p>
<p>Using the inverse ratio, we get that </p>
<p><span style="font-family:Times, 'Times New Roman', serif;font-size:1.1em">&alpha; = arccos (0.3617) = 1.2007</span> (radians, of course. If we need degrees, it equals 68.79&deg;)</p>
<p>[Why radians? They are more commonly used in science and engineering than degrees, and are best for this problem. For more, see <a href="http://www.intmath.com/Trigonometric-functions/7_Radians.php">Radians</a>.]</p>
<p>Now we observe that <span style="font-family:Times, 'Times New Roman', serif;font-size:1.1em">2&alpha; + &theta; = &pi; (180&deg;)</span>, since they lie on a straight line.</p>
<p>So angle <span style="font-family:Times, 'Times New Roman', serif;font-size:1.1em">&theta; = &pi; &#8211; 2 &times; 1.2007 = 0.7402</span></p>
<p>To find the arc length HI, we just apply the arc length formula</p>
<p><span style="font-family:Times, 'Times New Roman', serif;font-size:1.1em"><em>s = r</em> &theta;</span></p>
<p>(See <a href="http://www.intmath.com/Trigonometric-functions/8_Applications-of-radians.php">arc length formula</a>)</p>
<p><span style="font-family:Times, 'Times New Roman', serif;font-size:1.1em"><em>s</em> = 4.7 &times; 0.7402</span></p>
<p><span style="font-family:Times, 'Times New Roman', serif;font-size:1.1em"> = 3.4789</span></p>
<p>So the required arc length is 3.48 units (correct to 2 decimal places).</p>
<h3>General Solution</h3>
<p>Let the total width (window and frame) = <span style="font-family:Times, 'Times New Roman', serif;font-size:1.1em">2<em>x</em></span>, giving <span style="font-family:Times, 'Times New Roman', serif;font-size:1.1em"><em>x</em></span> for half the width.</p>
<p>Let the edges of the frame have width <span style="font-family:Times, 'Times New Roman', serif;font-size:1.1em"><em>w</em></span>.</p>
<p>The circles have radius <em>R</em> (outer) and <em>r = R &#8211; w</em> (inner).</p>
<p>Angle <span style="font-family:Times, 'Times New Roman', serif;font-size:1.1em">&alpha; = arccos ((<em>x &#8211; w</em>) / <em>r</em>)</span></p>
<p>Angle <span style="font-family:Times, 'Times New Roman', serif;font-size:1.1em">&theta; = &pi; &#8211; 2 &alpha;</span> (in radians)</p>
<p>Arclength HI is given by</p>
<p><span style="font-family:Times, 'Times New Roman', serif;font-size:1.1em"><em>s = r</em> &theta;</span></p>
<p><span style="font-family:Times, 'Times New Roman',serif;font-size:1.1em"> = <em>r</em>  &times; (&pi; &#8211; 2 (arccos ((<em>x &#8211; w</em>) /<em>r</em>)))</span></p>
<p>This is the formula required by the glass manufacturer.</p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/intmath-newsletter-length-of-an-arc-whats-new-goals/3832' rel='bookmark' title='Permanent Link: Intmath Newsletter &#8211; Length of an arc, what&#8217;s new, goals'>Intmath Newsletter &#8211; Length of an arc, what&#8217;s new, goals</a></li>
<li><a href='http://www.squarecirclez.com/blog/hubble-math/2411' rel='bookmark' title='Permanent Link: Hubble math'>Hubble math</a></li>
<li><a href='http://www.squarecirclez.com/blog/curved-spacetime-simulation/954' rel='bookmark' title='Permanent Link: Curved spacetime simulation'>Curved spacetime simulation</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/arc-length-for-the-inner-curve-of-a-window/4012/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Math graphs on the Web without images</title>
		<link>http://www.squarecirclez.com/blog/math-graphs-on-the-web-without-images/3298</link>
		<comments>http://www.squarecirclez.com/blog/math-graphs-on-the-web-without-images/3298#comments</comments>
		<pubDate>Mon, 04 Jan 2010 00:09:43 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Computers & Internet]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=3298</guid>
		<description><![CDATA[<a href="http://www.squarecirclez.com/blog/?p=3298"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2009/12/ASCIIsvg-graphs.gif" alt="ASCIIsvg graphs" title="ASCIIsvg-graphs" width="128" height="104" class="imgRt" /></a>Here's one way to plot good looking graphs on the Web - ASCIIsvg.


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/graphs-using-free-math-software/4115' rel='bookmark' title='Permanent Link: Graphs using free math software'>Graphs using free math software</a></li>
<li><a href='http://www.squarecirclez.com/blog/enter-math-in-emails-forums-and-web-pages-using-asciimathml/2861' rel='bookmark' title='Permanent Link: Enter math in emails, forums and Web pages using ASCIIMathML'>Enter math in emails, forums and Web pages using ASCIIMathML</a></li>
<li><a href='http://www.squarecirclez.com/blog/friday-math-movie-trigonometric-graphs/925' rel='bookmark' title='Permanent Link: Friday math movie &#8211; Trigonometric Graphs'>Friday math movie &#8211; Trigonometric Graphs</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There are many problems with images (.gif. ,jpg and .png) on Web pages. They are static (that is, they are the same each time you look at them), there is limited user interaction, and they take up bandwidth.</p>
<p>I&#8217;m always on the lookout for alternatives to images for <a href="http://www.intmath.com/">Interactive Mathematics</a>.</p>
<p><strong>Scalable vector graphics</strong> offer many advantages over images. A scalable vector graphic is a small text file that your browser (if you are using a good browser) renders as an image. It solves each of the issues raised above. Readers can easily change the graph to whatever math function they want to see, and such graphics involve very small file sizes. </p>
<p>One easy way to implement of scalable vector graphics on a Web page is to use <a href="http://www1.chapman.edu/~jipsen/svg/asciisvg.html">ASCIIsvg</a>. Below is an example, showing the graph of <i>y = sin e<sup>x</sup></i>.</p>
<p><b>Note 1:</b> You need to use <b>Firefox</b> browser (<b>Chrome</b> and <b>Opera</b> also work) to see the graph below. It will only work in Internet Explorer if you have <a href="http://www.adobe.com/svg">Adobe&#8217;s SVG Viewer</a> plugin.</p>
<p><b>Note 2:</b> You need to view this page in the <a href="http://www.squarecirclez.com/?p=3298">original blog post</a>. It won&#8217;t work if you are viewing via an RSS feed in your aggregator.</p>
<div class="imgCenter">
\begin{graph} width=400; height=300; xmin=-1.5; xmax=3.5; ymin=-1.5; ymax=1.5; xscl=1; axes(); plot(sin(e^x));  \end{graph}</p>
<p><b>Plot of <i>y = sin e<sup>x</sup></i></b>
</div>
<p>You can <b>mouse over</b> the graph and it shows the coordinates of the cursor position. You can use this to determine particular points on your graph (for example, where the curve cuts the <i>x</i>-axis).</p>
<p>You can <b>double click</b> on the graph to see the code that was used to create it. You can also change parameters in this code then re-draw the graph. (Click the &#8220;Update&#8221; button after you&#8217;ve made your changes.)</p>
<p>If you can&#8217;t see a graph above and don&#8217;t know what I am talking about, this is a screen shot. If you view this article using Firefox (or Chrome or Opera) browser, you&#8217;ll see something like this:</p>
<div class="imgCenter">
<img src="http://www.squarecirclez.com/blog/wp-content/uploads/2009/12/svg-screen-shot.gif" alt="svg screen shot" title="svg-screen-shot" width="223" height="160" class="alignnone size-full wp-image-3940" /><br />
<b>Screen shot of SVG plot</b>
</div>
<h3>How does it Work?</h3>
<p>The graph uses the native SVG capability of (good) browsers (like Firefox, Chrome and Opera). SVG stands for <b>scalable vector graphics</b>, which as mentioned above, produces high quality images usually with very small file sizes. (You can learn more about vector-based art here: <a href="http://www.intmath.com/Vectors/Vector-art.php">Vector Art</a>).</p>
<p>For the graph above, the only code used on the Web page is this:</p>
<pre>\begin {graph} width=400; height=300; xmin=-1.5; xmax=3.5;
ymin=-1.5; ymax=1.5; xscl=1; axes(); plot(sin(e^x));  \end{graph}</pre>
<p>SVG is very powerful, but can be difficult to obtain the graphs you want. So Stephen Jipsen of Chapman University developed ASCIISVGsvg which is a javascript interface for SVG. That is, it makes our lives easier. </p>
<p>Earlier I wrote about the related solution ASCIIMathML (see <a href="http://www.squarecirclez.com/blog/enter-math-in-emails-forums-and-web-pages-using-asciimathml/2861">Enter math in emails, forums and Web pages using ASCIIMathML</a>). ASCIISVGsvg is included in some versions of ASCIIMathML.</p>
<h3>How do I set up ASCIIsvg on my own Web page or blog?</h3>
<p>You just need to download 2 files from <a href="http://www1.chapman.edu/~jipsen/svg/asciisvg.html">ASCIIsvg main page</a>:</p>
<ol>
<li>d.svg (this is a very small file that the &#8220;embed&#8221; tag uses)</li>
<li>ASCIIsvg.js (this is the javascript that talks to the SVG rendering capability of your browser)</li>
</ol>
<p>Then, add the code to embed an SVG graph, which will be something like this:</p>
<pre>&lt;embed width="117" height="117" src="d.svg"
script='initPicture(-2,2)
axes()
stroke = "blue"
plot(2x^2 - 3x)
'></pre>
<p>Finally, add a call to the javascript file (best at the bottom of your HTML page) something like this:</p>
<pre>&lt;script type="text/javascript"
src="http://mysite.com/ASCIIsvg_min.js">&lt;/script></pre>
<h3>Advantages of Drawing Graphs using SVG</h3>
<ol>
<li>The old way: I drew nearly all of the graphs on <a href="http://www.intmath.com/">Interactive Mathematics</a> using mathematics software (either LiveMath, Scientific Notebook or similar) and then I took a screen shot using an image editing software. I then saved the image and uploaded it to the server. This is a many-step process that is fiddly and inconvenient, especially if you want to change anything on the graph.
<p>But SVG-based graphs are much easier to work with. You just change a bit of simple code and you get your new graph right there on the page.</li>
<li>Another key advantage of SVG graphs is the <strong>small file size</strong>, since it just uses a small bit of simple code. This is good for you (it downloads quickly) and me (it reduces bandwidth costs).</li>
<li>Readers can plot their own graphs on the Web without having to create images. (See how below.)</li>
<li>You can <b>print</b> high quality graphs from your browser</li>
</ol>
<h3>Disadvantages of Graphs using SVG</h3>
<ol>
<li>It is not (yet) cross-browser, since Internet Explorer does not render SVG. This is a big limitation, but since IE is now less than half of the browser market, maybe it won&#8217;t be a problem for much longer. (Well, we live in hope. <img src='http://www.squarecirclez.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  )</li>
<li>You need the javascript to run on the Web page. So as I said above, you can&#8217;t see the graph if you are reading this via a feed.</li>
<li>Despite what I said above about file sizes, your browser will download the ASCIIMathML javascript, and this is not so small at 150kB. But if you use ASCIIsvg only and use file compression on your server, it comes down to 7 kB only, which is less than many images on the Web. Of course, your browser will cache it so it is a <strong>one-time download</strong>.</li>
</ol>
<h3>My Examples of Graphs using SVG</h3>
<p>There are a few versions of ASCIIsvg floating around. I first started with the ASCIIsvg which is inbuilt into ASCIIMathML, but I found it was quite limited. (I spent too long trying to figure out how to change parameters and gave up.)</p>
<p>I settled on (pure) ASCIIsvg since it was much more transparent. A big downside is it uses the &#8220;&lt;embed>&#8221; tag, which is not HTML-compliant.</p>
<p><strong>Adding vectors: </strong>I produced a page in the Vectors chapter: <a href="http://www.intmath.com/Vectors/vector-addition.php">Adding Vectors</a> which produces a different example each time you re-load the page.</p>
<p><strong>User-generated graphs:</strong> You can plot your own graphs on this page: <a href="http://www.intmath.com/Functions-and-graphs/graphs-using-svg.php">Plot your own SVG Math Graphs</a></p>
<h3>Resources for ASCIIsvg</h3>
<p>You can obtain ASCIIMathML from here: <a href="http://www1.chapman.edu/~jipsen/mathml/asciimath.html">ASCIIMathML</a>.</p>
<p>If you only want graphs and not the whole math rendering engine, you can get ASCIIsvg here: <a href="http://www1.chapman.edu/~jipsen/svg/asciisvg.html">ASCIIsvg main page</a></p>
<p>Get your questions answered here: <a href="http://groups.google.com/group/asciimath/topics">ASCIIMath Google Group</a></p>
<p>More examples of graphs using SVG: <a href="http://www1.chapman.edu/~jipsen/svg/graphs/lines.html">SVG Gallery</a></p>
<p><script src="http://www.intmath.com/includes/ASCIIMathML.js" type="text/javascript"></script></p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/graphs-using-free-math-software/4115' rel='bookmark' title='Permanent Link: Graphs using free math software'>Graphs using free math software</a></li>
<li><a href='http://www.squarecirclez.com/blog/enter-math-in-emails-forums-and-web-pages-using-asciimathml/2861' rel='bookmark' title='Permanent Link: Enter math in emails, forums and Web pages using ASCIIMathML'>Enter math in emails, forums and Web pages using ASCIIMathML</a></li>
<li><a href='http://www.squarecirclez.com/blog/friday-math-movie-trigonometric-graphs/925' rel='bookmark' title='Permanent Link: Friday math movie &#8211; Trigonometric Graphs'>Friday math movie &#8211; Trigonometric Graphs</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/math-graphs-on-the-web-without-images/3298/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
