3 ms·
”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
by gorgoiler 2y ago
”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
- AgentMatt 2y agoIndeed. However, note that this is limited to encoding values between 0 and 9.
- Sharlin 2y agoYes, 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.