# Finding roots with MATLAB

• MATLAB

## Main Question or Discussion Point

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.

Related MATLAB, Maple, Mathematica, LaTeX 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