I am trying to solve this equation: $e^x=x^e+e$ in MATLAB, but I continually get an error. I do not know where to go from here. Any help is appreciated This is what I have:
a = x^exp(1) + exp(1) == exp(x);
syms x
b = solve(a,x);
disp(b);
I am trying to solve this equation: $e^x=x^e+e$ in MATLAB, but I continually get an error. I do not know where to go from here. Any help is appreciated This is what I have:
a = x^exp(1) + exp(1) == exp(x);
syms x
b = solve(a,x);
disp(b);
You need to tell Matlab that $x$ is symbolic before you use it. Swap your first and second lines.