Post Reply 
Fractional derivative
10-29-2022, 03:40 PM
Post: #2
RE: Fractional derivative
here is the modified program:

Code:

#cas
DerFraz(ff,pp,aa):=
//ff --> (x)->funzione
//aa: estremo inferiore dell'intergrale;
//pp grado di derivazione
BEGIN
LOCAL kappa, fnz, uu;
uu:=lname(ff)(1);
kappa:=MAX(0,CEILING(pp));
IF type(pp)==DOM_INT AND SIGN(pp)==1 THEN
kappa:=pp+1;
fnz:=(t)->((1/Gamma(kappa-pp))*
int((t-x)^(kappa-pp-1)*ff(x),x,aa,
assume(t>0 AND t>x)));
fnz:=(x)->fnz(purge(x));
ELSE
fnz:=(t)->(1/Gamma(kappa-pp))*
int((t-x)^(kappa-pp-1)*ff(x),x,aa,
assume(t>0 AND t>x));
fnz:=(x)->fnz(purge(x));
END;
IF SIGN(pp)==−1 THEN
RETURN subst(fnz(t),t,uu);
ELSE
IF pp==0 THEN
RETURN ff(uu);
ELSE
RETURN subst(diff(fnz(t),t,kappa),t,uu);
END;
END;
END;
#end
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Fractional derivative - robmio - 10-28-2022, 11:35 AM
RE: Fractional derivative - robmio - 10-29-2022 03:40 PM
RE: Fractional derivative - Albert Chan - 10-29-2022, 04:17 PM
RE: Fractional derivative - robmio - 10-29-2022, 07:05 PM
RE: Fractional derivative - robmio - 10-31-2022, 12:21 PM



User(s) browsing this thread: 3 Guest(s)