TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What was the last Math formula/concept you used while coding?

10 pointsby shihnover 6 years ago

4 comments

ineedasernameover 6 years ago
Most recently today? Addition. And counting. This isn't "snark", I work in BI. Counting things and knowing what to count is half the job.
评论 #18605169 未加载
karmakazeover 6 years ago
Euclidean gcd algorithm to determine colinearity of points on an integer grid. Double precision slope/intercept fails here.
DLAover 6 years ago
Recently used Euclidean distance, weighted average, N-period moving average and Pearson correlation coefficient.
roundthecornerover 6 years ago
For production code well, If (p then q) = (NOT p or q)