Graphics Programs Reference
In-Depth Information
simplify(ans)
ans =
1/3*n^3+1/2*n^2+1/6*n
(b)
symsum(rˆk, k, 0, n)
ans =
r^(n+1)/(r-1)-1/(r-1)
pretty(ans)
(n+1)
r 1
-------- - -----
r-1
r-1
(c)
symsum(xˆk/factorial(k), k, 0, Inf)
??? Error using ==> fix
Function 'fix' not defined for variables of class 'sym'.
Error in ==> C:\MATLABR12\toolbox\matlab\specfun\factorial.m
On line 14 ==> if (length(n) ~ =1) | (fix(n) ~ =n) | (n<0)
Here are two ways around this difficulty. The second method will not work
withthe Student Version.
symsum(xˆk/gamma(k + 1), k, 0, Inf)
ans =
exp(x)
symsum(xˆk/maple('factorial', k), k, 0, Inf)
ans =
exp(x)
(d)
symsum(1/(z - k)ˆ2, k, -Inf, Inf)
Search WWH ::




Custom Search