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

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



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.




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

Search: