Burning Ship implementation #260
Replies: 2 comments 1 reply
-
The best explanation I can give is that if one uses the Wiki version, the image ends up upside down. Try it by changing the sign in the par file. The kalles reference that I used to program Burning Ship is: The implementation in C++ code tries to reduce the number of multiplications for speed: 3 as opposed to 4 in the interpreted version. I suspect that the issue with the negative sign is the way Windows addresses pixels. Pixel 0 is the top of the screen as opposed to the bottom. I'm surprised this issue hasn't come up before with other fractals that don't have x-axis symmetry. |
Beta Was this translation helpful? Give feedback.
-
Since we identified the discrepancy, I'm going to close this discussion |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@PaulTheLionHeart I was adding the formula for the burning ship fractal to the documentation and I'm confused about how you've implemented it compared to the BurningShip formula you submitted in 1.0 and the "official" formula given in wikipedia. Let's compare the formulas for all three and maybe you can help me understand the implementation.
WikiPedia
WikiPedia has this formula:
Formula File
The formula file has this entry which is similar, except the imaginary component of$z_n$ is negated after taking the absolute value:
Source Code
The implementation in
burning_ship.cpp
has this code (comments added by me):This version is different again, because the imaginary component of$z_{n+1}$ has the imaginary component of $c$ subtracted instead of added.
Am I missing something subtle in your implementations? Why don't they correspond to the WikiPedia formula?
Beta Was this translation helpful? Give feedback.
All reactions