Answer the question
In order to leave comments, you need to log in
How to correctly implement the exponentiation of a polynomial?
Good evening.
The problem arose such, I can not understand how to correctly raise a polynomial to a power.
This is how the polynomial is stored:
class Polynom {
private:
int deg; //степень полинома
double *koef; //указатель на массив коэффициентов полинома
Polynom "имя объекта"(степень первого полинома умножаемого + степень второго умножаемого);
Polynom::Polynom(int count)
{
deg=count;
koef=new double[deg+1];
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question