Skip to content

Instantly share code, notes, and snippets.

View pedronihwl's full-sized avatar

Pedro Pereira pedronihwl

View GitHub Profile
@pedronihwl
pedronihwl / underwritter.md
Last active February 25, 2026 18:14
Underwritter MD
@pedronihwl
pedronihwl / .py
Created September 20, 2021 18:41
Trabalho 1,2,3 CN
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
@pedronihwl
pedronihwl / .c
Created April 7, 2021 04:12
Sequência de K-mers (UFU-EX)
#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);
@pedronihwl
pedronihwl / .java
Created March 25, 2021 20:13
Estimar valor de PI a partir de uma função que gera números aleatórios. Processing Java
PGraphics graphic;
int largura = 500;
int altura = 500;
int pontosTotais = 0;
int pontosCirculo = 0;
double pi=0;