早教吧 育儿知识 作业答案 考试题库 百科 知识分享

matlab编程中sym2poly报错求指点matlab程序中有两句是:symsx;p=sym2poly(diff((x^2-1)^(n+1),n+1)/(2^(n+1)*factorial(n+1)));ti=roots(p);运行时报错:Errorusing==>putenvmaplevaluetruncatedErrorin==>mapleinitat41putenvmaple('M

题目详情
matlab编程中sym2poly报错求指点
matlab程序中有两句是:
syms x;
p=sym2poly(diff((x^2-1)^(n+1),n+1)/(2^(n+1)*factorial(n+1)));
ti=roots(p);
运行时报错:
Error using ==> putenvmaple
value truncated
Error in ==> mapleinit at 41
putenvmaple('MAPLE',base);
Error in ==> maple at 113
[result,status] = maplemex(statement);
Error in ==> sym.maple at 85
[result,status] = maple(statement);
Error in ==> sym.mpower at 17
B = maple(A,'^',p);
Error in ==> tiAi at 3
p=sym2poly(diff((x^2-1)^(n+1),n+1)/(2^(n+1)*factorial(n+1)));
请问这是怎么回事?需要怎么改?
▼优质解答
答案和解析
sym2poly这个函数用法对吗? 用help查一下 它的参数及类型