<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Generating list of equations to solve</title>
    <link>http://www.mapleprimes.com/questions/128824-Generating-List-Of-Equations-To-Solve</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Sat, 13 Jun 2026 20:01:18 GMT</lastBuildDate>
    <pubDate>Sat, 13 Jun 2026 20:01:18 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Generating list of equations to solve</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Generating list of equations to solve</title>
      <link>http://www.mapleprimes.com/questions/128824-Generating-List-Of-Equations-To-Solve</link>
    </image>
    <item>
      <title>hard to see</title>
      <link>http://www.mapleprimes.com/questions/128824-Generating-List-Of-Equations-To-Solve?ref=Feed:MaplePrimes:Generating list of equations to solve:Comments#answer128827</link>
      <itunes:summary>&lt;p&gt;I'm having a hard time reading the Maple code, the font displays badly on my machine.&amp;nbsp; It appears that you wrote&lt;/p&gt;
&lt;p&gt;col := seq(fn_i = ... , i = 1..9);&lt;/p&gt;
&lt;p&gt;You probably want to change that to&lt;/p&gt;
&lt;p&gt;col = seq(fn[i] = ... i=1..9);&lt;/p&gt;
&lt;p&gt;Just to confuse the matter, they could be equivalent, since typing underscore in 2D match is equivalent to using square brackets, however, if you had done that I wouldn't expect to *see* the underscore in the text, it would have expanded to a subscript.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I'm having a hard time reading the Maple code, the font displays badly on my machine.&amp;nbsp; It appears that you wrote&lt;/p&gt;
&lt;p&gt;col := seq(fn_i = ... , i = 1..9);&lt;/p&gt;
&lt;p&gt;You probably want to change that to&lt;/p&gt;
&lt;p&gt;col = seq(fn[i] = ... i=1..9);&lt;/p&gt;
&lt;p&gt;Just to confuse the matter, they could be equivalent, since typing underscore in 2D match is equivalent to using square brackets, however, if you had done that I wouldn't expect to *see* the underscore in the text, it would have expanded to a subscript.&lt;/p&gt;</description>
      <guid>128827</guid>
      <pubDate>Thu, 15 Dec 2011 20:51:17 Z</pubDate>
      <itunes:author>Joe Riel</itunes:author>
      <author>Joe Riel</author>
    </item>
    <item>
      <title>catenation and solve</title>
      <link>http://www.mapleprimes.com/questions/128824-Generating-List-Of-Equations-To-Solve?ref=Feed:MaplePrimes:Generating list of equations to solve:Comments#answer128841</link>
      <itunes:summary>&lt;p&gt;Could be, I'm also using linux.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There are two problems.&amp;nbsp; Because you are using actual underscores (rather than indices) for the names, you cannot use&lt;/p&gt;
&lt;pre&gt;seq( ... fp_i ... , i = 1..9)&lt;/pre&gt;
&lt;p&gt;to reference the fp_x variables.&amp;nbsp; You can fix that by using the catenate operator, ||&lt;/p&gt;
&lt;pre&gt;col := seq(fn_||i = (1-1/tau)*fp_||i + 1/tau * feq(i), i = 1..9):&lt;/pre&gt;
&lt;p&gt;The second problem is that while you have 10 equations, you only give solve 7 variables.&amp;nbsp; You need to specify more variables. For example&lt;/p&gt;
&lt;pre&gt;eqs := { massconserv, col };&lt;br&gt;vars := { seq(fp_||i, i=1..9), rho_wall }:&lt;br&gt;solve(eqs, vars);&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;Could be, I'm also using linux.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There are two problems.&amp;nbsp; Because you are using actual underscores (rather than indices) for the names, you cannot use&lt;/p&gt;
&lt;pre&gt;seq( ... fp_i ... , i = 1..9)&lt;/pre&gt;
&lt;p&gt;to reference the fp_x variables.&amp;nbsp; You can fix that by using the catenate operator, ||&lt;/p&gt;
&lt;pre&gt;col := seq(fn_||i = (1-1/tau)*fp_||i + 1/tau * feq(i), i = 1..9):&lt;/pre&gt;
&lt;p&gt;The second problem is that while you have 10 equations, you only give solve 7 variables.&amp;nbsp; You need to specify more variables. For example&lt;/p&gt;
&lt;pre&gt;eqs := { massconserv, col };&lt;br&gt;vars := { seq(fp_||i, i=1..9), rho_wall }:&lt;br&gt;solve(eqs, vars);&lt;/pre&gt;</description>
      <guid>128841</guid>
      <pubDate>Fri, 16 Dec 2011 01:04:37 Z</pubDate>
      <itunes:author>Joe Riel</itunes:author>
      <author>Joe Riel</author>
    </item>
    <item>
      <title>In maple i'm using 2D input so fn_i is being</title>
      <link>http://www.mapleprimes.com/questions/128824-Generating-List-Of-Equations-To-Solve?ref=Feed:MaplePrimes:Generating list of equations to solve:Comments#comment128833</link>
      <itunes:summary>&lt;p&gt;In maple i'm using 2D input so fn_i is being evaluated as a index, so I don't think that's the problem. Is seq the correct command to generate a system of equations like this?&lt;/p&gt;
&lt;p&gt;The text looks a little weird to me aswell, I thought it was just because I was using linux. Here's it in normal text:&lt;/p&gt;
&lt;p&gt;rho_in := fp_5 + fp_7 + fp_8&lt;/p&gt;
&lt;p&gt;rho_out := fn_4 + fn_6 + fn_9&lt;/p&gt;
&lt;p&gt;massconserv := rho_in = rho_out&lt;/p&gt;
&lt;p&gt;w:= [ 4/9, 1/9, 1/9, 1/9, 1/9, 1/36, 1/36, 1/36, 1/36 ]&lt;/p&gt;
&lt;p&gt;feq := i-&amp;gt; rho_wall * w[i]&lt;/p&gt;
&lt;p&gt;col := seq(fn_i = (1-1/tau)*fp_i + 1/tau * feq(i), i = 1..9)&lt;/p&gt;
&lt;p&gt;solve( { massconserv, col }, { fp_4, fp_5, fp_6, fp_7, fp_8, fp_9, rho_wall } )&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;In maple i'm using 2D input so fn_i is being evaluated as a index, so I don't think that's the problem. Is seq the correct command to generate a system of equations like this?&lt;/p&gt;
&lt;p&gt;The text looks a little weird to me aswell, I thought it was just because I was using linux. Here's it in normal text:&lt;/p&gt;
&lt;p&gt;rho_in := fp_5 + fp_7 + fp_8&lt;/p&gt;
&lt;p&gt;rho_out := fn_4 + fn_6 + fn_9&lt;/p&gt;
&lt;p&gt;massconserv := rho_in = rho_out&lt;/p&gt;
&lt;p&gt;w:= [ 4/9, 1/9, 1/9, 1/9, 1/9, 1/36, 1/36, 1/36, 1/36 ]&lt;/p&gt;
&lt;p&gt;feq := i-&amp;gt; rho_wall * w[i]&lt;/p&gt;
&lt;p&gt;col := seq(fn_i = (1-1/tau)*fp_i + 1/tau * feq(i), i = 1..9)&lt;/p&gt;
&lt;p&gt;solve( { massconserv, col }, { fp_4, fp_5, fp_6, fp_7, fp_8, fp_9, rho_wall } )&lt;/p&gt;</description>
      <guid>128833</guid>
      <pubDate>Thu, 15 Dec 2011 22:32:08 Z</pubDate>
      <itunes:author>kieranhood</itunes:author>
      <author>kieranhood</author>
    </item>
  </channel>
</rss>