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 (1/n^2, n, [1,in...

Calculate

lsum-simpsum

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

Calculate

lsum-makelist-random

a:makelist(random(2),...

lsum(i,i,a);

Calculate

lsum-plot2d
plot2d(1+lsum((1/i!)*x^i, i, [1, 2, 7]),[x,-1,1]);

plot2d(1+lsum((1/i!)*...

Calculate

lsum-plot2d
plot2d(1+lsum((1/i!)*x^i, i, [1, 2, 7]),[x,-1,1]);

plot2d(1+lsum((1/i!)*...

Calculate

lsum-sum

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

Calculate

lsum-plot2d
plot2d(1+lsum((1/i!)*x^i, i, [1, 2, 7]),[x,-1,1]);

plot2d(1+lsum((1/i!)*...

Calculate

lsum

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

Calculate

lsum-makelist-random-sum

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

Calculate

lsum-sum

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

Calculate