# Beginner - NumericalMath -- Use trapz routine and Number type

**URL:** https://discourse.julialang.org/t/beginner-numericalmath-use-trapz-routine-and-number-type/24777
**Category:** Numerics
**Created:** [May 30, 2019, 5:34pm UTC](https://discourse.julialang.org/t/beginner-numericalmath-use-trapz-routine-and-number-type/24777 "2019-05-30T17:34:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![fer](https://avatars.discourse-cdn.com/v4/letter/f/90ced4/32.png) [@fer](https://discourse.julialang.org/u/fer)
#### Post date: [May 30, 2019, 5:34pm UTC](https://discourse.julialang.org/t/beginner-numericalmath-use-trapz-routine-and-number-type/24777/1 "2019-05-30T17:34:24Z")

</div>

It seems that NumericalMath.jl have some installation problems with julia 1.1.1 : here is my error message:

```julia
[Info: Precompiling NumericalMath [2d69212a-5df0-5a1f-8e4a-e8e814bdb11a]
ERROR: LoadError: LoadError: syntax: invalid assignment location "[d1, 0]"
Stacktrace:
 [1] include at ./boot.jl:326 [inlined]
 [2] include_relative(::Module, ::String) at ./loading.jl:1038
 [3] include at ./sysimg.jl:29 [inlined]
 [4] include(::String) at /home/fernand/.julia/dev/NumericalMath/src/NumericalMath.jl:1
 [5] top-level scope at none:0
 [6] include at ./boot.jl:326 [inlined]
 [7] include_relative(::Module, ::String) at ./loading.jl:1038
 [8] include(::Module, ::String) at ./sysimg.jl:29
 [9] top-level scope at none:2
 [10] eval at ./boot.jl:328 [inlined]
 [11] eval(::Expr) at ./client.jl:404
 [12] top-level scope at ./none:3
in expression starting at /home/fernand/.julia/dev/NumericalMath/src/la.jl:6
in expression starting at /home/fernand/.julia/dev/NumericalMath/src/NumericalMath.jl:15
ERROR: LoadError: Failed to precompile NumericalMath [2d69212a-5df0-5a1f-8e4a-e8e814bdb11a] to /home/fernand/.julia/compiled/v1.1/NumericalMath/wFhGE.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
 [3] _require(::Base.PkgId) at ./loading.jl:960
 [4] require(::Base.PkgId) at ./loading.jl:858
 [5] require(::Module, ::Symbol) at ./loading.jl:853
 [6] include at ./boot.jl:326 [inlined]
 [7] include_relative(::Module, ::String) at ./loading.jl:1038
 [8] include(::Module, ::String) at ./sysimg.jl:29
 [9] include(::String) at ./client.jl:403
 [10] top-level scope at none:0
in expression starting at main.jl:1

```

and I would like to use the function “trapz” available at:

> <https://github.com/hwborchers/NumericalMath.jl/blob/master/src/integrate.jl>

I copied its code in my file but at the execution I get the error:

```
ERROR: LoadError: UndefVarError: Tx not defined

```

```julia

I found this file:
[https://github.com/JuliaLang/julia/blob/master/base/number.jl](http://)

but what package should I install ?
```

---

<div class="post-metadata">

### Author: ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)
#### Post date: [May 30, 2019, 5:50pm UTC](https://discourse.julialang.org/t/beginner-numericalmath-use-trapz-routine-and-number-type/24777/2 "2019-05-30T17:50:17Z")

</div>

I would not use this package. It hasn’t been touched in 5 years. I would use QuadGK.jl for numerical quadrature.
