Better HN
topnewbestaskshowjobs
Log inSign up

colgate_total

12 karma · joined Dec 16, 2022 (3y ago) · 2 submissions

Submissions

comment 3y ago · link · parent

> eg Is there a formal proof that says integers strictly follow that same rules as the continuous domain, just as a subset? I'm interested.

It may have come as a surprise to a programmer, but in the domain of math, the integers are indeed a subset of a real numbers.

comment 3y ago · link · parent

Another optimization would be to compare square of distance instead of distance, saving "Math.sqrt" call each iteration.