# Integral becomes null for a range of x values

**URL:** <https://cl.desmos.com/t/integral-becomes-null-for-a-range-of-x-values/4112>\
**Category:** Bug Reports\
**Created:** [March 3, 2022, 5:45pm UTC](https://cl.desmos.com/t/integral-becomes-null-for-a-range-of-x-values/4112 "2022-03-03T17:45:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![William\_Ch](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/william_ch/32/3430_2.png) [@William\_Ch](https://cl.desmos.com/u/William_Ch)\
**Post date:** [March 3, 2022, 5:45pm UTC](https://cl.desmos.com/t/integral-becomes-null-for-a-range-of-x-values/4112/1 "2022-03-03T17:45:15Z")

</div>

Hello,

I am attempting to compute a cumulative distribution function but there are chunks of the graph that reaches 0.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/8/825f5d376bbc8c37f796945aaf81db2225317cbb.png)

Thank you for your time,  
William

> **[cdf](https://www.desmos.com/calculator/mqcqxovmhk)**
>
> cdf

---

<div class="post-metadata">

**Author:** ![William\_Ch](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/william_ch/32/3430_2.png) [@William\_Ch](https://cl.desmos.com/u/William_Ch)\
**Post date:** [March 6, 2022, 7:42pm UTC](https://cl.desmos.com/t/integral-becomes-null-for-a-range-of-x-values/4112/2 "2022-03-06T19:42:32Z")

</div>

Is it related to [Continuous funtion plotted as discontinuous function](https://cl.desmos.com/t/continuous-funtion-plotted-as-discontinuous-function/3983) ?

---

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [March 8, 2022, 3:55pm UTC](https://cl.desmos.com/t/integral-becomes-null-for-a-range-of-x-values/4112/3 "2022-03-08T15:55:32Z")

</div>

This is related to other numerical stability/rounding issues. We have a built-in way to plot CDFs that uses special techniques to avoid this kind of thing when we _know_ we’re plotting a CDF instead of some arbitrary function. Here is the same graph, but much faster and more accurate: [Untitled Graph](https://www.desmos.com/calculator/cwawxtbk6t).
