Skip to content

Conversation

ForrestHilton
Copy link
Contributor

to re-produce the crash:
R.<z,c> = CC[]
f = z^2*(z-c) + c
mandelbrot_plot(expand(f),parameter=c)

📚 Description

Essential, the modified function has a fast case and a slow case. It tests which one it's working with in a way that will crash if it's the slow case.

The documentation strongly implies that this would work, so no documentation change.

📝 Checklist

  • I have created tests covering the changes.

@github-actions
Copy link

github-actions bot commented Jul 9, 2023

Documentation preview for this PR (built with commit 2f7edc0; changes) is ready! 🎉

@ForrestHilton ForrestHilton changed the title complex_dynamics, fix: mandelbrot_plot crashes for z^2*(z-c) + c complex_dynamics, fix: mandelbrot_plot throws exception for z^2*(z-c) + c Jul 20, 2023
@EnderWannabe
Copy link
Contributor

I think you can delete line 777 (there is no need to initialize the critical points, it will happen on line 859).

@EnderWannabe EnderWannabe self-requested a review July 27, 2023 20:54
Copy link
Contributor

@EnderWannabe EnderWannabe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@vbraun vbraun merged commit f85e7b8 into sagemath:develop Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants