How to write a maple program to calculate the sum of products of polynomial factors missing the factor in the sum?

242 Views Asked by At

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$

1

There are 1 best solutions below

0
On BEST ANSWER
program:= (n,a,b,s) -> add(a[i]*mul(s - b[j], j={$1..n} minus {i}), i=1..n);