Hacker News new | ask | show | jobs
by filipeisho 189 days ago
set A1 = 3 set B1 = 4

set C1 = A1 + B1 = 7

now change C1 = 14 expected A1 = 6 expected B1 = 8

what it did A1 = 7 B1 = 7

great

1 comments

Why do you think that 6+8 is a better solution than 7+7?
When C1 changes from 7 to 14, that’s a scalar change. The least-assumption, information-preserving update is to scale both inputs by the same factor.
It preserves an implicit relationship, ratio, between A and B.