Example 22. An alternative for the proposta in m. 4 that uses variable intervals and exploits a change of function