Math/SqrtTimeDouble.c File Reference

Task to create double floating point number for sqrt. Execute for a fixed number of iterations the square root of a double. More...

#include <stdlib.h>
#include <math.h>
#include "problem.h"

Functions

void prepareInput (int inputSize)
 Select a random number in the range 1.
int execute ()
 Execute by invoking malloc(numElements) a total of numT times.
void postInputProcessing ()
 No postprocessing needed.
void problemUsage ()
 No specific problem usage.

Variables

static double m
 Randomly selected number.
static int psize
 Number of times to compute square root.


Detailed Description

Task to create double floating point number for sqrt. Execute for a fixed number of iterations the square root of a double.

Author:
George Heineman
Date:
6/15/08

Function Documentation

int execute (  ) 

Execute by invoking malloc(numElements) a total of numT times.

.numElements

output sum to be sure is correct.

void postInputProcessing (  ) 

No postprocessing needed.

void prepareInput ( int  inputSize  ) 

Select a random number in the range 1.

.2^32

void problemUsage (  ) 

No specific problem usage.


Variable Documentation

double m [static]

Randomly selected number.

int psize [static]

Number of times to compute square root.

Algorithm Development Kit 1.0