projects
/
parallel_computing.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Explain that you may have to kill ./plot_image.py's interactive plot.
[parallel_computing.git]
/
src
/
mandelbrot
/
gen_data.c
1
#include <stdio.h>
2
#include <math.h>
3
4
#define N_POINTS 200
5
6
main()
7
{
8
int i, j;
9
double x, y, dx, dy;
10
11
dx = 2*M_PI/N_POINTS;
12
dy = 2*M_PI/N_POINTS;
13
for (j = 0; j < N_POINTS; j++)
14
for (i = 0; i < N_POINTS; i++) {
15
x = i*dx;
16
y = j*dy;
17
printf("%f \n", 5.0*(1 + sin(x)*cos(y)));
18
}
19
}
20