Hacker News new | past | comments | ask | show | jobs | submit login

I wonder why it's a cosine-based formula, rather than linear.



Cosines are smooth at every level of differentiation.


Maybe they chose it because they wanted to "ease" in the change to prevent the machines from distrusting the time server?


For smoothness, I presume, to avoid a sudden change in the rate of time passage at the start and end of the day.


I don't follow -- wouldn't a linear approach yield a maximally even rate of adjustment?


No, there would be continuity breaks at the beginning and end of the window where the smear occurs if purely linear. I think the goal here is a kind of "ease-in-out" transition.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: