diff --git a/Project.toml b/Project.toml index 9fbb324..dfce8b4 100644 --- a/Project.toml +++ b/Project.toml @@ -2,7 +2,7 @@ name = "FractionalCalculus" uuid = "638fb199-4bb2-4014-80c8-6dc0d90f156b" license = "MIT" authors = ["Qingyu Qu "] -version = "0.2.4" +version = "0.2.5" [deps] InvertedIndices = "41ab1584-1d38-5bbf-9106-f11c6c58b48f" diff --git a/src/Derivative/Caputo.jl b/src/Derivative/Caputo.jl index e8542ed..3c25e94 100644 --- a/src/Derivative/Caputo.jl +++ b/src/Derivative/Caputo.jl @@ -231,7 +231,7 @@ function W₅(i, n, m, α) end end # Deploy Complex Step Differentiation to compute the first order derivative. -function first_order(f, point, h) +function first_order(f, point, h::Float64) return imag(f(point + im*h))/h end @@ -282,7 +282,7 @@ function fracdiff(y, α, t, p, ::Caputo_High_Precision) t = t[:] n = length(t) y = y.(t) - q = Int64(ceil(α)) + q = ceil(Int, α) r = Int64(max(p, q)) R = reverse(Vandermonde(collect(0:(r-1)).*h)) c = inv(R)*y[1:r]