# Gradient calculation in GSLMultiFit

**URL:** <https://root-forum.cern.ch/t/gradient-calculation-in-gslmultifit/11483>\
**Category:** ROOT\
**Created:** [December 5, 2010, 6:36pm UTC](https://root-forum.cern.ch/t/gradient-calculation-in-gslmultifit/11483 "2010-12-05T18:36:03Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [December 9, 2010, 8:42am UTC](https://root-forum.cern.ch/t/gradient-calculation-in-gslmultifit/11483/5 "2010-12-09T08:42:05Z")

</div>

HI,  
the problem was in the macro that I have attached in the post

> [@Locate like command](https://root-forum.cern.ch/t/locate-like-command/65/1):
>
> Hi everybody, I’m just learning how to use root interface. There is a way to have a graphical integral of an histogram (like the PAW command “locate -i”) ?? cheers Paolo Zuccon.

The global chi2 function needs to be modified to not force the gradient calculation of all parameters. See the changes in the new macro which I attach to this post

Best Regards

Lorenzo  
[combinedFit2.C](https://root-forum.cern.ch/uploads/default/original/2X/f/fe26103f71809737cf93f972b871854514b1aa32.C) (5.99 KB)

---

_[View the full topic](https://root-forum.cern.ch/t/gradient-calculation-in-gslmultifit/11483)._
