1

How to write a maple program to find the sum of the products given below

$\sum\limits_{i=1}^n a_i~\prod\limits_{j=1,j\neq i}^ns-b_j$

Litun
  • 670

1 Answers1

3
program:= (n,a,b,s) -> add(a[i]*mul(s - b[j], j={$1..n} minus {i}), i=1..n);
Robert Israel
  • 448,999