-
Notifications
You must be signed in to change notification settings - Fork 0
/
PolynomQ.h
43 lines (36 loc) · 816 Bytes
/
PolynomQ.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef PolynomQ_h
#define PolynomQ_h
#include "Polynom.h"
/*
2) "Êâàäðàòíûé òðåõ÷ëåí". Èíèöèàëèçàöèÿ ñèìâîëüíîé ñòðîêîé è òðîéêîé ÷èñåë.
Ìåòîäû:
* íàõîæäåíèå êîðíåé ìíîãî÷ëåíà;
* ðàçëîæåíèå ìíîãî÷ëåíà íà ìíîæèòåëè (ðåçóëüòàò - ïàðà íîâûõ ìíîãî÷ëåíîâ èëè
ïðèçíàê òîãî, ÷òî èñõîäíûé ìíîãî÷ëåí íåïðèâîäèì).
*/
struct pairOfRoots{
long double first;
long double second;
};
struct pairOfPolynoms{
Polynom first;
Polynom second;
};
struct badcoeffitients{
badcoeffitients(){
}
};
struct irreducible{
irreducible(){
}
};
class PolynomQ:public Polynom{
public:
PolynomQ(){};
PolynomQ(const PolynomQ& p){copy(p);}
// PolynomQ& operator = (const PolynomQ &);
PolynomQ(const long double,const long double,const long double);
pairOfRoots computeRoots();
pairOfPolynoms factorization();
};
#endif