ok I know that if you took algebra in high school you probably spent a week learning how to factor polynomials, and chances are you hated it. Hence you can see why I would like to write a program to handle this sort of thing, and it just seems like a good challange for someone at my skill level.
CODE
#include <iostream>
#include <math>
using namespace std;
int main()
{
flaot x,y,a,b,c,a1,b1,c1,d1;
cout<<"trying to factor a polynomial\n";
cout<<"please enter first value, in xe2 form\n";
cin>> a;
cout<<"and the variable\n;"
cin>> 'x';
cout<<"now the second value\n";
cin>> b;
cout<<"and the variable\n";
cin>> 'x';
cout<<"nown the last value\n";
cin>> c;
//axe2-bx+c=0
a=a1*c1;
b=a1*d1+b1*C1
I know its incomplete I just got lost at this point trying to figure out how to make the prog. handle the character xe2 which is x to the power of 2, x^2 evaluates the same way, and be able to divide it mathematically.
for those of you who dont know anything about factoring polynomials I'll give you a basic overview:
xe2-5x+6
factors to:
(x-2)(x-3)
2xe2+7x+6
factors to:
(2x+3)(x+2)
thanks for the help in advance