# Mathmore affects result of ROOT::Fit, Roofit results unaffected

**URL:** <https://root-forum.cern.ch/t/mathmore-affects-result-of-root-fit-roofit-results-unaffected/37701>\
**Category:** ROOT\
**Tags:** roofit, math\
**Created:** [January 24, 2020, 3:58pm UTC](https://root-forum.cern.ch/t/mathmore-affects-result-of-root-fit-roofit-results-unaffected/37701 "2020-01-24T15:58:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kovy](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/b77776/32.png) [@kovy](https://root-forum.cern.ch/u/kovy)\
**Post date:** [January 24, 2020, 3:58pm UTC](https://root-forum.cern.ch/t/mathmore-affects-result-of-root-fit-roofit-results-unaffected/37701/1 "2020-01-24T15:58:36Z")

</div>

Hello, I am fitting background data with polynomial + exponential model using ROOT::Fit, and I have older results of the same fit performed by Roofit. With very basic installation of ROOT, the parameters obtained with ROOT::Fit are different by 6% - 9% with respect to the original Roofit results. If I run ROOT::Fit with an instance of root compiled with Mathmore library, the difference is significantly smaller - of the order of 0.3%. The Roofit result remains unaffected regardless of whether Mathmore is included or not. I cannot figure out where the Mathmore could be interfering in ROOT::Fit, can someone please point me to the correct direction?

* * *

_Please read [tips for efficient and successful posting](https://root-forum.cern.ch/t/tips-for-efficient-and-successful-posting/28292) and [posting code](https://root-forum.cern.ch/t/posting-code-read-this-first/28293)_

_ROOT Version:_ 6.18  
_Platform:_ Centos 8  
_Compiler:_ gcc

* * *

---

<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:** [January 24, 2020, 4:18pm UTC](https://root-forum.cern.ch/t/mathmore-affects-result-of-root-fit-roofit-results-unaffected/37701/2 "2020-01-24T16:18:51Z")

</div>

Hi

This could be due to the numerical integration algorithm, the default one in ROOT could have some problems in same case. The one in Mathmore instead is superior

Lorenzo

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [February 7, 2020, 4:20pm UTC](https://root-forum.cern.ch/t/mathmore-affects-result-of-root-fit-roofit-results-unaffected/37701/3 "2020-02-07T16:20:33Z")

</div>

Closed on February 7, 2020, 4:20pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
