Skip to content

Commit e79f6ce

Browse files
committed
Fix GLHighPrecision error
Signed-off-by: ErikQQY <[email protected]>
1 parent 405d7c8 commit e79f6ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Derivative/GL.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function fracdiff(f::Union{Function, Number, Vector},
214214
α::T,
215215
t,
216216
alg::GLHighPrecision) where {T <: Real}
217-
p = @unpack p = alg
217+
@unpack p = alg
218218
if isa(f, Function)
219219
y=f.(t)
220220
elseif isa(f, Vector)

test/Derivative.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ end
4343
@testset "Test Grunwald-Letnikov Fractional Derivative" begin
4444
@test isapprox(fracdiff(x->x, 0.5, 0, 0.5, GLDirect())[1], 0.7978845583186518; atol = 1e-5)
4545
@test isapprox(fracdiff(x->x^5, 0.5, 0, 3.2, GLDirect())[1], 4.300306216488329e2; atol = 1e-5)
46-
@test isapprox(fracdiff(x->x, 0.5, collect(0:0.01:1), 2, GLHighPrecision())[end], 2/sqrt(pi); atol = 1e-4)
46+
@test isapprox(fracdiff(x->x, 0.5, collect(0:0.01:1), GLHighPrecision())[end], 2/sqrt(pi); atol = 1e-4)
4747
end
4848

4949
@testset "Test GL_Multiplicative_Additive()" begin

0 commit comments

Comments
 (0)