Skip to content
Snippets Groups Projects
Commit 3c32fbad authored by chafiol's avatar chafiol
Browse files

bring

parent 9c708d97
Branches
No related merge requests found
383 886 777 915 793 .
383 886 777 915 793 .
......@@ -102,7 +102,6 @@ int main(int argc, char **argv){
size_t l = 0;
int fd = open(argv[2], O_RDWR | O_CREAT);
tab = generate_tab(t, &l);
dup2(fd, 1);
for(int i = 0; i<t; i++){
printf("%ld ", tab[i]);
......
No preview for this file type
list 0 → 100644
op = [10, 100, 1000, 10000, 100000, 1000000]
aps = 1000
for i in op:
print("--------------", i, "---------")
print("n : ", i/aps , "s")
print("ln(n) : ", log10(i)/aps , "s")
print("n.log(n) : ", (i*(log10(i)))/aps , "s")
print("nRacine(n) : ", sqrt(i)/aps , "s")
print("n² : ", (pow(i,2))/aps , "s")
print("n³ : ", (pow(i,3))/aps/3600/24 , "jours")
if(i < 10000):
print("2^n : ", (((((pow(2,i))/aps)/3600)/24)/365)/1000000000000000000 , "Quatrillion années")
if(i <1000):
print("fact(n) : ", (((((factorial(i)/aps)/3600)/24)/365)/1000000000000000000) , "Quatrillion années" )
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment