| Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
|
|
#1 |
|
初级会员
注册日期: 2009-05-24
年龄: 38
帖子: 2
声望力: 0 ![]() |
我想求出一个表达式的值
表达式见附件 我用的函数是 代码:
symsum(x^k/(gamma(k)),k,0,inf) 错误提示如下: 代码:
??? Error using ==> sym.maple
Error, (in sum/infinite) Summand is singular at k = 0 in the interval of summation
Error in ==> sym.symsum at 43
r = maple('map','sum',f,[x.s '=' a.s '..' b.s]);
如果改成 代码:
symsum(x^k/(gamma(k)),k,1,inf) 不知道我的分析对不对? matlab不能有0的阶乘吗? 我想求的表达式有没有更好的表示方式? 新手第一次发问
|
|
|
|
|
|
#2 |
|
普通会员
注册日期: 2009-02-22
帖子: 91
声望力: 18 ![]() |
没问题的。
>>syms k x symsum(x^k/(gamma(k)),k,0,inf) >>ans = x*exp(x) 应该是matlab版本问题!! |
|
|
|
|
|
#3 |
|
初级会员
注册日期: 2009-05-24
年龄: 38
帖子: 2
声望力: 0 ![]() |
真奇了怪了!!
我的版本是matlab7.0 |
|
|
|