Polymath or Matlab non-linear algebraic solver

  • Context: MATLAB 
  • Thread starter Thread starter member 392791
  • Start date Start date
  • Tags Tags
    Matlab Non-linear
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 5K views
member 392791
Hello,

I am having difficulty inputting a non linear algebraic equation into polymath to solve

for reference the equation is

x*(100-.5*x)^0.5/(15-x)/(20-.5 * x)^0.5 - 87.824 == 0

and I want to solve for x, but haven't gotten anything. Also I don't know how to program it into matlab. Anyone that can help?? Thank you
 
Physics news on Phys.org
It could be that the software is having trouble parsing your equation as it is written. Don't skimp on parentheses.
 
Unless you explicitly want matrix power or matrix multiply, I recommend using the array operators exclusively.
Code:
fun = @(x) x.*(100-0.5.*x).^0.5./(15-x)/(20-0.5.*x).^0.5 - 87.824;
When I plotted this function, I did not find any real solutions for x. If it has any, they are complex.