(guardrail-newton f x0 tolerance)
(guardrail-newton f x0 tolerance min-x max-x)
Version of Newton's method with guardrails to ensure convergence
Version of Newton's method with guardrails to ensure convergence
(track waypoints)
Construct a coordinate system around a track, based on a set of (x,y) waypoints along that track. Coordinates are (s,d) where s is distance along the track and d is distance to the right of the track. Internally, d by itself is part of (s,d) coordinates and dM-dN is a partial derivative of M with respect to N. Surprisingly, in the case of frenet coordinates, the following convenient partial derivative equalities hold: dx/ds = ds/dx = -dy/dd = -dd/dy dy/ds = ds/dy = dx/dd = dd/dx (dx/ds)^2 + (dy/ds)^2 = 1 (Such equalities are possible because partial derivatives are not fractions, despite what the notation suggests.) These equalities will be used heavily in this namespace. For example, after representing dx/ds and dy/ds with splines, there's no need to create separate splines for the other quantities that are easily derived from those two.
Construct a coordinate system around a track, based on a set of (x,y) waypoints along that track. Coordinates are (s,d) where s is distance along the track and d is distance to the right of the track. Internally, d by itself is part of (s,d) coordinates and dM-dN is a partial derivative of M with respect to N. Surprisingly, in the case of frenet coordinates, the following convenient partial derivative equalities hold: dx/ds = ds/dx = -dy/dd = -dd/dy dy/ds = ds/dy = dx/dd = dd/dx (dx/ds)^2 + (dy/ds)^2 = 1 (Such equalities are possible because partial derivatives are not fractions, despite what the notation suggests.) These equalities will be used heavily in this namespace. For example, after representing dx/ds and dy/ds with splines, there's no need to create separate splines for the other quantities that are easily derived from those two.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close