Polynomial interpolation by nfouille(nocheat)

A='\xc9!\x89c\x01\xdb1t\x8d9\x85ceoej';while read -A l;set -- $l;(($#>0))
do r=;for i in {0..8};do a=0;b=0;for f;do x=$A[++b+4*i]
((a+=f*($#>4?(b-1)|i<4?#x-105:0:24*(i+1)**b)));done;((a/=24.))
r=$r${a%.}\ ;done;r=${r% };r=${r// 0 0/};echo ${r% 0};done

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page