The equations of simgeometry.queries, declared on the code that implements them and checked by the tests.
Locate bracketed outside-to-inside edge crossings; return raw, unclamped fractions.
- secant
- t=fb−fatafb−tbfa,f(t)=ϕ(a+td)
- illinois
- (ta,fa)←(t,f) if signf=signfa, else (tb,fb)←(t,f);fb←fb/2(fa←fa/2) if b(a) is kept twice in a row
- converged
- ∣f∣≤ν=ε(kmax∣ak∣+kmax∣dk∣)or∣t′−t∣≤τor∣tb−ta∣≤τ,τ=2−m
- bisection
- min(m,max(1,⌈log2(w2m)⌉)) halvings on membership,t=thi
- Order
- 1
- Assumes
- each edge from an outside point a to an inside point a+d brackets one crossing (
ValueError otherwise); the fraction is measured from the outside end and not clamped - with a level set and ϕ(a)>0>ϕ(a+d): at most 12 Illinois steps (
SECANT_STEPS), superlinear (order about 1.44 for a simple root) - the other edges, and those Illinois left unsettled with their narrowed bracket of width w, are bisected on membership and return the inside end thi
wrap maps periodic images into the domain before every membership or level-set call- the order is that of the bisection in the final bracket width 2−m (
iterations m=48)
- References