This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# =============================================================================================================== # | |
# Importar librerías | |
import numpy as np | |
from basic_units import radians, degrees | |
import matplotlib.pyplot as plt |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Numero tope para la búsqueda de numeros primos | |
num_data = 200 | |
# Llenado de la matriz con valores de 1 | |
matriz_data = [] | |
for i in range(num_data): | |
matriz_data.append(1) |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# =============================================================================================================== # | |
# Importar liberías necesarias | |
import os | |
import platform | |
import subprocess | |
import webbrowser |
This file contains 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 <math.h> | |
// Definicion de la funcion de la funcion matematica a evaluar | |
double funcion(float x) | |
{ | |
return (x * x) * exp(-x * x); | |
} | |
int main() |
This file contains 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> | |
int main() | |
{ | |
/* ---------------------------------- */ | |
int i; | |
int grado_prim_poli, grado_segun_poli, max_grad; | |
float aux_var; | |
/* ---------------------------------- */ |
This file contains 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> | |
// Numero tope para la búsqueda de numeros primos | |
#define num_data 200 | |
// Prototipos de las funciones | |
void criba_erastotenes(int input_matrix[]); | |
void print_results(int input_matrix[]); |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
list = [23, 17, 5, 90, 12, 44, 38, 84, 77, 1] | |
n = len(list) | |
for i in range(n - 1): | |
for j in range(n - 1): | |
if list[j] < list[j+1]: |
This file contains 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> | |
int main() | |
{ | |
int i, j, temp, n; | |
int list[10] = {23, 17, 5, 90, 12, 44, 38, 84, 77, 1}; | |
n = sizeof(list)/sizeof(int); | |
for (i = 0; i < n - 1; i++) |
This file contains 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> | |
int main() | |
{ | |
/* ---------------------------------- */ | |
int i, j, k; | |
int n_colrow; | |
/* ---------------------------------- */ | |
printf("Programa para calcular la determinante de una matriz por reduccion de Gauss \n \n"); |
This file contains 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> | |
int main() | |
{ | |
/* ---------------------------------- */ | |
int i, j; | |
int n_colrow; | |
/* ---------------------------------- */ |