|
"Joerg Buchholz" <buchholz@hs-bremen.de> wrote in message
:
> MuPAD has a similar function; it returns a symbolic sum for the nth coefficient:
:
This is just a quick-and-dirty hack to show that Matlab/MuPAD could compute the radius of convergence of the MacLaurin series of the exponential function:
syms x k
func = exp(x)
func =
exp(x)
infsum = feval (symengine, 'series', func, 'x, infinity')
infsum =
sum(x^k/(k*gamma(k)), k = 0..Inf)
operand = feval (symengine, 'op', infsum, '1')
operand =
x^k/(k*gamma(k))
coefficient = operand/x^k
coefficient =
1/(k*gamma(k))
next_coefficient = subs (coefficient, k, k + 1)
next_coefficient =
1/(gamma(k + 1)*(k + 1))
ratio = simple (coefficient/next_coefficient)
ratio =
k + 1
radius_of_convergence = limit (abs (ratio), k, inf)
radius_of_convergence =
Inf
Unfortunately, today's MuPAD can only compute the symbolic sum for exp, sin, and cos.
|