Polynomial interpolation by smkt (embed)

main(c){getchar();getchar();c=getchar();c<49?puts("1 2 3 4 5 6 7 8 9\n1 4 9 16 25 36 49 64 81\n1 3 6 10 15 21 28 36 45\n1 9 36 100 225 441 784 1296 2025\n2 6 12 20 30 42 56 72 90\n6 34 102 228 430 726 1134 1672 2358\n2 46 258 860 2170 4602 8666 14968 24210"):c>49?puts("1\n0 1\n0.5 0.5\n0 0.25 0.5 0.25\n1 1\n1 2 3\n-1 2 -3 4"):puts("4 22 66 148 280 474 742 1096 1548\n1 3 2\n1 8 27 64 125 216 343 512 729\n0 2 1");}

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

download

return to the top page