Integer z in mFn
mortenpi opened this issue · comments
Passing an integer z
to mFn
throws an error:
julia> mFn([1,2,3], [4,5], 1)
ERROR: MethodError: no method matching eps(::Type{Int64})
Closest candidates are:
eps(::Dates.Time) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Dates/src/types.jl:387
eps(::Dates.Date) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Dates/src/types.jl:386
eps(::Dates.DateTime) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Dates/src/types.jl:385
...
Stacktrace:
[1] wenigerpFq(::Array{Int64,1}, ::Array{Int64,1}, ::Int64) at /home/mortenpi/.julia/packages/HypergeometricFunctions/Qi68t/src/weniger.jl:8
[2] mFn(::Array{Int64,1}, ::Array{Int64,1}, ::Int64) at /home/mortenpi/.julia/packages/HypergeometricFunctions/Qi68t/src/gauss.jl:188
[3] top-level scope at none:0
Passing a floating point z
(e.g. mFn([1,2,3], [4,5], 1.)
) works fine, of course. But it might be nice for the user if it would convert integers into floats automatically.