Beginner - NumericalMath -- Use trapz routine and Number type

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

[ 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:

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

ERROR: LoadError: UndefVarError: Tx not defined

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


but what package should I install ?

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

2 Likes