Solving Symbolic system of equations returns incorrect solutions.
Show older comments
Matlab is not returning the correct solution to this system of symbolic equations.
syms a1 a2 a3 dx
[Sa1 Sa2 Sa3]= solve(a1+a2+a3==0,a2+2*a3==1/dx,0.5*a2+2*a3==0)
The correct answer should be a1 = -3/2*dx ; a2 = 2/dx ; a3 = -1/2*dx;
Any insight into what I am doing wrong would be greatly appreciated!
Accepted Answer
More Answers (0)
Categories
Find more on Symbolic Math Toolbox 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!