Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ch2-mandelbrot renders whitespaces #29

Closed
ropewalker opened this issue Jul 22, 2021 · 3 comments
Closed

ch2-mandelbrot renders whitespaces #29

ropewalker opened this issue Jul 22, 2021 · 3 comments

Comments

@ropewalker
Copy link

let mandelbrot = calculate_mandelbrot(1000, 2.0, 1.0, -1.0,
1.0, 100, 24);

This should be calculate_mandelbrot(1000, -2.0, 1.0, -1.0, 1.0, 80, 24) as mentioned in https://www.reddit.com/r/rust/comments/o980ip/rust_in_action_is_released/h3aktuf

@ropewalker
Copy link
Author

FWIW the code in the book is correct.

@jakob-fischer
Copy link

My PDF (which I was told is the release version) has the same problem. So I'd assume this is a mistake that was introduced in the final edit.

@timClicks
Copy link
Contributor

So I'd assume this is a mistake that was introduced in the final edit.

You're correct. I made a stupid rushed edit and accidentally copy + pasted the wrong version. I will get a fix pushed to the repository now.

timClicks added a commit that referenced this issue Aug 8, 2021
The wrong part of the parameter space was specified in the book's examples. 
The commit adjusts the parameters to better match the escape time algorithm[1], 

[1] https://en.wikipedia.org/wiki/Plotting_algorithms_for_the_Mandelbrot_set
mdouglasbrett added a commit to mdouglasbrett/mandelbrot that referenced this issue Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants