Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Lsum Calculator

Lsum

Function: lsum (<expr>, <x>, <L>) Represents the sum of <expr> for each element <x> in <L>.

load (distrib);
p: 1/10;
n: 40;
float(1-cdf_binomial(9,n,p));
oa: 1-lsum(pdf_binomial(k,n,p), k, [0,1,2,3,4,5,6,7,8,9]);
float(oa);
ob: 1-lsum( binomial(n,k) * p^k * (1-p)^(n-k) , k, [0,1,2,3,4,5,6,7,8,9]);
float(ob);

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) 

Lsum Example

Related Examples

lsum-sum

lsum(x^i,i,[1,n]);

Calculate

lsum-matrix-transpose

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

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

z0: list_matrix_entri...

Calculate

lsum-simpsum

eq1:lsum(4,n,N),simpsum;

Calculate

lsum-matrix-solve

P:matrix([0.59,1.76,2...

V:matrix([X],[10],[10]);

Q:P . V;

Calculate

lsum-sum

lsum (1/n^2, n, [1,7]);

Calculate

lsum-makelist-random-sum

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

Calculate

lsum-makelist-random-sum

lsum(i,i,makelist(ran...

Calculate

lsum-sum

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

Calculate