How can you solve non-polynomial equations using MATLAB?

  • Context: MATLAB 
  • Thread starter Thread starter chronicals
  • Start date Start date
  • Tags Tags
    Matlab Roots
Click For Summary
SUMMARY

The discussion focuses on solving non-polynomial equations using MATLAB, specifically the equation f(n) = 40*n^1.5 - 875*n + 35000. The user highlights the challenge posed by non-integer exponents, which are not typical in polynomial equations. However, the solution is straightforward with MATLAB's Symbolic Math Toolbox. By using the 'syms' command and the 'solve' function, users can effectively find solutions, which in this case yield complex results.

PREREQUISITES
  • Familiarity with MATLAB programming environment
  • Understanding of symbolic mathematics
  • Knowledge of non-polynomial equations
  • Basic algebra and equation solving techniques
NEXT STEPS
  • Explore MATLAB's Symbolic Math Toolbox documentation
  • Learn about complex numbers in MATLAB
  • Investigate numerical methods for solving non-polynomial equations
  • Study advanced features of MATLAB for symbolic computation
USEFUL FOR

Mathematicians, engineers, and students who need to solve non-polynomial equations using MATLAB, particularly those interested in symbolic computation and advanced mathematical modeling.

chronicals
Messages
35
Reaction score
0
I have a function : f (n)=40*n^1.5-875*n+35000;

How can i solve this equation with MATLAB. I know how to solve polynomial equation but this is different i think.
 
Physics news on Phys.org
This is not a polynomial because your exponents are not all natural numbers.

Fortunately MATLAB doesn't have a problem with this and you can solve without much thought using the Symbolic Math Toolbox:

Code:
>> syms n
>> solve(40*n^1.5 - 875*n + 35000);
>> double(ans)
ans =
  1.0e+002 *
   3.8402 + 0.0000i
   0.6269 - 0.0000i
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K