This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| # Busca Incremental | |
| # [1,002:2] // 100 Subintervalos | |
| # f(x) = 2ln(x-1) + 3 | |
| vetor = np.linspace(1.002, 2, 101, endpoint=True) | |
| def getResult(index): | |
| return 2*np.log(index-1) + 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| char *setPhrase (){ | |
| char *p = (char*)malloc(sizeof(char)*1024); | |
| gets(p); | |
| int i = strlen(p); | |
| return (char*)realloc(p,sizeof(char)*i); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PGraphics graphic; | |
| int largura = 500; | |
| int altura = 500; | |
| int pontosTotais = 0; | |
| int pontosCirculo = 0; | |
| double pi=0; |