-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPolynom.h
More file actions
39 lines (34 loc) · 828 Bytes
/
Polynom.h
File metadata and controls
39 lines (34 loc) · 828 Bytes
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
#pragma once
#include <stdio.h>
#include <math.h>
#include <iostream>
using namespace std;
#include <cstring>
#include <cstdlib>
#include <complex>
#ifndef POLYNOM_H
#define POLYNOM_H
class Polynom
{
public:
int degree;
double* koef;
Polynom();
Polynom(int d, double* k);
~Polynom();
void deletePoly();
void SetPoly(int d, double* k);
void copyPoly(Polynom& ob);
Polynom operator/(Polynom& ob);
Polynom operator*(Polynom& ob);
Polynom operator-(Polynom& ob);
Polynom operator%(Polynom& ob);
Polynom& operator=(const Polynom& ob);
void printPoly();
void deleteBy_a0();
Polynom derivative();
double value(double x);
complex <double> value_complex(complex <double> x);
void removeMultipleRoots(void);
};
#endif