I use of this code Fractional Integral and wrote the following code:
INT[α_, f_, x_, opts___] :=
Integrate[(x - t)^(-α - 1) (f /. x -> t), {t, 0, x}, opts]/Gamma[-α]
INT[mu_?Positive, f_, x_, opts___] :=
Module[{m = Ceiling[mu]},
D[INT[-(m - mu), f, x, opts], {x, m}]]
I run for:
u1[x] =
INT[-α, 0.9 - 0.1 x, x, Assumptions -> {x > 0 && Re[β] > -1 && Re[α] > 0}]
u2[x] =
INT[-α, 8. u1[x] - 2. x u1[x], x,
Assumptions -> {x > 0 && Re[β] > -1 && Re[α] > 0}]
But Mathematica needs a lot of time to make the calculations. Any suggestion code for get faster calculation?
u1[x]
is a sum of two terms but8 u1[x]
has headTimes
. that said I'm puzzled why thats needed at all, but noticeINT[-\[Alpha], u1[x], x, Assumptions...]
returns almost immediately whileINT[-\[Alpha], 8 u1[x], x, Assumptions...]
does not. $\endgroup$FractionalIntegrate
$\endgroup$