Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

”If we want to encode the vector [6,2,8,4] in a single expression we can create a function containing those numbers: f(x) = 6 + 2x² + 8x³ + 4x⁴

…or if you flip the vector and use x=10:

  6284


Yes, but the polynomial form generalizes to coefficients of an arbitrary field, not just naturals. If your vector were, say, [1.3, 2.197656, pi, -1/2, 3*2i] then there wouldn’t be a reasonable base you could pick for a place-value representation.


Indeed. However, note that this is limited to encoding values between 0 and 9.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: