Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gorgoiler
on Oct 31, 2024
|
parent
|
context
|
favorite
| on:
Probability-generating functions
”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
Sharlin
on Oct 31, 2024
|
next
[–]
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.
AgentMatt
on Oct 31, 2024
|
prev
[–]
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:
…or if you flip the vector and use x=10: