<?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>A Party to the World &#187; graphing</title>
	<atom:link href="http://dan.lecocq.us/wordpress/tag/graphing/feed/" rel="self" type="application/rss+xml" />
	<link>http://dan.lecocq.us/wordpress</link>
	<description>Life, love, and computer science</description>
	<lastBuildDate>Fri, 06 Jan 2012 17:21:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>OpenGLot</title>
		<link>http://dan.lecocq.us/wordpress/2009/10/09/openglot/</link>
		<comments>http://dan.lecocq.us/wordpress/2009/10/09/openglot/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 18:52:10 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[computer science]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[graphing]]></category>
		<category><![CDATA[interactive]]></category>
		<category><![CDATA[opengl]]></category>
		<category><![CDATA[openglot]]></category>
		<category><![CDATA[plotting]]></category>

		<guid isPermaLink="false">http://dan.lecocq.us/wordpress/?p=617</guid>
		<description><![CDATA[As a teaching tool for a course last semester, I put together an interactive plotter in openGL which I endearingly named &#8220;openGLot.&#8221; (For those who missed it, &#8220;openGL&#8221; + &#8220;plot&#8221; = &#8220;openGLot.&#8221;) See, I felt like I had to give it a very unsavory name so that if it ever became widely used, people would [...]]]></description>
			<content:encoded><![CDATA[<p>As a teaching tool for a course last semester, I put together an interactive plotter in openGL which I endearingly named &#8220;openGLot.&#8221; (For those who missed it, &#8220;openGL&#8221; + &#8220;plot&#8221; = &#8220;openGLot.&#8221;)  See, I felt like I had to give it a very unsavory name so that if it ever became widely used, people would be forced to use its ill-sounding moniker.</p>
<p>At any rate, I originally wrote in Ruby, but have been slowly porting it to C++ with high hopes for its use and applicability.  I still have a bunch of interactive demos for numerical methods (from Newton&#8217;s method to the trapezoidal rule for numerical integration) in the Ruby version, but I&#8217;ll be bringing those to the C++ version one of these days.  I started a <a href="https://sourceforge.net/projects/openglot/">sourceforge project</a> for it a while ago, which was kind of exciting.</p>
<p>At any rate, as a brief (albeit nerdy) respite from the academic onslaught today, I added a class for parameterized curves.<br />
<div id="attachment_618" class="wp-caption aligncenter" style="width: 299px"><a href="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/10/parameterized_curves.png"><img src="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/10/parameterized_curves-289x300.png" alt="A demo of a parameterized curve in openGLot" title="parameterized_curves" width="289" height="300" class="size-medium wp-image-618" /></a><p class="wp-caption-text">A demo of a parameterized curve in openGLot</p></div></p>
<p>I&#8217;ve got a bunch more primitives to add to it (scalar and vector fields, for example), but those will surely come one of these days.  I&#8217;ve added adaptive mesh refinement (so that &#8220;busier&#8221; functions require more sampling to get a more accurate visual representation), but I&#8217;m still not quite happy with it.<br />
<div id="attachment_619" class="wp-caption aligncenter" style="width: 299px"><a href="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/10/with-no-refinement.png"><img src="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/10/with-no-refinement-289x300.png" alt="A &quot;busy&quot; function with no adaptive refinement" title="with-no-refinement" width="289" height="300" class="size-medium wp-image-619" /></a><p class="wp-caption-text">A &quot;busy&quot; function with no adaptive refinement</p></div></p>
<div id="attachment_620" class="wp-caption aligncenter" style="width: 299px"><a href="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/10/with-refinement.png"><img src="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/10/with-refinement-289x300.png" alt="The same &quot;busy&quot; function with recursive refinement." title="with-refinement" width="289" height="300" class="size-medium wp-image-620" /></a><p class="wp-caption-text">The same &quot;busy&quot; function with recursive refinement.</p></div>
<p>I&#8217;ve also got a 3D version, but that&#8217;s not been polished or formalized, but everyone loves a pretty graph:<br />
<a href="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/10/openGLot3D.png"><img src="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/10/openGLot3D-300x281.png" alt="openGLot3D" title="openGLot3D" width="300" height="281" class="aligncenter size-medium wp-image-621" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://dan.lecocq.us/wordpress/2009/10/09/openglot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Graphing</title>
		<link>http://dan.lecocq.us/wordpress/2008/12/14/graphing/</link>
		<comments>http://dan.lecocq.us/wordpress/2008/12/14/graphing/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 02:53:50 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[computer science]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[graphing]]></category>
		<category><![CDATA[scientific computing]]></category>

		<guid isPermaLink="false">http://dan.lecocq.us/wordpress/?p=215</guid>
		<description><![CDATA[For Scientific Computing, I decided I wanted to have a grapher with which I could programmatically interface easily. Of course, there are options other there, from gnuPlot to you-name-it, but I figured that it wouldn&#8217;t be too hard to write one myself. Especially since there&#8217;s a ruby port for OpenGL. Long story short, I&#8217;ve got [...]]]></description>
			<content:encoded><![CDATA[<p>For Scientific Computing, I decided I wanted to have a grapher with which I could programmatically interface easily.  Of course, there are options other there, from gnuPlot to you-name-it, but I figured that it wouldn&#8217;t be too hard to write one myself.  Especially since there&#8217;s a ruby port for OpenGL.</p>
<p>Long story short, I&#8217;ve got something that&#8217;s not too terrible.  Not perfect, but it&#8217;s certainly a start:<br />
<div id="attachment_216" class="wp-caption aligncenter" style="width: 310px"><a href="http://dan.lecocq.us/wordpress/wp-content/uploads/2008/12/grapher.png"><img src="http://dan.lecocq.us/wordpress/wp-content/uploads/2008/12/grapher-300x300.png" alt="A few functions plotted with my grapher" title="2D Grapher" width="300" height="300" class="size-medium wp-image-216" /></a><p class="wp-caption-text">A few functions plotted with my grapher</p></div></p>
<p>But then, I thought, &#8220;why stop there?&#8221;  I figured it wouldn&#8217;t be that hard to make a 3D version.  While the 2D one will work on any generic function you give it, this 3D one has it hard-coded in right now.  Of course, it wouldn&#8217;t be too much more to make it more flexible, but given that this took 30 minutes, I&#8217;m ok with its rigidity.<br />
<div id="attachment_217" class="wp-caption aligncenter" style="width: 310px"><a href="http://dan.lecocq.us/wordpress/wp-content/uploads/2008/12/surface.png"><img src="http://dan.lecocq.us/wordpress/wp-content/uploads/2008/12/surface-300x282.png" alt="A simple surface." title="3D Grapher" width="300" height="282" class="size-medium wp-image-217" /></a><p class="wp-caption-text">A simple surface.</p></div></p>
<p>We&#8217;ll see where this goes.  It makes me feel a little nerdy that I&#8217;m two days into my winter break, and this is how I&#8217;ve spent some of it.</p>
]]></content:encoded>
			<wfw:commentRss>http://dan.lecocq.us/wordpress/2008/12/14/graphing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

