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

matlab解方程的问题我用SOLVE解,运行很慢,且出现错误,是怎么回事啊,求教,symsx;solve('x^2+2*x+2=0');出错:Errorusing==>mupadmexOutofmemory.TypeHELPMEMORYforyouroptions.Errorin==>mupadengine.mupadengine>mupadengin

题目详情
matlab解方程的问题
我用SOLVE解,运行很慢,且出现错误,是怎么回事啊,求教,
syms x;
solve('x^2+2*x+2=0');
出错:
Error using ==> mupadmex
Out of memory.Type HELP MEMORY for your options.
Error in ==> mupadengine.mupadengine>mupadengine.evalin
at 119
[res,status] = mupadmex(statement);
Error in ==> mupadengine.mupadengine>mupadengine.feval at
157
[S,err] = evalin(engine,stmt);
Error in ==> mupadfeval at 24
[S,err] = feval(symengine,cmd,varargin{:}); % returns
sym
Error in ==> sym.findsym at 38
v = mupadfeval('mlindets',S,nargin = 1);
Error in ==> solve>mupadSolve at 189
vars = ['[' findsym(eqns,neqns) ']'];
Error in ==> solve at 93
[R,symvars,order] = mupadSolve(eqns,vars);
▼优质解答
答案和解析
这种多项式
直接
roots([1 2 2])
很快滴