1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Finding roots with MATLAB

  1. Apr 23, 2010 #1
    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.
  2. jcsd
  3. Apr 23, 2010 #2
    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 (Text):
    >> syms n
    >> solve(40*n^1.5 - 875*n + 35000);
    >> double(ans)
    ans =
      1.0e+002 *
       3.8402 + 0.0000i
       0.6269 - 0.0000i
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Discussions: Finding roots with MATLAB
  1. Finding the square root (Replies: 14)