# How to Obtain the Final Numerical Result if The Integral is in Gamma function?

**URL:** <https://discourse.julialang.org/t/how-to-obtain-the-final-numerical-result-if-the-integral-is-in-gamma-function/91699>\
**Category:** General Usage\
**Tags:** question\
**Created:** [December 15, 2022, 12:14pm UTC](https://discourse.julialang.org/t/how-to-obtain-the-final-numerical-result-if-the-integral-is-in-gamma-function/91699 "2022-12-15T12:14:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Post date:** [December 15, 2022, 12:14pm UTC](https://discourse.julialang.org/t/how-to-obtain-the-final-numerical-result-if-the-integral-is-in-gamma-function/91699/1 "2022-12-15T12:14:55Z")

</div>

Hi all,

I compute using this code:

```julia
using SymPy

integrate(3+ sin(x^2), (x, 0, 2))

```

The answer is not a single number, but a fraction with Gamma function, which should be able to be computed with Julia, but I do not know how to process this into the final number.

![Capture d’écran_2022-12-15_19-14-04](https://global.discourse-cdn.com/julialang/original/3X/d/1/d126ce9d7f85557f27b06a4740d9cad7d154e93d.png)

---

<div class="post-metadata">

**Author:** ![j\_verzani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/j_verzani/32/8551_2.png) [@j\_verzani](https://discourse.julialang.org/u/j_verzani)\
**Post date:** [December 15, 2022, 12:18pm UTC](https://discourse.julialang.org/t/how-to-obtain-the-final-numerical-result-if-the-integral-is-in-gamma-function/91699/2 "2022-12-15T12:18:02Z")

</div>

You can use `N` or `evalf` on the output.

---

<div class="post-metadata">

**Author:** ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Post date:** [December 15, 2022, 12:27pm UTC](https://discourse.julialang.org/t/how-to-obtain-the-final-numerical-result-if-the-integral-is-in-gamma-function/91699/3 "2022-12-15T12:27:03Z")

</div>

Yahoo!! thanks a lot.

So `N` gives more decimals than `evalf`, then it could come in handy in the future.

---

<div class="post-metadata">

**Author:** ![j\_verzani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/j_verzani/32/8551_2.png) [@j\_verzani](https://discourse.julialang.org/u/j_verzani)\
**Post date:** [December 15, 2022, 2:19pm UTC](https://discourse.julialang.org/t/how-to-obtain-the-final-numerical-result-if-the-integral-is-in-gamma-function/91699/4 "2022-12-15T14:19:48Z")

</div>

The `evalf` function can be passed a number of digits to show. `N` is a hacky attempt to match a `Julia` object with the `Python` object. In this case, BigFloat values are returned.
