<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Graph Forums — Some trouble with the sum function.]]></title>
		<link>https://forum.padowan.dk/viewtopic.php?id=246</link>
		<atom:link href="https://forum.padowan.dk/extern.php?action=feed&amp;tid=246&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Some trouble with the sum function..]]></description>
		<lastBuildDate>Wed, 23 Mar 2011 23:30:00 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Some trouble with the sum function.]]></title>
			<link>https://forum.padowan.dk/viewtopic.php?pid=871#p871</link>
			<description><![CDATA[<p>Been looking for that fix! Thanks James!</p>]]></description>
			<author><![CDATA[null@example.com (12EricPetterson)]]></author>
			<pubDate>Wed, 23 Mar 2011 23:30:00 +0000</pubDate>
			<guid>https://forum.padowan.dk/viewtopic.php?pid=871#p871</guid>
		</item>
		<item>
			<title><![CDATA[Re: Some trouble with the sum function.]]></title>
			<link>https://forum.padowan.dk/viewtopic.php?pid=818#p818</link>
			<description><![CDATA[<p>Wow, brilliant. Thanks Ivan!</p><p>I can&#039;t thank you enough for creating this extremely useful piece of software.</p>]]></description>
			<author><![CDATA[null@example.com (James)]]></author>
			<pubDate>Tue, 08 Mar 2011 04:05:16 +0000</pubDate>
			<guid>https://forum.padowan.dk/viewtopic.php?pid=818#p818</guid>
		</item>
		<item>
			<title><![CDATA[Re: Some trouble with the sum function.]]></title>
			<link>https://forum.padowan.dk/viewtopic.php?pid=815#p815</link>
			<description><![CDATA[<div class="quotebox"><cite>James wrote:</cite><blockquote><p>Check out the file and this will all make more sense. Can anyone figure out what&#039;s going on here?</p></blockquote></div><p>There was a bug in Graph, which caused the sum function to fail when the expression in the first argument to sum was a function with more than one argument. I have now fixed it in the beta version.</p><div class="quotebox"><cite>James wrote:</cite><blockquote><p>I just noticed something else as well, functions with sum() can&#039;t be differentiated in graph, which is a bit odd; it seems like a perfectly straightforward function to differentiate. Wouldn&#039;t it just be the same sum over the derivative of the function in the first parameter?</p></blockquote></div><p>Well, straightforward is not the term I would have used. But you are right that it should be possible to differentiate the sum function, and I implemented that in the beta version now.</p><div class="quotebox"><cite>James wrote:</cite><blockquote><p>Also, graph doesn&#039;t seem to like to differentiate functions with fact() in them even if the variable the derivative is being taken with respect to isn&#039;t part of the factorial. For example:</p></blockquote></div><p>I never really considered that but it is very easy to fix and it is fixed now in the beta version.</p><p>You can find the latest beta version at <a href="http://www.padowan.dk/graph/Beta.php">http://www.padowan.dk/graph/Beta.php</a></p>]]></description>
			<author><![CDATA[null@example.com (Ivan Johansen)]]></author>
			<pubDate>Mon, 07 Mar 2011 20:46:40 +0000</pubDate>
			<guid>https://forum.padowan.dk/viewtopic.php?pid=815#p815</guid>
		</item>
		<item>
			<title><![CDATA[Re: Some trouble with the sum function.]]></title>
			<link>https://forum.padowan.dk/viewtopic.php?pid=783#p783</link>
			<description><![CDATA[<p>I just noticed something else as well, functions with sum() can&#039;t be differentiated in graph, which is a bit odd; it seems like a perfectly straightforward function to differentiate. Wouldn&#039;t it just be the same sum over the derivative of the function in the first parameter?</p><p>Also, graph doesn&#039;t seem to like to differentiate functions with fact() in them even if the variable the derivative is being taken with respect to isn&#039;t part of the factorial. For example:</p><p>y(x)=fact(2)*x can&#039;t be differentiated, even though y(x)=2*x obviously can, and is the same function.</p><p>Are there any plans to make these improvements to the differentiating engine in graph?</p>]]></description>
			<author><![CDATA[null@example.com (James)]]></author>
			<pubDate>Sat, 26 Feb 2011 04:36:07 +0000</pubDate>
			<guid>https://forum.padowan.dk/viewtopic.php?pid=783#p783</guid>
		</item>
		<item>
			<title><![CDATA[Some trouble with the sum function.]]></title>
			<link>https://forum.padowan.dk/viewtopic.php?pid=782#p782</link>
			<description><![CDATA[<p>Hello,</p><p>I&#039;m trying to use the sum function to sum a bunch of binomial distributions together, and the factorial functions seems to break when its used inside the sum function, at least in some situations. I have attached a file to illustrate the problem.</p><p>The first few functions in the file are an example of what I&#039;m trying to automate using the sum function. The custom functions in the file are:</p><p>1. nchoosek(n,k)&nbsp; the binomail coeficcient.<br />2. bin(k,n,p)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; the binomial distribution for k successes in n trials, with p probability per trial. This uses the nchoosek function.<br />3. perbin(k,n,p)&nbsp; &nbsp; makes the probabilities into percents by passing p/100 to bin() and returning 100* the answer.<br />4. sums(n,k,p). This uses the sum function to sum the perbin function over values of k from 0 to k. The result is supposed to be the probability of achieving k or fewer successes in n trials.<br />5. sums2(k,n,p)&nbsp; &nbsp; Same as above, but instead of using nested functions, it&#039;s all in one giant lump in one function. This version actually works, despite the fact that it should be doing exactly the same thing as the above function.</p><p>Check out the file and this will all make more sense. Can anyone figure out what&#039;s going on here?</p><p>Thanks!<br />-James</p>]]></description>
			<author><![CDATA[null@example.com (James)]]></author>
			<pubDate>Sat, 26 Feb 2011 02:41:22 +0000</pubDate>
			<guid>https://forum.padowan.dk/viewtopic.php?pid=782#p782</guid>
		</item>
	</channel>
</rss>
