I'm using Asymptotic
to get first-order expansion of expr=Gamma[0, s/10] - Gamma[0, s]
, and it returns expr
unchanged.
Any idea why?
expr = Gamma[0, s/10] - Gamma[0, s];
expr = Gamma[0, s/10] - Gamma[0, s];
asymptotic1 = Asymptotic[expr, {s, 0, 1}] (*returns Log[10] *)
asymptotic2 =
Asymptotic[
expr, {s, 0, 2}] (*returns -(9 s)/10+(99 s^2)/400+Log[10] *)
approx = -0.9 s + 2.3025;
Plot[{expr, approx}, {s, 0, 5}, PlotLegends -> {"original", approx},
AxesLabel -> {"s"}]
Asymptotic
is being done with the wrong variable. Uses
rather thanx
$\endgroup$Asymptotic[expr, {s, 0, 1}]
gives 0th order approximation, whileAsymptotic[expr, {s, 0, 2}]
gives 2nd order, it doesn't give 1st order for some reason, but it seems it should exist $\endgroup$Series[expr, {s, 0, 1}] // Normal
to get-((9 s)/10) + Log[10]
$\endgroup$