Skip to content

Commit

Permalink
Improve some code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Sep 14, 2024
1 parent b8285b0 commit 01b4bf0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mandelbrot/mandelbrot_generator_perturbative.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,16 @@
// The core functionality of the original formula is:
// z_{k+1} = z_{k}^2 + C

// -> delta transformation z_{k+1} -> z_{k+1} + e_{k+1}; z_{k} -> z_{k} + e_{k}; C -> c + d;
// -> delta transformation:
// z_{k+1} -> z_{k+1} + e_{k+1}; z_{k} -> z_{k} + e_{k},
// with C -> c + d;

// Inser this into to the above-mentioned equation(s)
// Insert this into to the above-mentioned equation(s).
// The result is:
// z_{k+1} + e_{k+1} = z_{k}^2 + c + e_{k}^2 + 2*z_{k}*e_{k} + d

// This replaces the original formula, resulting in:
// e_{k+1} = e_{k}^2 + 2*z_{k}*e_{k} + d
// e_{k+1} = e_{k}^2 + 2*z_{k}*e_{k} + d,
// where z_{k} is the pre-calculated value.

ei *= (er + zkr_temp);
Expand Down

0 comments on commit 01b4bf0

Please sign in to comment.