Sponsored links: Algebra eBooks ### The Maxima on-line user's manual

Algebra Calculator

#### Search: #### Lsum

Function: lsum (<expr>, <x>, <L>) Represents the sum of <expr> for each element <x> in <L>. A noun form lsum is returned if the argument <L> does not evaluate to a list.

Examples:

```          (%i1) lsum (x^i, i, [1, 2, 7]);
7    2
(%o1)                      x  + x  + x
(%i2) lsum (i^2, i, rootsof (x^3 - 1));
====
\      2
(%o2)                 >    i
/
====
3
i in rootsof(x  - 1)```

```(%o1)                                true
(%i2) ```

### Related Examples

##### lsum-subst

f(x) := x+5+lsum (i*x...

f(g);

f(i) ;

Calculate

##### lsum

i=1;

Solve(i+1);

lsum (x^i, i, [1, 2, ...

Calculate

##### lsum

i:1;

i+1;

lsum (x^i, i, [1, 2, ...

Calculate

##### lsum-matrix-transpose

t: matrix([t11,t12,t1...

j: matrix([1,0,0],[0,...

z0: list_matrix_entri...

Calculate

##### lsum-sum

lsum (1/n^2, n, [1,in...

Calculate

##### lsum

a:[1,2,3,4,1,2,3];

ae:a/lsum(i,i,a);

Calculate

##### lsum-simpsum

eq1:lsum(4*(s-2*n-1),...

Calculate

##### lsum-makelist-random-sum

lsum(k,k,makelist(lsu...

Calculate

##### lsum

a:[1,2,3,4,1,2,3];

be:\exp ^(a);

ae:be/lsum(i,i,be);

Calculate

##### lsum-subst

subst(i=1,lsum (i, i,...

Calculate 