Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Polymath or Matlab non-linear algebraic solver

  1. Oct 11, 2013 #1

    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
  2. jcsd
  3. Nov 21, 2013 #2


    User Avatar
    Gold Member

  4. Nov 21, 2013 #3


    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper

    It could be that the software is having trouble parsing your equation as it is written. Don't skimp on parentheses.
  5. Nov 22, 2013 #4


    User Avatar
    Gold Member

    Unless you explicitly want matrix power or matrix multiply, I recommend using the array operators exclusively.
    Code (Text):

    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.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Polymath Matlab linear Date
How to program this in Matlab Feb 28, 2018
Matlab Making a short test for self-adjointness Feb 23, 2018
Matlab Plotting Coordinate Transformations in Matlab Feb 12, 2018
Matlab "Linear Model" of a Pendulum via Euler's Method Nov 16, 2016