# Is there any example of using ROOT::Math::Derivator?

**URL:** <https://root-forum.cern.ch/t/is-there-any-example-of-using-root-derivator/52689>\
**Category:** Newbie\
**Created:** [December 7, 2022, 7:00pm UTC](https://root-forum.cern.ch/t/is-there-any-example-of-using-root-derivator/52689 "2022-12-07T19:00:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anhle263](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/anhle263/32/36161_2.png) [@anhle263](https://root-forum.cern.ch/u/anhle263)\
**Post date:** [December 7, 2022, 7:00pm UTC](https://root-forum.cern.ch/t/is-there-any-example-of-using-root-derivator/52689/1 "2022-12-07T19:00:30Z")

</div>

Hello,  
I intend to use ROOT::Math::Derivator for computing numerical derivative of a function.  
Does ROOT provide any example of how to use the above class?  
Thank you very much.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [December 7, 2022, 7:12pm UTC](https://root-forum.cern.ch/t/is-there-any-example-of-using-root-derivator/52689/2 "2022-12-07T19:12:35Z")

</div>

[test/stressMathMore.cxx](https://github.com/root-project/root/blob/master/test/stressMathMore.cxx)  
[math/mathmore/test/testDerivation.cxx](https://github.com/root-project/root/blob/master/math/mathmore/test/testDerivation.cxx)  
[math/mathmore/test/StatFunction.cxx](https://github.com/root-project/root/blob/master/math/mathmore/test/StatFunction.cxx) + [math/mathmore/test/StatFunction.h](https://github.com/root-project/root/blob/master/math/mathmore/test/StatFunction.h)

---

<div class="post-metadata">

**Author:** ![anhle263](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/anhle263/32/36161_2.png) [@anhle263](https://root-forum.cern.ch/u/anhle263)\
**Post date:** [December 7, 2022, 7:27pm UTC](https://root-forum.cern.ch/t/is-there-any-example-of-using-root-derivator/52689/3 "2022-12-07T19:27:38Z")

</div>

Thank you so much for your quick response. You have just saved my day.
