<?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>Code Comments &#187; Math</title>
	<atom:link href="http://code.hammerpig.com/category/math/feed" rel="self" type="application/rss+xml" />
	<link>http://code.hammerpig.com</link>
	<description>Tips and short tutorials on various programming technologies</description>
	<lastBuildDate>Tue, 25 May 2010 14:35:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Find Interquartile Range in Java</title>
		<link>http://code.hammerpig.com/find-interquartile-range-java.html</link>
		<comments>http://code.hammerpig.com/find-interquartile-range-java.html#comments</comments>
		<pubDate>Fri, 16 Oct 2009 22:08:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=594</guid>
		<description><![CDATA[In this post, I explained how to find quartiles in a list of numbers. As a slight add-on to that functionality, you can easily get the interquartile range. This basically means that you are finding the difference between the first and third quartiles.
So I use the code to compute the quartiles and then use simple [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/find-interquartile-range-java.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Get Quartiles in Java</title>
		<link>http://code.hammerpig.com/quartiles-java.html</link>
		<comments>http://code.hammerpig.com/quartiles-java.html#comments</comments>
		<pubDate>Fri, 16 Oct 2009 22:04:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=592</guid>
		<description><![CDATA[For a brief overview of what quartiles are, you might read the Wikipedia page on this topic.
Basically, what it means is that if you were to break a list of numbers into four even parts, these would be the values that would separate them. But it gets a little complicated when your list doesn&#8217;t break [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/quartiles-java.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Java: Is an Integer an Odd Number?</title>
		<link>http://code.hammerpig.com/java-integer-odd-number.html</link>
		<comments>http://code.hammerpig.com/java-integer-odd-number.html#comments</comments>
		<pubDate>Fri, 16 Oct 2009 21:37:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=590</guid>
		<description><![CDATA[This is a pretty simple tip, but I still thought I would share it for anyone who is interested. To find out whether an integer is odd, you can use the modulo operator. This operator tells you the remainder after dividing the number by some other number. If you divide any integer by 2, you [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/java-integer-odd-number.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minimum or Maximum Float Value in Python 2.5</title>
		<link>http://code.hammerpig.com/minimum-maximum-float-python-25.html</link>
		<comments>http://code.hammerpig.com/minimum-maximum-float-python-25.html#comments</comments>
		<pubDate>Wed, 08 Jul 2009 20:09:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=549</guid>
		<description><![CDATA[In Python 2.5, there is a built-in function that tells you the maximum allowable int value:

import sys
print sys.maxint

But there is no corresponding function to do this for float values. Part of the reason may be that it can vary from system to system. But actually, I believe they added this in version 2.6. So this [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/minimum-maximum-float-python-25.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Way to Compute Median in Java</title>
		<link>http://code.hammerpig.com/simple-compute-median-java.html</link>
		<comments>http://code.hammerpig.com/simple-compute-median-java.html#comments</comments>
		<pubDate>Wed, 11 Mar 2009 22:33:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=536</guid>
		<description><![CDATA[There is no way that I know of to find the median of a list of numbers in the Java framework. The median is the middle value. If there is an even number of values, the median is the middle of these two numbers. Below is a method, along with a supporting method and some [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/simple-compute-median-java.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Round Numbers (double, float) in Java to Number of Decimal Places</title>
		<link>http://code.hammerpig.com/numbers-double-float-java-decimal-places.html</link>
		<comments>http://code.hammerpig.com/numbers-double-float-java-decimal-places.html#comments</comments>
		<pubDate>Sun, 04 Jan 2009 03:22:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=517</guid>
		<description><![CDATA[&#60;rant&#62;For some strange reason, Java doesn&#8217;t have the ability to round numbers to a given number of decimals. This seems like such an obvious thing to include in any programming language.&#60;/rant&#62; Anyway, you can round to the nearest integer, so you have to a little workaround to round to a given number of decimal places. [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/numbers-double-float-java-decimal-places.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Find the Mean/Average of a Number List in Python</title>
		<link>http://code.hammerpig.com/find-meanaverage-number-list-python.html</link>
		<comments>http://code.hammerpig.com/find-meanaverage-number-list-python.html#comments</comments>
		<pubDate>Fri, 02 Jan 2009 20:29:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Statistics]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=513</guid>
		<description><![CDATA[To my knowledge, there is no built-in function in Python to find the mean of a list of numbers. You can use statistics packages to do this, such as statpy, but if you just want a lightweight solution to do the trick you can use the function below. Note that on the first line I [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/find-meanaverage-number-list-python.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Find the Mean of an Array of Numbers in C#</title>
		<link>http://code.hammerpig.com/find-the-mean-of-an-array-of-numbers-in-c.html</link>
		<comments>http://code.hammerpig.com/find-the-mean-of-an-array-of-numbers-in-c.html#comments</comments>
		<pubDate>Sun, 28 Dec 2008 20:10:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=492</guid>
		<description><![CDATA[Let&#8217;s say you have an array of numbers and want to be able to find the mathematical mean of those numbers in C#. To my knowledge, the .NET Framework does not have a function to do this built in. (Please let me know if you know otherwise.) So I built a method that does this. [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/find-the-mean-of-an-array-of-numbers-in-c.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Find the Sum of an Array of Numbers in C#</title>
		<link>http://code.hammerpig.com/find-the-sum-of-an-array-in-c.html</link>
		<comments>http://code.hammerpig.com/find-the-sum-of-an-array-in-c.html#comments</comments>
		<pubDate>Sun, 28 Dec 2008 14:06:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=489</guid>
		<description><![CDATA[Let&#8217;s say you have an array of numbers (either doubles or integers) and want to be able to find the sum of these numbers. To my knowledge, there is not a built-in way to do this in the .NET Framework, so I created a little utility method that does this for doubles and for integers. [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/find-the-sum-of-an-array-in-c.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find the Mathematical Product of Double Array in C#</title>
		<link>http://code.hammerpig.com/find-the-mathematical-product-of-double-array-in-c.html</link>
		<comments>http://code.hammerpig.com/find-the-mathematical-product-of-double-array-in-c.html#comments</comments>
		<pubDate>Sun, 28 Dec 2008 05:06:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=487</guid>
		<description><![CDATA[If you have an array of doubles (or floats) in C#, there is no built-in method (that I know of) to find the product of those numbers. The product is where you multiply all of the numbers together. I needed this, so I created a utility method that does this simple operation. See below.

public static [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/find-the-mathematical-product-of-double-array-in-c.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
