-
Notifications
You must be signed in to change notification settings - Fork 0
/
debug.h
46 lines (40 loc) · 974 Bytes
/
debug.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
44
45
46
#ifndef H8OR_DEBUG
#define H8OR_DEBUG 1
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
#include "mmq.h"
#define NUMERO_PONTOS 5
#define GRAU 1
void debug_PreencheTabelaPontos(SPonto *tabela)
{
tabela[0].x = 0;
tabela[0].y = 0;
tabela[1].x = 1;
tabela[1].y = 1;
tabela[2].x = 2;
tabela[2].y = 1;
tabela[3].x = 3;
tabela[3].y = 4;
tabela[4].x = 4;
tabela[4].y = 4;
}
void MostraMatrizCoeficientes(double **coeficientes, int grauPolinomio)
{
for (int linha = 0; linha <= grauPolinomio; linha++) {
for (int coluna = 0; coluna <= grauPolinomio; coluna++) {
cout << coeficientes[linha][coluna] << ' ';
}
cout << endl;
}
cout << endl;
}
void MostraTermosIndependentes(double *independentes, int grauPolinomio)
{
for (int linha = 0; linha <= grauPolinomio; linha++) {
cout << independentes[linha] << endl;
}
cout << endl;
}
#endif // H8OR_DEBUG