<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, How to sum in maple?</title>
    <link>http://www.mapleprimes.com/questions/142116-How-To-Sum-In-Maple</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Tue, 09 Jun 2026 04:36:43 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 04:36:43 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, How to sum in maple?</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, How to sum in maple?</title>
      <link>http://www.mapleprimes.com/questions/142116-How-To-Sum-In-Maple</link>
    </image>
    <item>
      <title>Solution</title>
      <link>http://www.mapleprimes.com/questions/142116-How-To-Sum-In-Maple?ref=Feed:MaplePrimes:How to sum in maple?:Comments#answer142117</link>
      <itunes:summary>&lt;p&gt;&lt;strong&gt;restart;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;n:=3:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ode:=diff(T(x),x$2)-T(x)^2=0;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;bc:=T(0)=1,T(n)=0;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;V:=dsolve({ode, bc}, numeric);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;AverageT:=evalf(Int(x-&amp;gt;rhs(V(x)[2]), 0..3))/n;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;`T`:=[seq(rhs(V(x)[2]), x=1..3, 1)];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;theta:=sqrt(add((`T`[i]-AverageT)^2, i=1..3)/(n-1))/AverageT;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://s018.radikal.ru/i527/1301/62/f4e7d0eceb16.png" alt="" width="608" height="307"&gt;&lt;/strong&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;strong&gt;restart;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;n:=3:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ode:=diff(T(x),x$2)-T(x)^2=0;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;bc:=T(0)=1,T(n)=0;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;V:=dsolve({ode, bc}, numeric);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;AverageT:=evalf(Int(x-&amp;gt;rhs(V(x)[2]), 0..3))/n;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;`T`:=[seq(rhs(V(x)[2]), x=1..3, 1)];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;theta:=sqrt(add((`T`[i]-AverageT)^2, i=1..3)/(n-1))/AverageT;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://s018.radikal.ru/i527/1301/62/f4e7d0eceb16.png" alt="" width="608" height="307"&gt;&lt;/strong&gt;&lt;/p&gt;</description>
      <guid>142117</guid>
      <pubDate>Mon, 07 Jan 2013 14:56:21 Z</pubDate>
      <itunes:author>Kitonum</itunes:author>
      <author>Kitonum</author>
    </item>
    <item>
      <title>More generally</title>
      <link>http://www.mapleprimes.com/questions/142116-How-To-Sum-In-Maple?ref=Feed:MaplePrimes:How to sum in maple?:Comments#answer142122</link>
      <itunes:summary>&lt;p&gt;In my code, I relied on your formula, in which the number &amp;nbsp;&lt;strong&gt;n&lt;/strong&gt;&amp;nbsp; determines the size of the segment of the boundary value problem and the number of parts into which divided this segment. If we divide these two parameters, we obtain a slightly more general problem. The number &amp;nbsp;&lt;strong&gt;theta&lt;/strong&gt; can also be considered discretely as in your formula, and it can more accurately be considered by the integral, if your last formula to the limit as &amp;nbsp;&lt;strong&gt;n&lt;/strong&gt;&amp;nbsp; tends to infinity. In the example below &lt;strong&gt;0.001&lt;/strong&gt; step corresponds to the division of the interval from 0 to 3 per &lt;strong&gt;3000&lt;/strong&gt; parts:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;restart;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;a:=3: &amp;nbsp;n:=3000:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ode:=diff(T(x),x$2)-T(x)^2=0;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;bc:=T(0)=1,T(a)=0;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;V:=dsolve({ode, bc}, numeric):&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;AverageT:=evalf(Int(x-&amp;gt;rhs(V(x)[2]), 0..a))/a;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;`T`:=[seq(rhs(V(x)[2]), x=a/n..a, a/n)]:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Int_theta:=evalf(sqrt(Int(x-&amp;gt;(rhs(V(x)[2])-AverageT)^2, 0..a)/a)/AverageT);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;theta:=sqrt(add((`T`[i]-AverageT)^2, i=1..n)/(n-1))/AverageT;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If &amp;nbsp;&lt;strong&gt;n&amp;nbsp;&lt;/strong&gt; increases, the &lt;strong&gt;theta&lt;/strong&gt; will be close to &amp;nbsp;&lt;strong&gt;Int_theta &lt;/strong&gt;.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;In my code, I relied on your formula, in which the number &amp;nbsp;&lt;strong&gt;n&lt;/strong&gt;&amp;nbsp; determines the size of the segment of the boundary value problem and the number of parts into which divided this segment. If we divide these two parameters, we obtain a slightly more general problem. The number &amp;nbsp;&lt;strong&gt;theta&lt;/strong&gt; can also be considered discretely as in your formula, and it can more accurately be considered by the integral, if your last formula to the limit as &amp;nbsp;&lt;strong&gt;n&lt;/strong&gt;&amp;nbsp; tends to infinity. In the example below &lt;strong&gt;0.001&lt;/strong&gt; step corresponds to the division of the interval from 0 to 3 per &lt;strong&gt;3000&lt;/strong&gt; parts:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;restart;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;a:=3: &amp;nbsp;n:=3000:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ode:=diff(T(x),x$2)-T(x)^2=0;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;bc:=T(0)=1,T(a)=0;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;V:=dsolve({ode, bc}, numeric):&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;AverageT:=evalf(Int(x-&amp;gt;rhs(V(x)[2]), 0..a))/a;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;`T`:=[seq(rhs(V(x)[2]), x=a/n..a, a/n)]:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Int_theta:=evalf(sqrt(Int(x-&amp;gt;(rhs(V(x)[2])-AverageT)^2, 0..a)/a)/AverageT);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;theta:=sqrt(add((`T`[i]-AverageT)^2, i=1..n)/(n-1))/AverageT;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If &amp;nbsp;&lt;strong&gt;n&amp;nbsp;&lt;/strong&gt; increases, the &lt;strong&gt;theta&lt;/strong&gt; will be close to &amp;nbsp;&lt;strong&gt;Int_theta &lt;/strong&gt;.&lt;/p&gt;</description>
      <guid>142122</guid>
      <pubDate>Mon, 07 Jan 2013 21:11:44 Z</pubDate>
      <itunes:author>Kitonum</itunes:author>
      <author>Kitonum</author>
    </item>
    <item>
      <title>step size?</title>
      <link>http://www.mapleprimes.com/questions/142116-How-To-Sum-In-Maple?ref=Feed:MaplePrimes:How to sum in maple?:Comments#comment142118</link>
      <itunes:summary>&lt;p&gt;thx for your kind response. For high accuracy if we want to take the step size of the interval [0 3] 0.001 then calculate the average and sum, will this have any effects on the output?&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;thx for your kind response. For high accuracy if we want to take the step size of the interval [0 3] 0.001 then calculate the average and sum, will this have any effects on the output?&lt;/p&gt;</description>
      <guid>142118</guid>
      <pubDate>Mon, 07 Jan 2013 16:29:55 Z</pubDate>
      <itunes:author>J4James</itunes:author>
      <author>J4James</author>
    </item>
    <item>
      <title>A variation</title>
      <link>http://www.mapleprimes.com/questions/142116-How-To-Sum-In-Maple?ref=Feed:MaplePrimes:How to sum in maple?:Comments#comment142121</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/142116-How-To-Sum-In-Maple#comment142118"&gt;@J4James&lt;/a&gt; Changing slightly the answer by Kitonum you could do the following.&lt;/p&gt;
&lt;p&gt;restart;&lt;br&gt;n:=3:&lt;br&gt;ode1:=diff(T(x),x$2)-T(x)^2=0;&lt;br&gt;ode2:=diff(S(x),x)=T(x); #To find the T average&lt;br&gt;bc:=T(0)=1,T(n)=0,S(0)=0;&lt;br&gt;V:=dsolve({ode1,ode2, bc}, numeric,output=listprocedure);&lt;br&gt;VT,VS:=op(subs(V,[T(x),S(x)]));&lt;br&gt;AverageT:=VS(n)/n;&lt;br&gt;dx:=1/1000;&lt;br&gt;Tseq:=seq(VT(i),i=0..n,dx): &lt;br&gt;N:=nops([Tseq]);&lt;br&gt;theta1:=sqrt(add((Tseq[i]-AverageT)^2, i=1..N)/(N-1))/AverageT;&lt;br&gt;#N is roughly&lt;br&gt;n/dx;&lt;br&gt;#so you could integrate instead of sum:&lt;br&gt;theta2:=sqrt( evalf(Int((VT(x)-AverageT)^2,x=0..n))/n)/AverageT;&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/142116-How-To-Sum-In-Maple#comment142118"&gt;@J4James&lt;/a&gt; Changing slightly the answer by Kitonum you could do the following.&lt;/p&gt;
&lt;p&gt;restart;&lt;br&gt;n:=3:&lt;br&gt;ode1:=diff(T(x),x$2)-T(x)^2=0;&lt;br&gt;ode2:=diff(S(x),x)=T(x); #To find the T average&lt;br&gt;bc:=T(0)=1,T(n)=0,S(0)=0;&lt;br&gt;V:=dsolve({ode1,ode2, bc}, numeric,output=listprocedure);&lt;br&gt;VT,VS:=op(subs(V,[T(x),S(x)]));&lt;br&gt;AverageT:=VS(n)/n;&lt;br&gt;dx:=1/1000;&lt;br&gt;Tseq:=seq(VT(i),i=0..n,dx): &lt;br&gt;N:=nops([Tseq]);&lt;br&gt;theta1:=sqrt(add((Tseq[i]-AverageT)^2, i=1..N)/(N-1))/AverageT;&lt;br&gt;#N is roughly&lt;br&gt;n/dx;&lt;br&gt;#so you could integrate instead of sum:&lt;br&gt;theta2:=sqrt( evalf(Int((VT(x)-AverageT)^2,x=0..n))/n)/AverageT;&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>142121</guid>
      <pubDate>Mon, 07 Jan 2013 20:29:23 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>No difference between T and `T`</title>
      <link>http://www.mapleprimes.com/questions/142116-How-To-Sum-In-Maple?ref=Feed:MaplePrimes:How to sum in maple?:Comments#comment142130</link>
      <itunes:summary>&lt;p&gt;Notice that there is no difference between the name T and the name `T`.&lt;br&gt;However, something like `T ` (i.e. a space after T) would be different from T. That is why in my comment above I called the same quantity Tseq.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Notice that there is no difference between the name T and the name `T`.&lt;br&gt;However, something like `T ` (i.e. a space after T) would be different from T. That is why in my comment above I called the same quantity Tseq.&lt;/p&gt;</description>
      <guid>142130</guid>
      <pubDate>Tue, 08 Jan 2013 01:00:26 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
  </channel>
</rss>