All pastes #923019 Raw Edit

Stuff

public text v1 · immutable
#923019 ·published 2008-02-29 04:50 UTC
rendered paste body
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>

int main(){
        //int random_integer;
        unsigned int i;
        //time_t t;
        const unsigned int maxloop = 8000000;
        unsigned int array[maxloop];

        //t = time(0);
/*
        if(t==-1){
                printf("Can't get the time\n");
                return 0;
        }
*/
        srand(23498051);
        for(i=0;i<maxloop;++i){
                array[i] = rand();
        }

        for(i=0;i<maxloop;++i){
                printf("cosf(%f) = %f\n",(float)array[i],cosf((float)array[i]));
        }

        return 0;
}