Code covered by the BSD License
-
Matrix approach to discretiza...
-
bagleytorvikequation(A,B,C)
% Sample function for solving Bagley-Torvik equation with zero initial conditions:
-
ban(alpha,N,h)
Make matrix B_{N}^{alpha} that corresponds
-
eliminator(n, ROWS)
%ELIMINATOR
-
fan(alpha,N,h)
Make matrix F_{N}^{alpha} that corresponds
-
fracdiffdemou(alpha,beta)
-
fracdiffdemoy(alpha,beta)
-
fracdiffdemoydelay(alpha,alph...
-
ranort(alpha,N,h)
Make matrix R_{N}^{alpha} that corresponds
-
ransym(alpha,N,h)
Make matrix R_{N}^{alpha} that corresponds
-
shift (U, k)
-
y=bcrecur(a, n)
% Computation of the fractional difference coefficients
-
rieszpotential.m
-
View all files
from
Matrix approach to discretization of ODEs and PDEs of arbitrary real order
by Igor Podlubny
Functions illustrating matrix approach to discretization of ODEs / PDEs with fractional derivatives.
|
| y=bcrecur(a, n)
|
function y=bcrecur(a, n)
%
% Computation of the fractional difference coefficients
% by the recurrence relation
% bc(j)=(1-(a+1)/j)*bc(j-1),
% a - order of the fractional difference
% n - required number of coefficients
%
% Computation of bcrecur(k,k) takes (3*k+1) flops.
%
% Copyright (C) Igor Podlubny
% 15 Nov 1994
%
% See also:
% [1] Podlubny, I.: Fractional Differential Equations.
% Academic Press, San Diego, 1999, 368 pages, ISBN 0125588402.
y=cumprod([1, 1 - ((a+1) ./ (1:n))]);
|
|
Contact us at files@mathworks.com