From ad3c7520f8afddafb629bb12871ba7a6208ba1f3 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Sun, 7 Mar 2010 18:06:42 +0000 Subject: [PATCH] use new method derivativeofArcCosSquared in second derivative of distance [[Imported from SVN: r5672]] --- src/unitvector.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unitvector.hh b/src/unitvector.hh index 446a6a30..f433d64a 100644 --- a/src/unitvector.hh +++ b/src/unitvector.hh @@ -115,7 +115,7 @@ public: // Bring it all together result = A; result *= -2; - result.axpy(-2*std::acos(sp)/std::sqrt(1-sp*sp), B); + result.axpy(derivativeOfArcCosSquared(sp), B); return result; } -- GitLab