equation from roots



On Mon, 26 Nov 2012, Antonio Lapira wrote:
> is there a function to call to get for example x^2-3*x-10=0 ( or (x-5)*(x+2)=0) by giving roots -2 and 5 ?

(%i1) r:[-2,5];
(%o1)  [- 2, 5]
(%i2) product(x-r[i], i,1,length(r)) = 0;
(%o2)  (x - 5) (x + 2) = 0

-- 
Regards,
ASK