Like Tree2Likes
  • 1 Post By h0y5840
  • 1 Post By tabstop

Looking for a C code for roots of high order polynomials

This is a discussion on Looking for a C code for roots of high order polynomials within the C Programming forums, part of the General Programming Boards category; Hi, there, I need to solve hight order polynomial equations like ax^15+bx^12+cx^9+dx^6+ex^3+fx^2+g=0 in my research. Any body knows where to ...

  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    2

    Looking for a C code for roots of high order polynomials

    Hi, there,
    I need to solve hight order polynomial equations like ax^15+bx^12+cx^9+dx^6+ex^3+fx^2+g=0 in my research. Any body knows where to find a c code to solve the roots?
    Many thanks,

    Whitney
    rehana likes this.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185

  3. #3
    Registered User
    Join Date
    May 2011
    Posts
    2
    Can you give a little education about how to find what I want?

  4. #4
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    The red bit of text is a link. You click on it.
    claudiu likes this.

  5. #5
    Registered User
    Join Date
    May 2010
    Location
    Naypyidaw
    Posts
    1,314
    Why don't you use mathlab?

  6. #6
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,262
    If you're asking what I thnk you're asking, then it is believed to be impossible.
    Wikipedia backs this up:
    For a univariate polynomial of degree less than five, we have closed form solutions such as the quadratic formula. However, even this degree-two solution should be used with care to ensure numerical stability. The degree-four solution is unwieldy and troublesome. Higher-degree polynomials have no such general solution, according to the Abel–Ruffini theorem (1824, 1799).
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  7. #7
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,262
    If you're asking what I thnk you're asking, then it is believed to be impossible.
    Wikipedia backs this up:
    For a univariate polynomial of degree less than five, we have closed form solutions such as the quadratic formula. However, even this degree-two solution should be used with care to ensure numerical stability. The degree-four solution is unwieldy and troublesome. Higher-degree polynomials have no such general solution, according to the Abel–Ruffini theorem (1824, 1799).
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  8. #8
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,262
    If you're asking what I thnk you're asking, then it is believed to be impossible.
    Wikipedia backs this up:
    For a univariate polynomial of degree less than five, we have closed form solutions such as the quadratic formula. However, even this degree-two solution should be used with care to ensure numerical stability. The degree-four solution is unwieldy and troublesome. Higher-degree polynomials have no such general solution, according to the Abel–Ruffini theorem (1824, 1799).
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  9. #9
    Registered User
    Join Date
    May 2010
    Location
    Naypyidaw
    Posts
    1,314
    There're numerical methods to solve high order polynomial equation. I've written one that gives me all the roots(including complex roots).using Durand algorithm.
    Last edited by Bayint Naung; 05-17-2011 at 12:39 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 08-25-2010, 08:04 AM
  2. where is my mistake in undersanding the order of this code..
    By transgalactic2 in forum C Programming
    Replies: 9
    Last Post: 10-08-2008, 08:26 AM
  3. Replies: 14
    Last Post: 04-01-2008, 02:23 AM
  4. How do you order your game code?
    By Queatrix in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 02-05-2006, 05:26 PM
  5. what is the significance of low order and high order bits
    By Shadow12345 in forum Windows Programming
    Replies: 1
    Last Post: 11-16-2002, 10:46 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21