# How to change step size of differentiation

**URL:** <https://root-forum.cern.ch/t/how-to-change-step-size-of-differentiation/26568>\
**Category:** ROOT\
**Created:** [October 13, 2017, 10:27am UTC](https://root-forum.cern.ch/t/how-to-change-step-size-of-differentiation/26568 "2017-10-13T10:27:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rootss](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@rootss](https://root-forum.cern.ch/u/rootss)\
**Post date:** [October 13, 2017, 10:27am UTC](https://root-forum.cern.ch/t/how-to-change-step-size-of-differentiation/26568/1 "2017-10-13T10:27:44Z")

</div>

I need integration, differentiation of some function TF1. However, I do not want to use the default setting.  
(1) How to change the step size of differentiation?  
(2) How to change the number of intervals to calculate the integration?  
(3) What are the default values?

Thanks.

---

<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:** [October 13, 2017, 11:06am UTC](https://root-forum.cern.ch/t/how-to-change-step-size-of-differentiation/26568/2 "2017-10-13T11:06:32Z")

</div>

I have no idea what you are asking about but maybe you just want to play with [TF1::GetNpx](https://root.cern.ch/doc/master/classTF1.html#a245c85b7aab8ae848350a93dd2633129) and [TF1::SetNpx](https://root.cern.ch/doc/master/classTF1.html#a6a04facaa58306988a3189b4e8713aa5) which are related to the number of points used to draw the function.

BTW. What concerns “intergration”, see for example:

> [@Wrong convolution of 2 functions](https://root-forum.cern.ch/t/wrong-convolution-of-2-functions/26205/3):
>
> I blame the ROOT’s “Integral” method, so try with FWHM=10 …

---

<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:** [October 27, 2017, 11:06am UTC](https://root-forum.cern.ch/t/how-to-change-step-size-of-differentiation/26568/3 "2017-10-27T11:06:37Z")

</div>

Closed on October 27, 2017, 11:06am UTC

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