Skip to content

Loosen the distance contract to 64 eps and add the cases over 8 - #26

Merged
nhz2 merged 2 commits into
mainfrom
distance-contract-64eps
Oct 29, 2026
Merged

nhz2 merged 2 commits into
mainfrom
distance-contract-64eps

Conversation

@nhz2

@nhz2 nhz2 commented Oct 29, 2026

Copy link
Copy Markdown
Member

A point on the face of a triangle with coordinates near 1e7 came out 8.07epsℓ off, and a search found a line segment pair 8.12epsℓ off. Each error is a few roundings of lengths up to 2√3*ℓ, so 8 is too tight.

nhz2 and others added 2 commits October 29, 2026 15:41
A point on the face of a triangle with coordinates near 1e7 came out
8.07*eps*ℓ off, and a search found a line segment pair 8.12*eps*ℓ off.
Each error is a few roundings of lengths up to 2√3*ℓ, so 8 is too tight.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The docstring promised exact closest points. Add the error bound on d²,
the bounds on the weights, the coordinate range they hold in, and the
NaN behavior.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nhz2
nhz2 merged commit f15f96a into main Oct 29, 2026
2 checks passed
@nhz2
nhz2 deleted the distance-contract-64eps branch October 29, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant