there‘s an error ,i can't deal with it,please give me a help
Show older comments
>> clear all,syms x; >> s=solve('(x+2)^x=2','x')
s =
0.69829942170241042826920133106081
>> xs=(s+2)^s ??? Error using ==> mupadmex Error in MuPAD command: Invalid left-hand side [_assign];
during evaluation of '(Dom::Matrix(Dom::ExpressionField()))::_power'
Error in ==> sym.sym>sym.mpower at 207 B = mupadmex('symobj::mpower',A.s,p.s);
2 Comments
Wayne King
on 7 Dec 2011
Hi Tao, What version of MATLAB are you using?
I don't have any trouble with this in R2011b
tao
on 7 Dec 2011
Answers (1)
Andrei Bobrov
on 7 Dec 2011
variant of solution
syms x
s=solve((x+2).^x-2)
xs=(s+2).^s
use '.^'
2 Comments
tao
on 8 Dec 2011
Andrei Bobrov
on 8 Dec 2011
"my" MuPAD return variable 's' as matrix - array, please see: http://imageshack.us/photo/my-images/36/smtimes.png/
Categories
Find more on Numeric Solvers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!