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 | |
import string | |
big_number = """ | |
37107287533902102798797998220837590246510135740250 | |
46376937677490009712648124896970078050417018260538 | |
74324986199524741059474233309513058123726617309629 | |
91942213363574161572522430563301811072406154908250 | |
23067588207539346171171980310421047513778063246676 |
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 octave | |
% funcion de activacion -> sigmoidal | |
function answer = sigmoidal(a, v) | |
answer = 1 / (1 + exp(-a*v)) | |
return | |
endfunction | |
x = linspace(-5,5,10000); |
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 <stdlib.h> | |
#include <limits.h> | |
#define SECONDS_IN_A_YEAR 31557600LL | |
void wait(long long int seconds){ | |
while (seconds > 0){ | |
int s = seconds > INT_MAX ? INT_MAX : seconds; | |
sleep(s); | |
seconds -= s; |