TE
TechEcho
Home
24h Top
Newest
Best
Ask
Show
Jobs
English
GitHub
Twitter
Home
Ask HN: What was the last Math formula/concept you used while coding?
10 points
by
shihn
over 6 years ago
4 comments
ineedasername
over 6 years ago
Collapse
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 未加载
karmakaze
over 6 years ago
Euclidean gcd algorithm to determine colinearity of points on an integer grid. Double precision slope/intercept fails here.
DLA
over 6 years ago
Recently used Euclidean distance, weighted average, N-period moving average and Pearson correlation coefficient.
roundthecorner
over 6 years ago
For production code well, If (p then q) = (NOT p or q)