<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Assign value on array entries</title>
    <link>http://www.mapleprimes.com/questions/40830-Assign-Value-On-Array-Entries</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 12:03:21 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 12:03:21 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Assign value on array entries</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Assign value on array entries</title>
      <link>http://www.mapleprimes.com/questions/40830-Assign-Value-On-Array-Entries</link>
    </image>
    <item>
      <title>One approach: assign</title>
      <link>http://www.mapleprimes.com/questions/40830-Assign-Value-On-Array-Entries?ref=Feed:MaplePrimes:Assign value on array entries:Comments#answer75631</link>
      <itunes:summary>One way to do make this type of assignment is with the assign command. The argument to assign needs to be an equation, or a list or set of equations. There are many ways to construct the equations. You can use a loop (or seq) but I like to promote the zip command. The first argument of zip is a mapping from elements of two different lists/sets/arrays.

&lt;pre&gt;
&gt; restart;
&gt; Ecce:=array(1..2,[x,y]);
                              Ecce := [ x y ]
&gt; ZERO:=array(1..2,[0,0]);
                              ZERO := [ 0 0 ]
&gt; eqs := zip( (n,v)-&gt;n=v, Ecce, ZERO );
                          eqs := [ x = 0  y = 0 ]
&gt; zip( (n,v)-&gt;assign(n=v), Ecce, ZERO ):
&gt; 'x'=x,'y'=y;
                                x = 0, y = 0
&lt;/pre&gt;
Note that the output from the first zip is an array (there is no comma between the elements). If we were working with lists, we could work as follows:
&lt;pre&gt;
&gt; unassign( 'x', 'y' );
&gt; eqs := zip( (n,v)-&gt;n=v, convert(Ecce,list), convert(ZERO,list) );
                               [x = 0, y = 0]
&gt; assign( eqs );
&gt; 'x'=x,'y'=y;
                                x = 0, y = 0
&lt;/pre&gt;
Note the comman between the elements in eqs. Also, it was necessary to unassign the previous assignments before we could repeat this step. An alternate here would have been to use restart to completely erase everything.

I hope this is instructive,

Doug
&lt;pre&gt;
---------------------------------------------------------------------
Douglas B. Meade
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu       
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu/~meade/
&lt;/pre&gt;</itunes:summary>
      <description>One way to do make this type of assignment is with the assign command. The argument to assign needs to be an equation, or a list or set of equations. There are many ways to construct the equations. You can use a loop (or seq) but I like to promote the zip command. The first argument of zip is a mapping from elements of two different lists/sets/arrays.

&lt;pre&gt;
&gt; restart;
&gt; Ecce:=array(1..2,[x,y]);
                              Ecce := [ x y ]
&gt; ZERO:=array(1..2,[0,0]);
                              ZERO := [ 0 0 ]
&gt; eqs := zip( (n,v)-&gt;n=v, Ecce, ZERO );
                          eqs := [ x = 0  y = 0 ]
&gt; zip( (n,v)-&gt;assign(n=v), Ecce, ZERO ):
&gt; 'x'=x,'y'=y;
                                x = 0, y = 0
&lt;/pre&gt;
Note that the output from the first zip is an array (there is no comma between the elements). If we were working with lists, we could work as follows:
&lt;pre&gt;
&gt; unassign( 'x', 'y' );
&gt; eqs := zip( (n,v)-&gt;n=v, convert(Ecce,list), convert(ZERO,list) );
                               [x = 0, y = 0]
&gt; assign( eqs );
&gt; 'x'=x,'y'=y;
                                x = 0, y = 0
&lt;/pre&gt;
Note the comman between the elements in eqs. Also, it was necessary to unassign the previous assignments before we could repeat this step. An alternate here would have been to use restart to completely erase everything.

I hope this is instructive,

Doug
&lt;pre&gt;
---------------------------------------------------------------------
Douglas B. Meade
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu       
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu/~meade/
&lt;/pre&gt;</description>
      <guid>75631</guid>
      <pubDate>Mon, 17 Sep 2007 06:00:04 Z</pubDate>
      <itunes:author>Doug Meade</itunes:author>
      <author>Doug Meade</author>
    </item>
    <item>
      <title>Thank you</title>
      <link>http://www.mapleprimes.com/questions/40830-Assign-Value-On-Array-Entries?ref=Feed:MaplePrimes:Assign value on array entries:Comments#answer75620</link>
      <itunes:summary>Hi,

thank you for your rapid and useful help.
I wish to ask you about innumerable questions!

I've to use maple to study some asymptotic expansion for the Gauss-Codazzi eq.
That is

R[ijkm] = eta[A,B] (∇[i]∇[k] z^A ∇[j]∇[m] z^B - (A-&gt;B))

(I'm not sure that the maple tag work so I write the source:
R[ijkm] = eta[A,B] (∇[i]∇[k] z^A ∇[j]∇[m] z^B - (A-&gt;B)))

in which I consider expansion for the z^A functions, e for the Christoffel symbols (so Nabla also is an expansion) (eta is a high dimensional minkowski diagonal matrix, and is implicit the sum A=1..6, B=1..6)
That I would is to isolate the term of the riemann tensor proportional to the several power of the expansion parameter.
The problem is that if I let maple to do the explicit sum I've not a &lt;em&gt;symbolic&lt;/em&gt; and compact answer because I can't "recognize" the summation terms (this will be excessively time expensive, nearly that do the calculus by hand!!!).
On the other hand if I use the add command, maple don't expand the summation, and there is no simplifications!)

Thank you for any help!!!!
S.V.
</itunes:summary>
      <description>Hi,

thank you for your rapid and useful help.
I wish to ask you about innumerable questions!

I've to use maple to study some asymptotic expansion for the Gauss-Codazzi eq.
That is

R[ijkm] = eta[A,B] (∇[i]∇[k] z^A ∇[j]∇[m] z^B - (A-&gt;B))

(I'm not sure that the maple tag work so I write the source:
R[ijkm] = eta[A,B] (∇[i]∇[k] z^A ∇[j]∇[m] z^B - (A-&gt;B)))

in which I consider expansion for the z^A functions, e for the Christoffel symbols (so Nabla also is an expansion) (eta is a high dimensional minkowski diagonal matrix, and is implicit the sum A=1..6, B=1..6)
That I would is to isolate the term of the riemann tensor proportional to the several power of the expansion parameter.
The problem is that if I let maple to do the explicit sum I've not a &lt;em&gt;symbolic&lt;/em&gt; and compact answer because I can't "recognize" the summation terms (this will be excessively time expensive, nearly that do the calculus by hand!!!).
On the other hand if I use the add command, maple don't expand the summation, and there is no simplifications!)

Thank you for any help!!!!
S.V.
</description>
      <guid>75620</guid>
      <pubDate>Tue, 18 Sep 2007 01:25:27 Z</pubDate>
      <itunes:author>sasomao</itunes:author>
      <author>sasomao</author>
    </item>
    <item>
      <title>I don't see the difficulty, or the problem (more info requested)</title>
      <link>http://www.mapleprimes.com/questions/40830-Assign-Value-On-Array-Entries?ref=Feed:MaplePrimes:Assign value on array entries:Comments#answer75611</link>
      <itunes:summary>S.V.,

I'm glad my previous response was useful.

Let's see what I can do with your newest question.

First, there appears to be a mismatched single quote. After adding a single quote before doublederivcov, here is what I get from Maple 11 for add, sum, and Sum:

&lt;pre&gt;
restart;
addRiemann:=Array(1..4,1..4,1..4,1..4,(i,j,k,m)-&gt;add(add(''eta''[A,B]*('doublederivcov'(Z(X[])[A],Chris(X[]),i,k)*'doublederivcov'(Z(X[])[B],Chris(X[]),j,m) -'doublederivcov'(Z(X[])[A],Chris(X[]),j,k)*'doublederivcov'(Z(X[])[B],Chris(X[]),i,m)),A=1..6),B=1..6)):
sumRiemann:=Array(1..4,1..4,1..4,1..4,(i,j,k,m)-&gt;sum(sum(''eta''[A,B]*('doublederivcov'(Z(X[])[A],Chris(X[]),i,k)*'doublederivcov'(Z(X[])[B],Chris(X[]),j,m) -'doublederivcov'(Z(X[])[A],Chris(X[]),j,k)*'doublederivcov'(Z(X[])[B],Chris(X[]),i,m)),A=1..6),B=1..6)):
SumRiemann:=Array(1..4,1..4,1..4,1..4,(i,j,k,m)-&gt;Sum(Sum(''eta''[A,B]*('doublederivcov'(Z(X[])[A],Chris(X[]),i,k)*'doublederivcov'(Z(X[])[B],Chris(X[]),j,m) -'doublederivcov'(Z(X[])[A],Chris(X[]),j,k)*'doublederivcov'(Z(X[])[B],Chris(X[]),i,m)),A=1..6),B=1..6)):
addRiemann[1,1,1..4,1..4]; convert(%,listlist);
                           Array(%id = 164471836)
          [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]
sumRiemann[1,1,1..4,1..4]; convert(%,listlist);
                           Array(%id = 164517788)
          [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]
SumRiemann[1,1,1..4,1..4]; convert(%,listlist);
                           Array(%id = 164580792)
  [[  6   /  6    \    6   /  6    \    6   /  6    \    6   /  6    \]  
  [[----- |-----  |  ----- |-----  |  ----- |-----  |  ----- |-----  |]  
  [[ \    | \     |   \    | \     |   \    | \     |   \    | \     |]  
  [[  )   |  )    |    )   |  )    |    )   |  )    |    )   |  )    |]  
  [[ /    | /    0|,  /    | /    0|,  /    | /    0|,  /    | /    0|], 
  [[----- |-----  |  ----- |-----  |  ----- |-----  |  ----- |-----  |]  
  [[B = 1 \A = 1  /  B = 1 \A = 1  /  B = 1 \A = 1  /  B = 1 \A = 1  /]  

    [  6   /  6    \    6   /  6    \    6   /  6    \    6   /  6    \]  
    [----- |-----  |  ----- |-----  |  ----- |-----  |  ----- |-----  |]  
    [ \    | \     |   \    | \     |   \    | \     |   \    | \     |]  
    [  )   |  )    |    )   |  )    |    )   |  )    |    )   |  )    |]  
    [ /    | /    0|,  /    | /    0|,  /    | /    0|,  /    | /    0|], 
    [----- |-----  |  ----- |-----  |  ----- |-----  |  ----- |-----  |]  
    [B = 1 \A = 1  /  B = 1 \A = 1  /  B = 1 \A = 1  /  B = 1 \A = 1  /]  

    [  6   /  6    \    6   /  6    \    6   /  6    \    6   /  6    \]  
    [----- |-----  |  ----- |-----  |  ----- |-----  |  ----- |-----  |]  
    [ \    | \     |   \    | \     |   \    | \     |   \    | \     |]  
    [  )   |  )    |    )   |  )    |    )   |  )    |    )   |  )    |]  
    [ /    | /    0|,  /    | /    0|,  /    | /    0|,  /    | /    0|], 
    [----- |-----  |  ----- |-----  |  ----- |-----  |  ----- |-----  |]  
    [B = 1 \A = 1  /  B = 1 \A = 1  /  B = 1 \A = 1  /  B = 1 \A = 1  /]  

    [  6   /  6    \    6   /  6    \    6   /  6    \    6   /  6    \]]
    [----- |-----  |  ----- |-----  |  ----- |-----  |  ----- |-----  |]]
    [ \    | \     |   \    | \     |   \    | \     |   \    | \     |]]
    [  )   |  )    |    )   |  )    |    )   |  )    |    )   |  )    |]]
    [ /    | /    0|,  /    | /    0|,  /    | /    0|,  /    | /    0|]]
    [----- |-----  |  ----- |-----  |  ----- |-----  |  ----- |-----  |]]
    [B = 1 \A = 1  /  B = 1 \A = 1  /  B = 1 \A = 1  /  B = 1 \A = 1  /]]
value( SumRiemann[1,1,1..4,1..4] ); convert(%,listlist);
                           Array(%id = 149420696)
          [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]
&lt;/pre&gt;

Because it is not possible to copy the "Array" contents from the worksheet to another application without losing the contents (WYSInotWYG), I have uploaded the worksheet to MaplePrimes. You can access it from the following links:&lt;br&gt; &lt;a href='http://maplenet.maplesoft.com/maplenet/worksheet/mapleprimes/178_RiemannTensor.mw'&gt;View 178_RiemannTensor.mw on MapleNet&lt;/a&gt; or &lt;a href='http://www.mapleprimes.com/files/178_RiemannTensor.mw'&gt;Download 178_RiemannTensor.mw&lt;/a&gt;&lt;br/&gt;&lt;a href='http://www.mapleprimes.com/viewfile/1759'&gt;View file details&lt;/a&gt;

So, I do not see any problem with any of the three forms for constructing this tensor. Of course, I do not have your definitions for doublederivcov, Chris, X, Z, ... so my results are not very interesting.

In general, because you have a fixed finite sum, I would think that you would want to use add. You should be using sum only if you think the individual terms involved will include expressions that could benefit from a summation formula. Only after the specifics of this problem are known can I make a final suggestion about this.

Doug
&lt;pre&gt;
---------------------------------------------------------------------
Douglas B. Meade
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu       
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu/~meade/
&lt;/pre&gt;</itunes:summary>
      <description>S.V.,

I'm glad my previous response was useful.

Let's see what I can do with your newest question.

First, there appears to be a mismatched single quote. After adding a single quote before doublederivcov, here is what I get from Maple 11 for add, sum, and Sum:

&lt;pre&gt;
restart;
addRiemann:=Array(1..4,1..4,1..4,1..4,(i,j,k,m)-&gt;add(add(''eta''[A,B]*('doublederivcov'(Z(X[])[A],Chris(X[]),i,k)*'doublederivcov'(Z(X[])[B],Chris(X[]),j,m) -'doublederivcov'(Z(X[])[A],Chris(X[]),j,k)*'doublederivcov'(Z(X[])[B],Chris(X[]),i,m)),A=1..6),B=1..6)):
sumRiemann:=Array(1..4,1..4,1..4,1..4,(i,j,k,m)-&gt;sum(sum(''eta''[A,B]*('doublederivcov'(Z(X[])[A],Chris(X[]),i,k)*'doublederivcov'(Z(X[])[B],Chris(X[]),j,m) -'doublederivcov'(Z(X[])[A],Chris(X[]),j,k)*'doublederivcov'(Z(X[])[B],Chris(X[]),i,m)),A=1..6),B=1..6)):
SumRiemann:=Array(1..4,1..4,1..4,1..4,(i,j,k,m)-&gt;Sum(Sum(''eta''[A,B]*('doublederivcov'(Z(X[])[A],Chris(X[]),i,k)*'doublederivcov'(Z(X[])[B],Chris(X[]),j,m) -'doublederivcov'(Z(X[])[A],Chris(X[]),j,k)*'doublederivcov'(Z(X[])[B],Chris(X[]),i,m)),A=1..6),B=1..6)):
addRiemann[1,1,1..4,1..4]; convert(%,listlist);
                           Array(%id = 164471836)
          [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]
sumRiemann[1,1,1..4,1..4]; convert(%,listlist);
                           Array(%id = 164517788)
          [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]
SumRiemann[1,1,1..4,1..4]; convert(%,listlist);
                           Array(%id = 164580792)
  [[  6   /  6    \    6   /  6    \    6   /  6    \    6   /  6    \]  
  [[----- |-----  |  ----- |-----  |  ----- |-----  |  ----- |-----  |]  
  [[ \    | \     |   \    | \     |   \    | \     |   \    | \     |]  
  [[  )   |  )    |    )   |  )    |    )   |  )    |    )   |  )    |]  
  [[ /    | /    0|,  /    | /    0|,  /    | /    0|,  /    | /    0|], 
  [[----- |-----  |  ----- |-----  |  ----- |-----  |  ----- |-----  |]  
  [[B = 1 \A = 1  /  B = 1 \A = 1  /  B = 1 \A = 1  /  B = 1 \A = 1  /]  

    [  6   /  6    \    6   /  6    \    6   /  6    \    6   /  6    \]  
    [----- |-----  |  ----- |-----  |  ----- |-----  |  ----- |-----  |]  
    [ \    | \     |   \    | \     |   \    | \     |   \    | \     |]  
    [  )   |  )    |    )   |  )    |    )   |  )    |    )   |  )    |]  
    [ /    | /    0|,  /    | /    0|,  /    | /    0|,  /    | /    0|], 
    [----- |-----  |  ----- |-----  |  ----- |-----  |  ----- |-----  |]  
    [B = 1 \A = 1  /  B = 1 \A = 1  /  B = 1 \A = 1  /  B = 1 \A = 1  /]  

    [  6   /  6    \    6   /  6    \    6   /  6    \    6   /  6    \]  
    [----- |-----  |  ----- |-----  |  ----- |-----  |  ----- |-----  |]  
    [ \    | \     |   \    | \     |   \    | \     |   \    | \     |]  
    [  )   |  )    |    )   |  )    |    )   |  )    |    )   |  )    |]  
    [ /    | /    0|,  /    | /    0|,  /    | /    0|,  /    | /    0|], 
    [----- |-----  |  ----- |-----  |  ----- |-----  |  ----- |-----  |]  
    [B = 1 \A = 1  /  B = 1 \A = 1  /  B = 1 \A = 1  /  B = 1 \A = 1  /]  

    [  6   /  6    \    6   /  6    \    6   /  6    \    6   /  6    \]]
    [----- |-----  |  ----- |-----  |  ----- |-----  |  ----- |-----  |]]
    [ \    | \     |   \    | \     |   \    | \     |   \    | \     |]]
    [  )   |  )    |    )   |  )    |    )   |  )    |    )   |  )    |]]
    [ /    | /    0|,  /    | /    0|,  /    | /    0|,  /    | /    0|]]
    [----- |-----  |  ----- |-----  |  ----- |-----  |  ----- |-----  |]]
    [B = 1 \A = 1  /  B = 1 \A = 1  /  B = 1 \A = 1  /  B = 1 \A = 1  /]]
value( SumRiemann[1,1,1..4,1..4] ); convert(%,listlist);
                           Array(%id = 149420696)
          [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]
&lt;/pre&gt;

Because it is not possible to copy the "Array" contents from the worksheet to another application without losing the contents (WYSInotWYG), I have uploaded the worksheet to MaplePrimes. You can access it from the following links:&lt;br&gt; &lt;a href='http://maplenet.maplesoft.com/maplenet/worksheet/mapleprimes/178_RiemannTensor.mw'&gt;View 178_RiemannTensor.mw on MapleNet&lt;/a&gt; or &lt;a href='http://www.mapleprimes.com/files/178_RiemannTensor.mw'&gt;Download 178_RiemannTensor.mw&lt;/a&gt;&lt;br/&gt;&lt;a href='http://www.mapleprimes.com/viewfile/1759'&gt;View file details&lt;/a&gt;

So, I do not see any problem with any of the three forms for constructing this tensor. Of course, I do not have your definitions for doublederivcov, Chris, X, Z, ... so my results are not very interesting.

In general, because you have a fixed finite sum, I would think that you would want to use add. You should be using sum only if you think the individual terms involved will include expressions that could benefit from a summation formula. Only after the specifics of this problem are known can I make a final suggestion about this.

Doug
&lt;pre&gt;
---------------------------------------------------------------------
Douglas B. Meade
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu       
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu/~meade/
&lt;/pre&gt;</description>
      <guid>75611</guid>
      <pubDate>Tue, 18 Sep 2007 16:42:20 Z</pubDate>
      <itunes:author>Doug Meade</itunes:author>
      <author>Doug Meade</author>
    </item>
    <item>
      <title>My worksheet</title>
      <link>http://www.mapleprimes.com/questions/40830-Assign-Value-On-Array-Entries?ref=Feed:MaplePrimes:Assign value on array entries:Comments#answer75610</link>
      <itunes:summary>Hi 

another thank you for the reply.
I think that this worked for you because you don't have the definitions for the functions and operator. So I've charged the ws. It's here
&lt;a href='http://maplenet.maplesoft.com/maplenet/worksheet/mapleprimes/4492_secondo ordine2.mw'&gt;View 4492_secondo ordine2.mw on MapleNet&lt;/a&gt; or &lt;a href='http://www.mapleprimes.com/files/4492_secondo ordine2.mw'&gt;Download 4492_secondo ordine2.mw&lt;/a&gt;&lt;br/&gt;&lt;a href='http://www.mapleprimes.com/viewfile/1761'&gt;View file details&lt;/a&gt;

I've asked some questions on the worksheet

Tk

Salvatore</itunes:summary>
      <description>Hi 

another thank you for the reply.
I think that this worked for you because you don't have the definitions for the functions and operator. So I've charged the ws. It's here
&lt;a href='http://maplenet.maplesoft.com/maplenet/worksheet/mapleprimes/4492_secondo ordine2.mw'&gt;View 4492_secondo ordine2.mw on MapleNet&lt;/a&gt; or &lt;a href='http://www.mapleprimes.com/files/4492_secondo ordine2.mw'&gt;Download 4492_secondo ordine2.mw&lt;/a&gt;&lt;br/&gt;&lt;a href='http://www.mapleprimes.com/viewfile/1761'&gt;View file details&lt;/a&gt;

I've asked some questions on the worksheet

Tk

Salvatore</description>
      <guid>75610</guid>
      <pubDate>Tue, 18 Sep 2007 18:04:11 Z</pubDate>
      <itunes:author>sasomao</itunes:author>
      <author>sasomao</author>
    </item>
    <item>
      <title>In all cases,
what I want is</title>
      <link>http://www.mapleprimes.com/questions/40830-Assign-Value-On-Array-Entries?ref=Feed:MaplePrimes:Assign value on array entries:Comments#comment85007</link>
      <itunes:summary>In all cases, 
what I want is a &lt;em&gt;formal&lt;/em&gt; result for the riemann tensor. That is, I would know the ijkm component without fix the actual value for i j k m (after all the possible simplification).
I don't understand if Maple can do it. 
Can you make clearer this point?

Tk
Salvatore</itunes:summary>
      <description>In all cases, 
what I want is a &lt;em&gt;formal&lt;/em&gt; result for the riemann tensor. That is, I would know the ijkm component without fix the actual value for i j k m (after all the possible simplification).
I don't understand if Maple can do it. 
Can you make clearer this point?

Tk
Salvatore</description>
      <guid>85007</guid>
      <pubDate>Tue, 18 Sep 2007 18:35:16 Z</pubDate>
      <itunes:author>sasomao</itunes:author>
      <author>sasomao</author>
    </item>
    <item>
      <title>About sum/add</title>
      <link>http://www.mapleprimes.com/questions/40830-Assign-Value-On-Array-Entries?ref=Feed:MaplePrimes:Assign value on array entries:Comments#comment85008</link>
      <itunes:summary>&lt;blockquote&gt;The problem is that if I let maple to do the explicit sum I've not a symbolic and compact answer 
because I can't "recognize" the summation terms (this will be excessively time expensive, nearly that do the calculus by hand!!!).
On the other hand if I use the add command, maple don't expand the summation, and there is no simplifications!)&lt;/blockquote&gt;

Obviously I've reversed the role of "add" and "sum"
About the use of add ad sum: if I create this array:

Riemann:=Array(1..4,1..4,1..4,1..4,(i,j,k,m)-&gt;add(add(''eta''[A,B]*('doublederivcov'(Z(X[])[A],Chris(X[]),i,k)*'doublederivcov'(Z(X[])[B],Chris(X[]),j,m) -doublederivcov'(Z(X[])[A],Chris(X[]),j,k)*'doublederivcov'(Z(X[])[B],Chris(X[]),i,m)),A=1..6),B=1..6))

it work. But if I do the same declaration with sum (or Sum) at the place of the two "add", maple print 
&lt;em&gt;Error, bad index into Array&lt;/em&gt;
So, how can I do create an array which entries are unevalued sum, without bad index error?

Thank you
S.V.</itunes:summary>
      <description>&lt;blockquote&gt;The problem is that if I let maple to do the explicit sum I've not a symbolic and compact answer 
because I can't "recognize" the summation terms (this will be excessively time expensive, nearly that do the calculus by hand!!!).
On the other hand if I use the add command, maple don't expand the summation, and there is no simplifications!)&lt;/blockquote&gt;

Obviously I've reversed the role of "add" and "sum"
About the use of add ad sum: if I create this array:

Riemann:=Array(1..4,1..4,1..4,1..4,(i,j,k,m)-&gt;add(add(''eta''[A,B]*('doublederivcov'(Z(X[])[A],Chris(X[]),i,k)*'doublederivcov'(Z(X[])[B],Chris(X[]),j,m) -doublederivcov'(Z(X[])[A],Chris(X[]),j,k)*'doublederivcov'(Z(X[])[B],Chris(X[]),i,m)),A=1..6),B=1..6))

it work. But if I do the same declaration with sum (or Sum) at the place of the two "add", maple print 
&lt;em&gt;Error, bad index into Array&lt;/em&gt;
So, how can I do create an array which entries are unevalued sum, without bad index error?

Thank you
S.V.</description>
      <guid>85008</guid>
      <pubDate>Tue, 18 Sep 2007 13:36:49 Z</pubDate>
      <itunes:author>sasomao</itunes:author>
      <author>sasomao</author>
    </item>
  </channel>
</rss>