-
Notifications
You must be signed in to change notification settings - Fork 7
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
Unexpected and idiosyncratic failures to converge #1
Comments
a test case using my fork that works in julia 1.0 |
Thanks for working to convert this package to Julia 1.0. You'll find that you can get your example to work with Given that the Fortran code does not have this problem, I suspect that I'm using an unstable arithmetic operation somewhere (like subtracting two very close numbers). If I figure it out, I will follow up on this thread. |
My update for Julia 1.0 seemed to work- I just took the automatic updates suggested by Julia's upgrade-bot. I'm very new to Julia so my understanding of how Julia deals with modules/packaging is rudimentary. BigFloat does indeed work great. We'll see how the speed goes... I'm hoping to calculate the map to the circle to a high resolution so I can paint things onto the circle and color the snowflake with it. Depending on exactly how long that ends up taking, it could well be just fine, since once it's calculated for a given resolution I won't need to do it again. |
I ended up finding a test case. This triangle works:
And this one explodes:
They're exactly the same triangle, but with the vertices rotated around. |
Hi, |
I have been using this code to map the interior of the Koch snowflake. This is my most successful, but the algorithm seems to fail on very similar polygons.
If I make my snowflake slightly spikier, it just fails entirely:
And if I iterate the snowflake one more time, it pretty much always fails.
This is not, I believe, a fundamental problem with the Zipper algorithm, as I was able to render a higher iteration snowflake using the FORTRAN implementation that Marshall has provided. It's a lot harder to work with his implementation though, so I had hoped that I'd be able to use it in Julia instead.
I don't suppose you have any ideas what might be going wrong?
The text was updated successfully, but these errors were encountered: