Polymath or Matlab non-linear algebraic solver

  • MATLAB
  • Thread starter Woopydalan
  • Start date
  • #1
744
2

Main Question or Discussion Point

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
 

Answers and Replies

  • #3
SteamKing
Staff Emeritus
Science Advisor
Homework Helper
12,798
1,666
It could be that the software is having trouble parsing your equation as it is written. Don't skimp on parentheses.
 
  • #4
kreil
Insights Author
Gold Member
668
67
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.
 

Related Threads on Polymath or Matlab non-linear algebraic solver

  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
2
Views
8K
  • Last Post
Replies
1
Views
1K
Replies
2
Views
9K
  • Last Post
Replies
1
Views
3K
Replies
3
Views
7K
Replies
0
Views
3K
Replies
4
Views
5K
Replies
4
Views
3K
Top