Giter Club home page Giter Club logo

Comments (1)

cooperhatfield avatar cooperhatfield commented on June 19, 2024 1

Hello @CheapMeow, the asymptotic behavior at the left endpoint is a side effect of how the Grunwald-Letnikov differintegral is implemented. Comparing to the result gained from the Riemann-Liouville differintegral and the expected results, we see that it much more accurate.
image

These results were obtained using the following code:

import numpy as np
import differint.differint as df
import matplotlib.pyplot as plt

def f(t):
    return np.power(t, 3)
def neg_f(t):
    return f(-1 * t)


alpha = 0.6

t_2 = np.linspace(0, 1, 100)
GL_2 = df.GL(alpha, f, 0, 1, 100)

GL_2_rev = df.RL(alpha, f, 0, 1, 100)

expected = lambda t: 6/(df.Gamma(3-alpha+1)) * t ** (3 - alpha)


fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)
ax.plot(t_2, GL_2, label='GL')
ax.plot(t_2, GL_2_rev, marker='o', markevery=5, label='RL')
ax.plot(t_1, expected(t_1), label='expected')
ax.legend()

plt.show()

Another thing to point out, is that to conserve many of the properties one might expect from the fractional derivative of polynomials, the left endpoint should be kept to 0; I only included that case.

from differint.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.