<?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>Tapdancing Goats &#187; Physics</title>
	<atom:link href="http://www.tapdancinggoats.com/category/science/physics/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tapdancinggoats.com</link>
	<description>A parfait of physics, Linux, LaTeX, and coding tips large and small.</description>
	<lastBuildDate>Wed, 25 Jan 2012 03:14:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Double Pendulum Simulation</title>
		<link>http://www.tapdancinggoats.com/double-pendulum-simulation.htm</link>
		<comments>http://www.tapdancinggoats.com/double-pendulum-simulation.htm#comments</comments>
		<pubDate>Thu, 18 Aug 2011 07:53:27 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[double pendula]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[pendulum]]></category>

		<guid isPermaLink="false">http://www.tapdancinggoats.com/?p=714</guid>
		<description><![CDATA[I&#8217;ve been playing around with some of the new features in HTML5, particularly to see how the canvas stacks up to Flash. One of the things I wanted to test was javascript performance, so I ported this Flash toy I wrote a few years ago. It&#8217;s a physical simulation of a double pendulum system. It&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tapdancinggoats.com/double-pendula"><img src="http://www.tapdancinggoats.com/wp-content/uploads/2011/08/pendula.png" alt="" title="Double Pendula" width="421" height="392" class="alignright size-full wp-image-715" /></a></p>

<p>I&#8217;ve been playing around with some of the new features in HTML5, particularly to see how the canvas stacks up to Flash.  One of the things I wanted to test was javascript performance, so I ported this Flash toy I wrote a few years ago.  It&#8217;s a physical simulation of a double pendulum system.  It&#8217;s interactive, and it can export the line drawing it produces as a PNG.</p>

<p>How did canvas+JS do?  The export was a lot easier: I had to write a PNG encoder in Actionscript for the original version!  Pretty much everything else was harder.  Canvas has features similar to Flash 5, and I missed modern Flash&#8217;s rich standard library.  CSS layout is still somewhat inferior to Flex for GUI design, as the layout options are less flexible.</p>

<p>One of the appeals of canvas is mobile support, but I was disappointed by the performance on my Motorola Droid.  Just clearing the background on a canvas larger than 500&#215;200 took the frame rate to single digits, and I couldn&#8217;t find a reliable way to make the canvas fill the screen if other elements were present (I didn&#8217;t look too hard, since a canvas that large was unusable).  The javascript performance was fine, it was just the drawing that caused problems.  Let me know if you get better results on different hardware, I&#8217;d love to know that this can work better.</p>

<p>Overall, canvas shows promise, but I don&#8217;t think it&#8217;s ready to replace Flash for complex graphical applications.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tapdancinggoats.com/double-pendulum-simulation.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spin: The Game</title>
		<link>http://www.tapdancinggoats.com/spin-the-game.htm</link>
		<comments>http://www.tapdancinggoats.com/spin-the-game.htm#comments</comments>
		<pubDate>Fri, 11 Mar 2011 07:12:23 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[physics simulation]]></category>

		<guid isPermaLink="false">http://www.tapdancinggoats.com/?p=617</guid>
		<description><![CDATA[Spin is a new Flash game I&#8217;ve been noodling on for a little while. It&#8217;s a Puzzle Bobble type game, except that the balls can freely spin like a pinwheel. The rotation is physically accurate, so as balls fall off of the board it changes speed and direction. When a ball hits the board the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tapdancinggoats.com/spin"><img src="http://www.tapdancinggoats.com/wp-content/uploads/2011/03/spin-pic_sm.png" alt="" title="Spin: The Game" width="300" height="269" class="alignright size-full wp-image-619" /></a>
<a href="http://www.tapdancinggoats.com/spin">Spin</a> is a new Flash game I&#8217;ve been noodling on for a little while.  It&#8217;s a <a href="http://en.wikipedia.org/wiki/Puzzle_Bobble">Puzzle Bobble</a> type game, except that the balls can freely spin like a pinwheel.  The rotation is physically accurate, so as balls fall off of the board it changes speed and direction.  When a ball hits the board the ball&#8217;s momentum is transferred to it, so if the board is turning slowly you can speed it up or make it turn the other way by firing the balls at it.</p>

<p>The feature list was miles long, but I&#8217;m getting too busy to work on it.  Look forward to a second version when I can get back to it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tapdancinggoats.com/spin-the-game.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>There Is So Much Here To Discover</title>
		<link>http://www.tapdancinggoats.com/discover-poem-xkcd.htm</link>
		<comments>http://www.tapdancinggoats.com/discover-poem-xkcd.htm#comments</comments>
		<pubDate>Sat, 24 Apr 2010 02:36:53 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Physics]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[comic]]></category>
		<category><![CDATA[discovery]]></category>
		<category><![CDATA[poetry]]></category>

		<guid isPermaLink="false">http://www.tapdancinggoats.com/?p=465</guid>
		<description><![CDATA[The alt text in today&#8217;s XKCD is a beautiful little poem. Telescopes and bathyscapes and sonar probes of Scottish lakes, Tacoma Narrows bridge collapse explained with abstract phase-space maps, some x-ray slides, a music score, Minard&#8217;s Napoleonic war: the most exciting new frontier is charting what&#8217;s already here. I formatted the lines, so it might [...]]]></description>
			<content:encoded><![CDATA[<p>The alt text in <a href="http://xkcd.com/731/">today&#8217;s XKCD</a> is a beautiful little poem.</p>

<blockquote>
  <p>Telescopes and bathyscapes<br />
  and sonar probes of Scottish lakes,<br />
  Tacoma Narrows bridge collapse<br />
  explained with abstract phase-space maps,<br />
  some x-ray slides, a music score,<br />
  Minard&#8217;s Napoleonic war:<br />
  the most exciting new frontier<br />
  is charting what&#8217;s already here.</p>
</blockquote>

<p>I formatted the lines, so it might not scan the way Randall wanted. Tough.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tapdancinggoats.com/discover-poem-xkcd.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy Scientific Notation In LaTeX</title>
		<link>http://www.tapdancinggoats.com/easy-scientific-notation-in-latex.htm</link>
		<comments>http://www.tapdancinggoats.com/easy-scientific-notation-in-latex.htm#comments</comments>
		<pubDate>Fri, 02 Mar 2007 21:46:30 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[scientific notation]]></category>
		<category><![CDATA[thesis]]></category>

		<guid isPermaLink="false">http://www.tapdancinggoats.com/easy-scientific-notation-in-latex.htm</guid>
		<description><![CDATA[I use LaTeX for all my physics homework and lab reports, and I&#8217;ll be using it for a master&#8217;s thesis in the next few years, so I&#8217;m constantly adding to my library of LaTeX commands to save some typing. Here&#8217;s a good one when you need to use scientific or engineering notation. Put the following [...]]]></description>
			<content:encoded><![CDATA[<p>I use LaTeX for all my physics homework and lab reports, and I&#8217;ll be using it for a master&#8217;s thesis in the next few years, so I&#8217;m constantly adding to my library of LaTeX commands to save some typing.  Here&#8217;s a good one when you need to use scientific or engineering notation.  Put the following in the document preamble (before <tt>\begin{document}</tt>):</p>

<div class="dean_ch" style="white-space: wrap;"><br />
<span class="re2">\providecommand</span>{<span class="re3"><span class="re2">\e</span>}[<span class="re4">1</span>]{<span class="re2">\ensuremath</span>{<span class="re2">\times</span> 10^{#1}}</span>}<br />
&nbsp;</div>

<p>Then, typing</p>

<div class="dean_ch" style="white-space: wrap;"><br />
The [<span class="re4">111</span>] crystal planes are 3.2<span class="re2">\e</span>{<span class="re3">-10</span>} m apart.<br />
&nbsp;</div>

<p>gives you:
<samp>
The [111] crystal planes are 3.2&#215;10<sup>-10</sup> m apart.
</samp>
whether or not you&#8217;re already in a math environment.  If the exponent is just one number, you can omit the braces, like this: <tt>3\e8 m/s</tt>.  Cool, huh?</p>

<p>(Of course, for 10<sup>-10</sup> m you can just use Angstroms, <tt>\AA</tt>.  If you&#8217;re in a math environment, use <tt>\text{\AA}</tt>, or else the circle won&#8217;t line up with the A.  That is, if you&#8217;re okay with non-SI units.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tapdancinggoats.com/easy-scientific-notation-in-latex.htm/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Bold vectors in LaTeX</title>
		<link>http://www.tapdancinggoats.com/bold-vectors-in-latex.htm</link>
		<comments>http://www.tapdancinggoats.com/bold-vectors-in-latex.htm#comments</comments>
		<pubDate>Tue, 13 Feb 2007 02:26:53 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[thesis]]></category>
		<category><![CDATA[vector]]></category>

		<guid isPermaLink="false">http://tapdancinggoats.com/?p=12</guid>
		<description><![CDATA[Vectors can be typeset in LaTeX with the command \vec, which decorates the argument with a little arrow. This was cute at first, but it doesn&#8217;t look very good, especially in fractions. Textbooks use bold face for vectors, so here&#8217;s how to do that in LaTeX. \let\oldhat\hat \renewcommand{\vec}[1]{\mathbf{#1}} \renewcommand{\hat}[1]{\oldhat{\mathbf{#1}}} This also makes unit vectors (typeset [...]]]></description>
			<content:encoded><![CDATA[<p>
Vectors can be typeset in LaTeX with the command <tt>\vec</tt>, which decorates the argument with a little arrow.  This was cute at first, but it doesn&#8217;t look very good, especially in fractions.  Textbooks use bold face for vectors, so here&#8217;s how to do that in LaTeX.
</p>

<div class="dean_ch" style="white-space: wrap;"><span class="re2">\let</span><span class="re2">\oldhat</span><span class="re2">\hat</span><br />
<span class="re2">\renewcommand</span>{<span class="re3"><span class="re2">\vec</span>}[<span class="re4">1</span>]{<span class="re2">\mathbf</span>{#1}</span>}<br />
<span class="re2">\renewcommand</span>{<span class="re3"><span class="re2">\hat</span>}[<span class="re4">1</span>]{<span class="re2">\oldhat</span>{<span class="re2">\mathbf</span>{#1}}</span>}</div>

<p>
This also makes unit vectors (typeset with <tt>\hat</tt>) bold.
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tapdancinggoats.com/bold-vectors-in-latex.htm/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

