MATLAB Polymath or Matlab non-linear algebraic solver

  • Thread starter Thread starter member 392791
  • Start date Start date
  • Tags Tags
    Matlab Non-linear
AI Thread Summary
The discussion centers on a user's difficulty in inputting a non-linear algebraic equation into Polymath for solving. The equation in question is x*(100-.5*x)^0.5/(15-x)/(20-.5*x)^0.5 - 87.824 == 0, with the user seeking assistance in solving for x. Recommendations include using MATLAB's fzero() function to find roots and ensuring proper use of parentheses to avoid parsing issues. A provided function format for MATLAB is suggested, emphasizing the use of array operators. Additionally, when the function was plotted, no real solutions for x were found, indicating that any potential solutions may be complex.
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.
 

Similar threads

Replies
4
Views
1K
Replies
2
Views
2K
Replies
1
Views
2K
Replies
4
Views
3K
Replies
6
Views
2K
Replies
1
Views
3K
Back
Top