Hi,

I need to write C++ code to find the factors of a polynomial.For eg. X^2-1 should return x-1 and x+1...anyone have any ideas on how to do this?

I'm actually implementing something similar to a CRC..I need to use one of the factors to divide a message and get the remainder...any help with this is appreciated

Member Avatar for iamthwee

Write yourself an expression parser which handles polynomials, then apply a numerical method such as the newton raphson to find the roots of the equation.

expression parser that handles polynomials?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.