#JavaScript (ES6), 81 bytes
JavaScript (ES6), 81 bytes
Takes input as (a,p,k). The polynomial coefficients are expected from highest to lowest.
(a,[c,...p],k)=>a.slice(p.length+k).map((_,n)=>p.map(v=>a[++n]-=v*q,q=a[n]/c))&&q
#JavaScript (ES6), 81 bytes
Takes input as (a,p,k). The polynomial coefficients are expected from highest to lowest.
(a,[c,...p],k)=>a.slice(p.length+k).map((_,n)=>p.map(v=>a[++n]-=v*q,q=a[n]/c))&&q
JavaScript (ES6), 81 bytes
Takes input as (a,p,k). The polynomial coefficients are expected from highest to lowest.
(a,[c,...p],k)=>a.slice(p.length+k).map((_,n)=>p.map(v=>a[++n]-=v*q,q=a[n]/c))&&q
#JavaScript (ES6), 81 bytes
Takes input as (a,p,k). The polynomial coefficients are expected from highest to lowest.
(a,[c,...p],k)=>a.slice(p.length+k).map((_,n)=>p.map(v=>a[++n]-=v*q,q=a[n]/c))&&q