-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Numerical error too high #21
Comments
What is the version of package you are using for the computing? I just tested on master branch: julia> numerical_caputo_der = fracdiff(t->t,α,T,0.001,CaputoDiethelm())
0.9987906107845391 Analytical: theoretical_caputo_der = T^(1-α)/gamma(2-α)
0.9987906107845398 Error: julia> abs(numerical_caputo_der-theoretical_caputo_der)/abs(theoretical_caputo_der)
6.669404053086289e-16 |
Also, using such a small step size is bad |
FractionalCalculus v0.2.10 |
Just tagged a new major release, which should fix the "not defined" errors |
I'm doing the most simple Caputo derivative
$$^C_0 D_t^\alpha t = \frac{t^{1-\alpha}}{\Gamma(2-\alpha)}$$ $0.024$ for a time step of $10^{-9}$ , is this supposed to be working properly?
and I get a relative error of
The text was updated successfully, but these errors were encountered: