diff --git a/docs/source/interfacing_with_autodiff.rst b/docs/source/interfacing_with_autodiff.rst index 02f58b2d1..e7bcfd7a4 100644 --- a/docs/source/interfacing_with_autodiff.rst +++ b/docs/source/interfacing_with_autodiff.rst @@ -37,7 +37,7 @@ functor is straightforward and will look as follows: template T TemplatedComputeDistortion(const T r2) { const double k1 = 0.0082; const double k2 = 0.000023; - return 1.0 + k1 * y2 + k2 * r2 * r2; + return 1.0 + k1 * r2 + k2 * r2 * r2; } struct Affine2DWithDistortion {