Skip to content

Instantly share code, notes, and snippets.

@christian-candido
christian-candido / ponteiros.c
Created December 2, 2012 23:08
Exemplo do uso de ponteiros
#include <stdio.h>
int main (void) {
int i = 2;
int *p;
int teste[10];
p = &i;
@christian-candido
christian-candido / lista_primos.c
Created December 2, 2012 18:59
Programa para listar todos os números primos até o valor máximo informado pelo usuário
// Programa para listar todos os números primos
// até o valor máximo informado pelo usuário
//
#include <stdio.h>
#include <math.h>
// Protype da funcao de listagem
void lista_array (unsigned int [], unsigned int);
int main (void) {
@christian-candido
christian-candido / CSTR_serie.sce
Created October 22, 2012 15:33
Análise e Simulação de processos Químicos (ASPQ-2012)
// Exercício (Aula 2012-10-22)
//
// 4 Reatores CSTR em série com corrente de reciclo
// Reação: A -> B, r = kCa
//
// Calcula a concentração de A no interior de cada tanque
//
// @date 2012-10-22
// @author Christian Cândido <christianc.candido@gmail.com>
// @license GPL-v3 <http://www.gnu.org/licenses/gpl-3.0.txt>
@christian-candido
christian-candido / Ex1.c
Created March 18, 2012 20:00
Lista 1 - Cálculo Numérico
/*
* Cálculo do zero da função pelo método da bissecção
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of