#include <cstdio>
#include <math.h>
static const int ITERATIONS = 100;
static const float PRECISION = 1.0f/ITERATIONS;
int main(int argc, char *argv[])
{
    try {
        
        af::Window myWindow(512, 512, 
"2D Plot example: ArrayFire");
 
            X = X + PRECISION * float(sign);
            val += PRECISION * float(sign);
                sign = -1;
                sign = 1;
            }
        }
        fprintf(stderr, 
"%s\n", e.
what());
        throw;
    }
    #ifdef WIN32 // pause in Windows
    if (!(argc == 2 && argv[1][0] == '-')) {
        printf("hit [enter]...");
        fflush(stdout);
        getchar();
    }
    #endif
    return 0;
}