# Tolerance vs precision in Minimizer?

**URL:** <https://root-forum.cern.ch/t/tolerance-vs-precision-in-minimizer/41233>\
**Category:** Newbie\
**Created:** [August 31, 2020, 11:26pm UTC](https://root-forum.cern.ch/t/tolerance-vs-precision-in-minimizer/41233 "2020-08-31T23:26:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eggsAndCoffee](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/ecb155/32.png) [@eggsAndCoffee](https://root-forum.cern.ch/u/eggsAndCoffee)\
**Post date:** [August 31, 2020, 11:27pm UTC](https://root-forum.cern.ch/t/tolerance-vs-precision-in-minimizer/41233/1 "2020-08-31T23:27:00Z")

</div>

Hello,

I am using the [ROOT::Math::Minimizer class](https://root.cern.ch/doc/v614/classROOT_1_1Math_1_1Minimizer.html#a5b7ee47a24b2412801654b8cde2c9b4f) and I’m not sure what the difference is between SetTolerance() and SetPrecision(). I can’t quite find this in the documentation. Can someone please clarify this?

Thank you.

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [September 1, 2020, 7:53am UTC](https://root-forum.cern.ch/t/tolerance-vs-precision-in-minimizer/41233/2 "2020-09-01T07:53:31Z")

</div>

Hi,

The tolerance is used to control the criteria to stop the minimisation iterations. When the EDM (expected distance from the minimum) reaches a low enough tolerance the minimisation will stop. The values passed is something like a factor of 1000 larger than the actual tolerance used.The default value of 0.01 (an actual tolerance ~ 1.E-5) is normally fine for typical fitting problems.

The precision instead controlled the numerical precision used in the minimisation. Since double precision is used, one should not modify that value and use the default one (double numerical precision).

Lorenzo

---

<div class="post-metadata">

**Author:** ![eggsAndCoffee](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/ecb155/32.png) [@eggsAndCoffee](https://root-forum.cern.ch/u/eggsAndCoffee)\
**Post date:** [September 1, 2020, 4:32pm UTC](https://root-forum.cern.ch/t/tolerance-vs-precision-in-minimizer/41233/3 "2020-09-01T16:32:31Z")

</div>

> [@moneta](#):
>
> f 1000 larger than the actual tolerance used

This is exactly the explanation that I needed, thank you very much!
