<?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>The Viamentis Blog &#187; VPython</title>
	<atom:link href="http://blog.viamentis.com/articles/tag/vpython/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.viamentis.com</link>
	<description>Curious About Everything</description>
	<lastBuildDate>Mon, 12 Jul 2010 11:16:21 +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>VPython-Python module for 3 Dimensional scientific programming</title>
		<link>http://blog.viamentis.com/articles/2008/01/18/vpython-python-module-for-3-dimensional-scientific-programming/</link>
		<comments>http://blog.viamentis.com/articles/2008/01/18/vpython-python-module-for-3-dimensional-scientific-programming/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 11:39:36 +0000</pubDate>
		<dc:creator>divya</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Python package]]></category>
		<category><![CDATA[scientific progranmming]]></category>
		<category><![CDATA[visual python]]></category>
		<category><![CDATA[VPython]]></category>

		<guid isPermaLink="false">http://blog.viamentis.com/articles/2008/01/18/vpython-python-module-for-3-dimensional-scientific-programming/</guid>
		<description><![CDATA[Battle with VPython was pretty good. In my opinion VPython is a very powerful one. VPython is very interesting to make small applications. First of all we have to install VPython which is quite easy. Also we can mix music &#38; such multimedia along with our applications, for that we just need to install python-gamepy [...]]]></description>
			<content:encoded><![CDATA[<p>Battle with VPython was pretty good. In my opinion VPython  is a very powerful one. VPython is very interesting to make small applications. First of all we have to install VPython which is quite easy. Also we can mix music &amp; such multimedia along with our applications, for that we just need to install python-gamepy package. Its not only for playing music but also we can add up many more things.</p>
<p><code>apt-get install python-visual</code></p>
<p>It will be very useful for implementing  physics applications, students can visualize their experiments and study easily with the help of VPython. They can easily write a small code set of their experiment with the formulas.. Coding in python won&#8217;t be a big problem even for a newbie <img src='http://blog.viamentis.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . VPython documentation is  very simple  with proper examples which will make our task much more easy &amp; interesting.</p>
<p><a href="http://blog.viamentis.com/wp-content/uploads/2008/01/screenshot-hello-world.png" title="hello"><img src="http://blog.viamentis.com/wp-content/uploads/2008/01/screenshot-hello-world.thumbnail.png" alt="hello" /></a></p>
<p>&#8220;HELLO&#8221; as 3D</p>
<p>VPython will help us to plot graphs of the equations and which can sense the <a href="http://http://www.vpython.org/webdoc/visual/mouse.html">mouse click</a>, key board interactions etc. So that we can easily implement anything as we wish.For all these things we have plenty of functions in the VPython library.</p>
<p><a href="http://blog.viamentis.com/wp-content/uploads/2008/01/screenshot-vpython.png" title="Mouse clicks"><img src="http://blog.viamentis.com/wp-content/uploads/2008/01/screenshot-vpython.thumbnail.png" alt="Mouse clicks" /></a></p>
<p>We studied a lot of stuffs with sine and cosine functions , VPython made the plotting of such functions very easier.Just try the following  for getting a cosine curve</p>
<p><code>from visual import * # just to import your visual python<br />
scene.title = "Cosine Curve"<br />
scene.center = vector(0,0,0)<br />
xaxis = box(length= 20, height=0.2, width= 0.5, color=color.orange)<br />
cosinecurve = curve( color = color.blue, radius=0.2)<br />
dt = 0.2<br />
for t in arange(0,10,dt):<br />
dydt = vector( t,cos(t), 0 );<br />
cosinecurve.append( pos=dydt, color=(1,0,0) )<br />
rate( 500 )</code></p>
<p>Just run your .py program to get a cosine wave in ur window .</p>
<p><a href="http://blog.viamentis.com/wp-content/uploads/2008/01/screenshot-cosine-curve.png" title="Cosine Wave"><img src="http://blog.viamentis.com/wp-content/uploads/2008/01/screenshot-cosine-curve.thumbnail.png" alt="Cosine Wave" /></a></p>
<p><a href="http://blog.viamentis.com/wp-content/uploads/2008/01/screenshot-cosine-curve.png" title="Cosine Wave"></a>While our code is running, VPython runs another program (â€œparallel threadâ€) which periodically gets information about the attributes of our code segment.<br />
For example for finding out the position of a object, need to specify velocity of the ball ,then take a small interval of time dt , we knows velocity=displacement/time ,so we have current position , so adding current position with the product of velocity and time gap will give you the periodic updates of the position of that object using a parallel thread. So which making our task simple <img src='http://blog.viamentis.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>so its worth trying on VPython <img src='http://blog.viamentis.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Links to get the materials on <a href="http://www.vpython.org">VPython</a></p>
<div id="pfButton"><a href="http://blog.viamentis.com/articles/2008/01/18/vpython-python-module-for-3-dimensional-scientific-programming/?pfstyle=wp" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button-both.gif" alt="Print"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.viamentis.com/articles/2008/01/18/vpython-python-module-for-3-dimensional-scientific-programming/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
