<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Graph Forums — Calculating the remainder]]></title>
	<link rel="self" href="https://forum.padowan.dk/extern.php?action=feed&amp;tid=684&amp;type=atom"/>
	<updated>2012-05-24T10:32:30Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.padowan.dk/viewtopic.php?id=684</id>
		<entry>
			<title type="html"><![CDATA[Re: Calculating the remainder]]></title>
			<link rel="alternate" href="https://forum.padowan.dk/viewtopic.php?pid=1725#p1725"/>
			<content type="html"><![CDATA[<p>There is the condition applied for modulo function: abs(reminder) &lt; abs(divisor). This condition allows only two results for a calculation, positive or negative value. For Graph, there is an answer in menu item Help-Contents-Functions-Special-mod function. More detailed description can be found in <a href="http://en.wikipedia.org/wiki/Modulo_operation">http://en.wikipedia.org/wiki/Modulo_operation</a> .</p>]]></content>
			<author>
				<name><![CDATA[pin]]></name>
				<uri>https://forum.padowan.dk/profile.php?id=495</uri>
			</author>
			<updated>2012-05-24T10:32:30Z</updated>
			<id>https://forum.padowan.dk/viewtopic.php?pid=1725#p1725</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calculating the remainder]]></title>
			<link rel="alternate" href="https://forum.padowan.dk/viewtopic.php?pid=1724#p1724"/>
			<content type="html"><![CDATA[<p>Btw, why is that function called mod? I&#039;m familiar with mod calculations but I hate them in this kind of use. That&#039;s because here the result is always the smallest possible positive number, but in math mod has infinite amount of results and also negative ones. Mod 3: 5 can be 2 as it&#039;s here, but it can also be -4, -1, 8, 11, 14 and so on. I know there isn&#039;t many ways how to handle such calculations with graphing software and it&#039;s practical to expect the wanted result to be the smallest positive, but it kind of made me confused. <img src="https://forum.padowan.dk/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[finnboy11]]></name>
				<uri>https://forum.padowan.dk/profile.php?id=26275</uri>
			</author>
			<updated>2012-05-24T08:20:45Z</updated>
			<id>https://forum.padowan.dk/viewtopic.php?pid=1724#p1724</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calculating the remainder]]></title>
			<link rel="alternate" href="https://forum.padowan.dk/viewtopic.php?pid=1719#p1719"/>
			<content type="html"><![CDATA[<p>No problem. You made my day with those mistakes <img src="https://forum.padowan.dk/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></content>
			<author>
				<name><![CDATA[finnboy11]]></name>
				<uri>https://forum.padowan.dk/profile.php?id=26275</uri>
			</author>
			<updated>2012-05-22T11:10:18Z</updated>
			<id>https://forum.padowan.dk/viewtopic.php?pid=1719#p1719</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calculating the remainder]]></title>
			<link rel="alternate" href="https://forum.padowan.dk/viewtopic.php?pid=1717#p1717"/>
			<content type="html"><![CDATA[<p>Sorry about that. I am afrad I was a little too fast, and I wasn&#039;t home when answering so I couldn&#039;t test it with Graph. I am glad you figured it out.</p>]]></content>
			<author>
				<name><![CDATA[Ivan Johansen]]></name>
				<uri>https://forum.padowan.dk/profile.php?id=2</uri>
			</author>
			<updated>2012-05-22T05:58:08Z</updated>
			<id>https://forum.padowan.dk/viewtopic.php?pid=1717#p1717</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calculating the remainder]]></title>
			<link rel="alternate" href="https://forum.padowan.dk/viewtopic.php?pid=1716#p1716"/>
			<content type="html"><![CDATA[<p>It gives an error 56 that says &quot;Invalid number of arguments supplied for the function &#039;sum&#039;&quot;. When I write both &#039;sum&#039; and &#039;mod&#039; with small letters, it gives me a graph. At this point I notice that the graph is different from what it should be. Turns out that you wrote the function wrong and it should be f(x)=sum(mod(x,i)-mod(x-i,i), i, 1, x-1)-(x-2). Now, however, it gives me just a straight line, which is not the function that I expected either. Then I saw that you read my function even worse and mod(x-i,i) should actually be mod(x-1,i). NOW it&#039;s right. <img src="https://forum.padowan.dk/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> Thank you!</p>]]></content>
			<author>
				<name><![CDATA[finnboy11]]></name>
				<uri>https://forum.padowan.dk/profile.php?id=26275</uri>
			</author>
			<updated>2012-05-21T15:29:05Z</updated>
			<id>https://forum.padowan.dk/viewtopic.php?pid=1716#p1716</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Calculating the remainder]]></title>
			<link rel="alternate" href="https://forum.padowan.dk/viewtopic.php?pid=1714#p1714"/>
			<content type="html"><![CDATA[<p>It is called mod in Graph.Try this in the beta version of Graph 4.4:<br /></p><div class="codebox"><pre><code>f(x)=Sum(Mod(x,i)-mod(x-i,i)-(x-2), i, 1, x-1)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Ivan Johansen]]></name>
				<uri>https://forum.padowan.dk/profile.php?id=2</uri>
			</author>
			<updated>2012-05-20T19:42:27Z</updated>
			<id>https://forum.padowan.dk/viewtopic.php?pid=1714#p1714</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Calculating the remainder]]></title>
			<link rel="alternate" href="https://forum.padowan.dk/viewtopic.php?pid=1712#p1712"/>
			<content type="html"><![CDATA[<p>What is the function for calculating a remainder in Graph? In coding languages it&#039;s a%b, but I didn&#039;t find it from the operator list. I would like to graph the attached function.</p>]]></content>
			<author>
				<name><![CDATA[finnboy11]]></name>
				<uri>https://forum.padowan.dk/profile.php?id=26275</uri>
			</author>
			<updated>2012-05-19T12:46:05Z</updated>
			<id>https://forum.padowan.dk/viewtopic.php?pid=1712#p1712</id>
		</entry>
</feed>
