Online Algebra Calculator
Many of users do not use powerful Maxima computer algebra system for systematic work, but for ad hoc algebraic calculations – equations, functions, matrixes, etc. only. To do this job, it is not useful to download the whole application from a web site.
Function: lsum (<expr>, <x>, <L>) Represents the sum of <expr> for each element <x> in <L>.
![Lsum Example load (distrib);
float(1-cdf_binomial(9,40,1/10));
pdf_binomial (2,3,1/6);
p: 1/10;
n: 40;
pdf_binomial(0,n,p);
lsum(pdf_binomial(k,n,p), k, [0,1,2,3,4,5,6,7,8,9]);](http://maxima-online.org//plot.html?g=i-1665055278.png&t=img&db=r-1686011700)
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)