SlideShare a Scribd company logo
1 of 2
Download to read offline
coeficiente angular coeficiente linear coeficiente linear
iteração x x1 y1 x2 y2 r y m se (m > 1 ) x = x1 x <= x2 x++ r = (x1 + ((y - y1) / m)) se (m <= 1 ) x = x1 x <= x2 x++ y = y1 + m * (x - x2)
0 -5 -10 20 30 0 0 0 1 > 1 1 <= 1 x = -5 (-5) <= 20 (-5) + 1 y = (-10) + 1 * (-5 - 20)
m = (30 + 10) / (20 + 5) FALSO VERDADEIRO VERDADEIRO -4 y = (-10) + 1 * (-25)
m = (40) / (25) y = (-10) + (-25)
1,6 -35
-4 -5 -10 20 30 0 -35 1 x = -4 (-4) <= 20 (-4) + 1 y = (-10) + 1 * (-4- 20)
VERDADEIRO -3 -34
-3 -5 -10 20 30 0 -34 1 x = -3 (-3) <= 20 (-3) + 1 y = (-10) + 1 * (-3- 20)
VERDADEIRO -2 -33
-2 -5 -10 20 30 0 -33 1 x = -2 (-2) <= 20 (-2) + 1 y = (-10) + 1 * (-2- 20)
VERDADEIRO -1 -32
-1 -5 -10 20 30 0 -32 1 x = -1 (-1) <= 20 (-1) + 1 y = (-10) + 1 * (-1 - 20)
VERDADEIRO 0 -31
0 -5 -10 20 30 0 -31 1 x = 0 (0) <= 20 0 + 1 y = (-10) + 1 * (0 - 20)
VERDADEIRO 1 -30
7 1 -5 -10 20 30 0 -30 1 x = 1 1 <= 20 1 + 1 y = (-10) + 1 * (1 - 20)
VERDADEIRO 2 -29
8 2 -5 -10 20 30 0 -29 1 x = 2 2 <= 20 2 + 1 y = (-10) + 1 * (2 - 20)
VERDADEIRO 2 -28
9 3 -5 -10 20 30 0 -28 1 x = 3 3 <= 20 3 + 1 y = (-10) + 1 * (3 - 20)
VERDADEIRO 2 -27
10 4 -5 -10 20 30 0 -27 1 x = 4 4 <= 20 4 + 1 y = (-10) + 1 * (4 - 20)
VERDADEIRO 2 -26
11 5 -5 -10 20 30 0 -26 1 x = 5 5 <= 20 5 + 1 y = (-10) + 1 * (5 - 20)
VERDADEIRO 2 -25
12 6 -5 -10 20 30 0 -25 1 x = 6 6 <= 20 6 + 1 y = (-10) + 1 * (6 - 20)
VERDADEIRO 2 -24
13 7 -5 -10 20 30 0 -24 1 x = 7 7 <= 20 7 + 1 y = (-10) + 1 * (7 - 20)
VERDADEIRO 2 -23
14 8 -5 -10 20 30 0 -23 1 x = 8 8 <= 20 8 + 1 y = (-10) + 1 * 8 - 20)
VERDADEIRO 2 -22
15 9 -5 -10 20 30 0 -22 1 x = 9 9 <= 20 9 + 1 y = (-10) + 1 * (9 - 20)
VERDADEIRO 2 -21
16 10 -5 -10 20 30 0 -21 1 x = 10 10 <= 20 10 + 1 y = (-10) + 1 * (10 - 20)
VERDADEIRO 2 -20
3
4
5
6
valor arredondado para baixo = 1
1
2
TESTE DE MESA DO ALGORITMO DA EQUAÇÃO DA RETA 2
IF ELSE
FOR FOR
parametros inicias
iteração x x1 y1 x2 y2 r y m se (m > 1 ) x = x1 x <= x2 x++ r = (x1 + ((y - y1) / m)) se (m <= 1 ) x = x1 x <= x2 x++ y = y1 + m * (x - x2)
17 11 -5 -10 20 30 0 -20 1 x = 11 11 <= 20 11 + 1 y = (-10) + 1 * (11 - 20)
VERDADEIRO 2 -19
18 12 -5 -10 20 30 0 -19 1 x = 12 12 <= 20 12 + 1 y = (-10) + 1 * (12 - 20)
VERDADEIRO 2 -18
19 13 -5 -10 20 30 0 -18 1 x = 13 13 <= 20 13 + 1 y = (-10) + 1 * (13 - 20)
VERDADEIRO 2 -17
20 14 -5 -10 20 30 0 -17 1 x = 14 14 <= 20 14 + 1 y = (-10) + 1 * (14 - 20)
VERDADEIRO 2 -16
21 15 -5 -10 20 30 0 -16 1 x = 15 15 <= 20 15 + 1 y = (-10) + 1 * (15 - 20)
VERDADEIRO 2 -15
22 16 -5 -10 20 30 0 -15 1 x = 16 16 <= 20 16 + 1 y = (-10) + 1 * (16 - 20)
VERDADEIRO 2 -14
23 17 -5 -10 20 30 0 -14 1 x = 17 17 <= 20 17 + 1 y = (-10) + 1 * (17 - 20)
VERDADEIRO 2 -13
24 18 -5 -10 20 30 0 -13 1 x = 18 18 <= 20 18 + 1 y = (-10) + 1 * (18 - 20)
VERDADEIRO 2 -12
25 19 -5 -10 20 30 0 -12 1 x = 19 19 <= 20 19 + 1 y = (-10) + 1 * (19 - 20)
VERDADEIRO 2 -11
26 20 -5 -10 20 30 0 -11 1 x = 20 20 <= 20 20 + 1 y = (-10) + 1 * (20 - 20)
VERDADEIRO 2 -10
27 21 -5 -10 20 30 0 -10 1 x = 21 21 <= 20
FALSO

More Related Content

More from Elaine Cecília Gatto

More from Elaine Cecília Gatto (20)

Inteligência Artificial Aplicada à Medicina
Inteligência Artificial Aplicada à MedicinaInteligência Artificial Aplicada à Medicina
Inteligência Artificial Aplicada à Medicina
 
Além do Aprendizado Local e Global: Particionando o espaço de classes em prob...
Além do Aprendizado Local e Global: Particionando o espaço de classes em prob...Além do Aprendizado Local e Global: Particionando o espaço de classes em prob...
Além do Aprendizado Local e Global: Particionando o espaço de classes em prob...
 
Apresentação da minha tese de doutorado no EPPC
Apresentação da minha tese de doutorado no EPPCApresentação da minha tese de doutorado no EPPC
Apresentação da minha tese de doutorado no EPPC
 
entrevista r7.pdf
entrevista r7.pdfentrevista r7.pdf
entrevista r7.pdf
 
Como a pesquisa científica impacta o mundo real.pptx
Como a pesquisa científica impacta o mundo real.pptxComo a pesquisa científica impacta o mundo real.pptx
Como a pesquisa científica impacta o mundo real.pptx
 
Empoderamento Feminino
Empoderamento FemininoEmpoderamento Feminino
Empoderamento Feminino
 
Explorando correlações entre rótulos para o particionamento do espaço de rótu...
Explorando correlações entre rótulos para o particionamento do espaço de rótu...Explorando correlações entre rótulos para o particionamento do espaço de rótu...
Explorando correlações entre rótulos para o particionamento do espaço de rótu...
 
Community Detection for Multi-Label Classification - Seminários UFSCar
Community Detection for Multi-Label Classification - Seminários UFSCarCommunity Detection for Multi-Label Classification - Seminários UFSCar
Community Detection for Multi-Label Classification - Seminários UFSCar
 
Classificação Multirrótulo: Aprendizado de Correlações
Classificação Multirrótulo: Aprendizado de CorrelaçõesClassificação Multirrótulo: Aprendizado de Correlações
Classificação Multirrótulo: Aprendizado de Correlações
 
EXPLORANDO CORRELAÇÕES PARA O PARTICIONAMENTO DO ESPAÇO DE RÓTULOS EM PROBLEM...
EXPLORANDO CORRELAÇÕES PARA O PARTICIONAMENTO DO ESPAÇO DE RÓTULOS EM PROBLEM...EXPLORANDO CORRELAÇÕES PARA O PARTICIONAMENTO DO ESPAÇO DE RÓTULOS EM PROBLEM...
EXPLORANDO CORRELAÇÕES PARA O PARTICIONAMENTO DO ESPAÇO DE RÓTULOS EM PROBLEM...
 
Community Detection Method for Multi-Label Classification
Community Detection Method for Multi-Label ClassificationCommunity Detection Method for Multi-Label Classification
Community Detection Method for Multi-Label Classification
 
Mulheres na Campus Party assumir o feminismo ou não – Blogueiras Feministas.pdf
Mulheres na Campus Party assumir o feminismo ou não – Blogueiras Feministas.pdfMulheres na Campus Party assumir o feminismo ou não – Blogueiras Feministas.pdf
Mulheres na Campus Party assumir o feminismo ou não – Blogueiras Feministas.pdf
 
Curtinhas de sábado.pdf
Curtinhas de sábado.pdfCurtinhas de sábado.pdf
Curtinhas de sábado.pdf
 
Explorando Correlações entre Rótulos usando Métodos de Detecção de Comu...
Explorando Correlações entre Rótulos usando Métodos de Detecção de Comu...Explorando Correlações entre Rótulos usando Métodos de Detecção de Comu...
Explorando Correlações entre Rótulos usando Métodos de Detecção de Comu...
 
EXPLORANDO CORRELAÇÕES PARA O PARTICIONAMENTO DO ESPAÇO DE RÓTULOS EM PROBLEM...
EXPLORANDO CORRELAÇÕES PARA O PARTICIONAMENTO DO ESPAÇO DE RÓTULOS EM PROBLEM...EXPLORANDO CORRELAÇÕES PARA O PARTICIONAMENTO DO ESPAÇO DE RÓTULOS EM PROBLEM...
EXPLORANDO CORRELAÇÕES PARA O PARTICIONAMENTO DO ESPAÇO DE RÓTULOS EM PROBLEM...
 
Pipeline desdobramento escalonamento
Pipeline desdobramento escalonamentoPipeline desdobramento escalonamento
Pipeline desdobramento escalonamento
 
Cheat sheet Mips 32 bits
Cheat sheet Mips 32 bitsCheat sheet Mips 32 bits
Cheat sheet Mips 32 bits
 
Resumo das Instruções de Desvio Incondicionais MIPS 32 bits
Resumo das Instruções de Desvio Incondicionais MIPS 32 bitsResumo das Instruções de Desvio Incondicionais MIPS 32 bits
Resumo das Instruções de Desvio Incondicionais MIPS 32 bits
 
Como descobrir e classificar coisas usando machine learning sem compilcação
Como descobrir e classificar coisas usando machine learning sem compilcaçãoComo descobrir e classificar coisas usando machine learning sem compilcação
Como descobrir e classificar coisas usando machine learning sem compilcação
 
Exploring label correlations for partitioning the label space in multi label ...
Exploring label correlations for partitioning the label space in multi label ...Exploring label correlations for partitioning the label space in multi label ...
Exploring label correlations for partitioning the label space in multi label ...
 

Recently uploaded

Adducchio.Samuel-Steve_Jobs.ppppppppppptx
Adducchio.Samuel-Steve_Jobs.ppppppppppptxAdducchio.Samuel-Steve_Jobs.ppppppppppptx
Adducchio.Samuel-Steve_Jobs.ppppppppppptx
sasaselvatico
 
Presentazione tre geni della tecnologia informatica
Presentazione tre geni della tecnologia informaticaPresentazione tre geni della tecnologia informatica
Presentazione tre geni della tecnologia informatica
nico07fusco
 

Recently uploaded (20)

TeccarelliLorenzo-i4stilidellapitturaromana.docx
TeccarelliLorenzo-i4stilidellapitturaromana.docxTeccarelliLorenzo-i4stilidellapitturaromana.docx
TeccarelliLorenzo-i4stilidellapitturaromana.docx
 
Adducchio.Samuel-Steve_Jobs.ppppppppppptx
Adducchio.Samuel-Steve_Jobs.ppppppppppptxAdducchio.Samuel-Steve_Jobs.ppppppppppptx
Adducchio.Samuel-Steve_Jobs.ppppppppppptx
 
Le forme allotropiche del C-Palestini e Pancia.docx
Le forme allotropiche del C-Palestini e Pancia.docxLe forme allotropiche del C-Palestini e Pancia.docx
Le forme allotropiche del C-Palestini e Pancia.docx
 
PalestiniAurora-la conoscenzatestoita.docx
PalestiniAurora-la conoscenzatestoita.docxPalestiniAurora-la conoscenzatestoita.docx
PalestiniAurora-la conoscenzatestoita.docx
 
TeccarelliLorenzo-Mitodella.cavernaa.pdf
TeccarelliLorenzo-Mitodella.cavernaa.pdfTeccarelliLorenzo-Mitodella.cavernaa.pdf
TeccarelliLorenzo-Mitodella.cavernaa.pdf
 
CHIẾN THẮNG KÌ THI TUYỂN SINH VÀO LỚP 10 THPT MÔN NGỮ VĂN - PHAN THẾ HOÀI (36...
CHIẾN THẮNG KÌ THI TUYỂN SINH VÀO LỚP 10 THPT MÔN NGỮ VĂN - PHAN THẾ HOÀI (36...CHIẾN THẮNG KÌ THI TUYỂN SINH VÀO LỚP 10 THPT MÔN NGỮ VĂN - PHAN THẾ HOÀI (36...
CHIẾN THẮNG KÌ THI TUYỂN SINH VÀO LỚP 10 THPT MÔN NGỮ VĂN - PHAN THẾ HOÀI (36...
 
Educazione civica-Asia Pancia powerpoint
Educazione civica-Asia Pancia powerpointEducazione civica-Asia Pancia powerpoint
Educazione civica-Asia Pancia powerpoint
 
Gli isotopi scienze naturale seconda pres
Gli isotopi scienze naturale seconda presGli isotopi scienze naturale seconda pres
Gli isotopi scienze naturale seconda pres
 
Le forme allotropiche del C-Palestini e Pancia.docx
Le forme allotropiche del C-Palestini e Pancia.docxLe forme allotropiche del C-Palestini e Pancia.docx
Le forme allotropiche del C-Palestini e Pancia.docx
 
a scuola di biblioVerifica: come utilizzare il test TRAAP
a scuola di biblioVerifica: come utilizzare il test TRAAPa scuola di biblioVerifica: come utilizzare il test TRAAP
a scuola di biblioVerifica: come utilizzare il test TRAAP
 
magia, stregoneria, inquisizione e medicina.pptx
magia, stregoneria, inquisizione e medicina.pptxmagia, stregoneria, inquisizione e medicina.pptx
magia, stregoneria, inquisizione e medicina.pptx
 
Presentazione tre geni della tecnologia informatica
Presentazione tre geni della tecnologia informaticaPresentazione tre geni della tecnologia informatica
Presentazione tre geni della tecnologia informatica
 
Pancia Asia-La vita di Steve Jobs-Adriano Olivetti-Bill Gates.pptx
Pancia Asia-La vita di Steve Jobs-Adriano Olivetti-Bill Gates.pptxPancia Asia-La vita di Steve Jobs-Adriano Olivetti-Bill Gates.pptx
Pancia Asia-La vita di Steve Jobs-Adriano Olivetti-Bill Gates.pptx
 
Storia-CarloMagno-TeccarelliLorenzo.pptx
Storia-CarloMagno-TeccarelliLorenzo.pptxStoria-CarloMagno-TeccarelliLorenzo.pptx
Storia-CarloMagno-TeccarelliLorenzo.pptx
 
magia, stregoneria, inquisizione e medicina.pptx
magia, stregoneria, inquisizione e medicina.pptxmagia, stregoneria, inquisizione e medicina.pptx
magia, stregoneria, inquisizione e medicina.pptx
 
Esame di Stato 2024 - Materiale conferenza online 09 aprile 2024
Esame di Stato 2024 - Materiale conferenza online 09 aprile 2024Esame di Stato 2024 - Materiale conferenza online 09 aprile 2024
Esame di Stato 2024 - Materiale conferenza online 09 aprile 2024
 
Palestini Aurora-Steve Jobs,Olivetti e Gates.pptx
Palestini Aurora-Steve Jobs,Olivetti e Gates.pptxPalestini Aurora-Steve Jobs,Olivetti e Gates.pptx
Palestini Aurora-Steve Jobs,Olivetti e Gates.pptx
 
Pancia Asia_relazione laboratorio(forza d'attrito).docx
Pancia Asia_relazione laboratorio(forza d'attrito).docxPancia Asia_relazione laboratorio(forza d'attrito).docx
Pancia Asia_relazione laboratorio(forza d'attrito).docx
 
Piccole Personetestoitaliano-AuroraPalestini.docx
Piccole Personetestoitaliano-AuroraPalestini.docxPiccole Personetestoitaliano-AuroraPalestini.docx
Piccole Personetestoitaliano-AuroraPalestini.docx
 
TeccarelliLorenzo-PrimadiSteveJobselasuaconcorrenza.pptx
TeccarelliLorenzo-PrimadiSteveJobselasuaconcorrenza.pptxTeccarelliLorenzo-PrimadiSteveJobselasuaconcorrenza.pptx
TeccarelliLorenzo-PrimadiSteveJobselasuaconcorrenza.pptx
 

Equacao da reta 2 - Correcao do teste de mesa

  • 1. coeficiente angular coeficiente linear coeficiente linear iteração x x1 y1 x2 y2 r y m se (m > 1 ) x = x1 x <= x2 x++ r = (x1 + ((y - y1) / m)) se (m <= 1 ) x = x1 x <= x2 x++ y = y1 + m * (x - x2) 0 -5 -10 20 30 0 0 0 1 > 1 1 <= 1 x = -5 (-5) <= 20 (-5) + 1 y = (-10) + 1 * (-5 - 20) m = (30 + 10) / (20 + 5) FALSO VERDADEIRO VERDADEIRO -4 y = (-10) + 1 * (-25) m = (40) / (25) y = (-10) + (-25) 1,6 -35 -4 -5 -10 20 30 0 -35 1 x = -4 (-4) <= 20 (-4) + 1 y = (-10) + 1 * (-4- 20) VERDADEIRO -3 -34 -3 -5 -10 20 30 0 -34 1 x = -3 (-3) <= 20 (-3) + 1 y = (-10) + 1 * (-3- 20) VERDADEIRO -2 -33 -2 -5 -10 20 30 0 -33 1 x = -2 (-2) <= 20 (-2) + 1 y = (-10) + 1 * (-2- 20) VERDADEIRO -1 -32 -1 -5 -10 20 30 0 -32 1 x = -1 (-1) <= 20 (-1) + 1 y = (-10) + 1 * (-1 - 20) VERDADEIRO 0 -31 0 -5 -10 20 30 0 -31 1 x = 0 (0) <= 20 0 + 1 y = (-10) + 1 * (0 - 20) VERDADEIRO 1 -30 7 1 -5 -10 20 30 0 -30 1 x = 1 1 <= 20 1 + 1 y = (-10) + 1 * (1 - 20) VERDADEIRO 2 -29 8 2 -5 -10 20 30 0 -29 1 x = 2 2 <= 20 2 + 1 y = (-10) + 1 * (2 - 20) VERDADEIRO 2 -28 9 3 -5 -10 20 30 0 -28 1 x = 3 3 <= 20 3 + 1 y = (-10) + 1 * (3 - 20) VERDADEIRO 2 -27 10 4 -5 -10 20 30 0 -27 1 x = 4 4 <= 20 4 + 1 y = (-10) + 1 * (4 - 20) VERDADEIRO 2 -26 11 5 -5 -10 20 30 0 -26 1 x = 5 5 <= 20 5 + 1 y = (-10) + 1 * (5 - 20) VERDADEIRO 2 -25 12 6 -5 -10 20 30 0 -25 1 x = 6 6 <= 20 6 + 1 y = (-10) + 1 * (6 - 20) VERDADEIRO 2 -24 13 7 -5 -10 20 30 0 -24 1 x = 7 7 <= 20 7 + 1 y = (-10) + 1 * (7 - 20) VERDADEIRO 2 -23 14 8 -5 -10 20 30 0 -23 1 x = 8 8 <= 20 8 + 1 y = (-10) + 1 * 8 - 20) VERDADEIRO 2 -22 15 9 -5 -10 20 30 0 -22 1 x = 9 9 <= 20 9 + 1 y = (-10) + 1 * (9 - 20) VERDADEIRO 2 -21 16 10 -5 -10 20 30 0 -21 1 x = 10 10 <= 20 10 + 1 y = (-10) + 1 * (10 - 20) VERDADEIRO 2 -20 3 4 5 6 valor arredondado para baixo = 1 1 2 TESTE DE MESA DO ALGORITMO DA EQUAÇÃO DA RETA 2 IF ELSE FOR FOR parametros inicias
  • 2. iteração x x1 y1 x2 y2 r y m se (m > 1 ) x = x1 x <= x2 x++ r = (x1 + ((y - y1) / m)) se (m <= 1 ) x = x1 x <= x2 x++ y = y1 + m * (x - x2) 17 11 -5 -10 20 30 0 -20 1 x = 11 11 <= 20 11 + 1 y = (-10) + 1 * (11 - 20) VERDADEIRO 2 -19 18 12 -5 -10 20 30 0 -19 1 x = 12 12 <= 20 12 + 1 y = (-10) + 1 * (12 - 20) VERDADEIRO 2 -18 19 13 -5 -10 20 30 0 -18 1 x = 13 13 <= 20 13 + 1 y = (-10) + 1 * (13 - 20) VERDADEIRO 2 -17 20 14 -5 -10 20 30 0 -17 1 x = 14 14 <= 20 14 + 1 y = (-10) + 1 * (14 - 20) VERDADEIRO 2 -16 21 15 -5 -10 20 30 0 -16 1 x = 15 15 <= 20 15 + 1 y = (-10) + 1 * (15 - 20) VERDADEIRO 2 -15 22 16 -5 -10 20 30 0 -15 1 x = 16 16 <= 20 16 + 1 y = (-10) + 1 * (16 - 20) VERDADEIRO 2 -14 23 17 -5 -10 20 30 0 -14 1 x = 17 17 <= 20 17 + 1 y = (-10) + 1 * (17 - 20) VERDADEIRO 2 -13 24 18 -5 -10 20 30 0 -13 1 x = 18 18 <= 20 18 + 1 y = (-10) + 1 * (18 - 20) VERDADEIRO 2 -12 25 19 -5 -10 20 30 0 -12 1 x = 19 19 <= 20 19 + 1 y = (-10) + 1 * (19 - 20) VERDADEIRO 2 -11 26 20 -5 -10 20 30 0 -11 1 x = 20 20 <= 20 20 + 1 y = (-10) + 1 * (20 - 20) VERDADEIRO 2 -10 27 21 -5 -10 20 30 0 -10 1 x = 21 21 <= 20 FALSO