symforce-org / symforce

Fast symbolic computation, code generation, and nonlinear optimization for robotics
https://symforce.org
Apache License 2.0
1.44k stars 147 forks source link

Add rule of thumb to epsilon_sandbox.ipynb #97

Closed aaron-skydio closed 1 year ago

aaron-skydio commented 2 years ago

The rule of thumb is that if you are adding epsilon to some constant c, you want epsilon to be not less than c * std::numeric_limits<Scalar>::epsilon(), as if it's smaller than that, epsilon won't be large enough to actually change the value of c.