Hi,
I've written a program (Polynomials) that attempts to factor equations.
It works OK. After the basic techniques I use Synthetic Division (SD).
The literature says that the factors +/-(of Constant / Highest exponents coefficient) are the ONLY possible factors.
But this doesn't take into account when a 'crossover' is at a re[eating or irrational value, so I built an extension to SD.
It works OK. by a "brute force" method :
[1] Find a start and end value of 'x' to search for.
[2] Set X1 & X2 to the start value (-ive) and X2 to X1 +1
[3] Generate f(FX1) & f(FX2) for the values of X1 & X2
[4] Look for a 'crossover' on the X axis. If found store them.
[5] When all have been found narrow the 'steps' to 0.0000001 and repeat above
for the stred values.
But suppose there is more than 1 crossover between X1 & X2 ?
Can you think of a way I can get round this ?
Pete
I've written a program (Polynomials) that attempts to factor equations.
It works OK. After the basic techniques I use Synthetic Division (SD).
The literature says that the factors +/-(of Constant / Highest exponents coefficient) are the ONLY possible factors.
But this doesn't take into account when a 'crossover' is at a re[eating or irrational value, so I built an extension to SD.
It works OK. by a "brute force" method :
[1] Find a start and end value of 'x' to search for.
[2] Set X1 & X2 to the start value (-ive) and X2 to X1 +1
[3] Generate f(FX1) & f(FX2) for the values of X1 & X2
[4] Look for a 'crossover' on the X axis. If found store them.
[5] When all have been found narrow the 'steps' to 0.0000001 and repeat above
for the stred values.
But suppose there is more than 1 crossover between X1 & X2 ?
Can you think of a way I can get round this ?
Pete