Skip to content
Snippets Groups Projects
Verified Commit 24f1ec05 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

micro update

parent d53c5b54
Branches
Tags
No related merge requests found
......@@ -26,9 +26,10 @@ int main() {
double x = 0.5;
for (int i = 0; i < max_iter; ++i) {
double lambda = lambda_min + i_lambda * dl;
x = map(x, lambda);
double x_new = map(x, lambda);
x = x_new;
if (i > max_iter - M) {
gfx_putpixel(ctxt, i_lambda, x * M, COLOR_WHITE);
gfx_putpixel(ctxt, i_lambda, M - x * M - 1, COLOR_WHITE);
// printf("x(%d, %g) = %g\n", i, i_lambda * dl, x);
// usleep((unsigned int)1000);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment