Polymath or Matlab non-linear algebraic solver

  • Context: MATLAB 
  • Thread starter Thread starter member 392791
  • Start date Start date
  • Tags Tags
    Matlab Non-linear
Click For Summary

Discussion Overview

The discussion revolves around the challenges of inputting and solving a non-linear algebraic equation using Polymath and MATLAB. Participants are seeking assistance with programming and solving the equation for the variable x.

Discussion Character

  • Technical explanation, Debate/contested, Homework-related

Main Points Raised

  • One participant expresses difficulty in inputting the non-linear equation into Polymath and requests help with MATLAB programming.
  • Another participant suggests using the fzero() function in MATLAB as a potential solution.
  • A different participant cautions that the software might struggle with parsing the equation and emphasizes the importance of using parentheses correctly.
  • One participant provides a specific function definition for MATLAB, recommending the use of array operators and notes that their plot did not reveal any real solutions for x, suggesting that any solutions might be complex.

Areas of Agreement / Disagreement

Participants have not reached a consensus on the best approach to solve the equation, and there are differing opinions on the potential existence of real solutions.

Contextual Notes

There are unresolved issues regarding the correct formatting of the equation for software input and the implications of using different operators in MATLAB.

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 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
7K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K