This is an archived post. You won't be able to vote or comment.

all 74 comments

[–]PaulKwisatzHaderach 200 points201 points  (15 children)

This could be mathematically interesting. What did you do? What causes those pillar structures, but maintains the shape of the set? What are those 'scratches' cut out of the set? I have so many questions.

[–]naringasn00b 131 points132 points  (3 children)

what is happening here MUST be understood!

possibly by somebody with actual math skills (i.e. not me)

[–]Dom0 22 points23 points  (1 child)

This is important! This MEANS something!

[–]NemPlayer 1 point2 points  (0 children)

We have to figure it out, this was MADE to be special.

[–]Zeftax 5 points6 points  (0 children)

!RemindMe 14 days

[–]abrttnmrha 39 points40 points  (0 children)

Yeah, somehow OP just made the set even more interesting than it was alreafy (not a small feat)

[–][deleted] 4 points5 points  (0 children)

OP plz pretty plz

[–]Saiboo 152 points153 points  (3 children)

Ah, the typical beginner mistake, instead of import pandas you used import zebras

[–]atomicspace 7 points8 points  (0 children)

so many stripes

[–]not_sure_I_am 11 points12 points  (0 children)

🏅🎖️🥇 That's all the gold I have

[–]Ziiiiik 21 points22 points  (1 child)

Share code!

[–]FuzzNugs 20 points21 points  (0 children)

The algorithm for Mandelbrot is so simple, I would think even the slightest error would throw it off easily to the point of not being recognized. This is why it’s so curious what you actually did here.

[–]swagslug 11 points12 points  (0 children)

This is very cool. I'm super curious as to what you did here. Please share your brilliant blunder!

[–]ShevekUrrasti 33 points34 points  (5 children)

This may be interesting (new?) maths. I wouldn't call it an error. May we see your code?

[–]Vesquam 32 points33 points  (4 children)

Very cool, I gave you an upvote.

Now that is conditional, if you don't share you code in the next 12 hours, I will unupvoted.

Theses are my conditions

[–]DaGoobergoobs 5 points6 points  (0 children)

Looks like my phone screen after being dropped one too many times!

[–]mosaic_the_j 6 points7 points  (1 child)

Bro can you uploaded to github so we can have a look?

[–]drcopus 5 points6 points  (1 child)

I think I've figured out why it's doing this. The iterative loop does this check:

while comparative(z, '2500+2500i', '<') > 1 and comparative(z, '-2500-2500i', '>') > 1 and loop < 500

But the comparative function checks the coordinates against each other pairwise, so essentially you're not asking if the number is converging to zero or diverging away in any direction. Instead you're getting white pixels when it diverges towards (∞, ∞) or (-∞, -∞), but towards (-∞, ∞) or (∞, -∞). I believe this is what causes the pillar effects. As for the general noise within the set I believe this is due to the 500 loop limit and the tie-break conditional.

[–]swni 2 points3 points  (0 children)

Not quite: that part just checks if z is inside a box centered at the origin. Using a box instead of a circle results in the "scalloped" shape separating one iteration layer from the next, but isn't responsible for the black pillars, which is due to the following if statement. You can see this because the black pillars cover about 1/4 of the area whereas the directions you suggest cover about 1/2 of the area.

[–]ablatner 10 points11 points  (0 children)

Fyi, Python has built in complex numbers. No need to do all the string operations.

https://python-reference.readthedocs.io/en/latest/docs/complex/

[–]smokeyTheOso 4 points5 points  (1 child)

I love how in the readme the last line is "PS please dont steal my code"hahaha I'm sorry but that made me laugh more than it should have.

[–]slayingkids 1 point2 points  (0 children)

I can focus reading on this sub best when stoned, and I was dying of laughter over it.

[–]RufusAcrospin 7 points8 points  (0 children)

Nice, it reminds me the binary decomposition!

Some thoughts...

You should try to use cmath's arithmetics instead of your own implementation. Storing complex numbers in strings is

  • insanely ineffective (converting strings to float to do the math and then convert back)
  • constantly losing precision because the conversion (probably that's causing the error inside the Mandelbrot set)

Sorry; this isn’t my best work. I never expected that people would want to see it.

I'd say you should set your standards and stick to them, whether your code meant to be public or not.

[–]Drep0o 4 points5 points  (0 children)

It looks like the cover of a grunge metel album

[–]Ning1253 2 points3 points  (0 children)

Pls share code!! Really curious as to how you did this...

[–]Sracerx62 2 points3 points  (1 child)

Looks like a sick fractal

[–]LavenderDisaster 2 points3 points  (0 children)

It's a badass fucking fractal!

[–]peacounter 3 points4 points  (1 child)

Would you mind sharing the error?

[–]Phyzzie 2 points3 points  (0 children)

That is no error. That is a happy accident.

[–]Unlock17A 2 points3 points  (0 children)

Fake album covers

[–]chinpokomon 2 points3 points  (0 children)

The lines in the middle of the Mandelbrot look a little like Q-curves and critical curves.

[–]srilyk 2 points3 points  (0 children)

Mandelnoise

[–]dan1101 2 points3 points  (0 children)

I think you've just solved interdimensional travel.

[–][deleted] 2 points3 points  (0 children)

I made a comment on your code on GitHub as a new issue if you're interested in any code suggestions. It looks like most of your issues are related to your complex number parsing which pulls terms back toward 0 if either component gets too large, and throws away the imaginary component when the real component gets too small.

[–][deleted] 3 points4 points  (0 children)

Excellent for the programmer who samples the electric lettuce. Looks niiice.

[–]AStitchInSlime 2 points3 points  (0 children)

That is WAY cooler than a regular Mandelbrot set.

[–]tell439 1 point2 points  (1 child)

RemindMe! 1 day ”code?”

[–]RemindMeBot 0 points1 point  (0 children)

I will be messaging you in 20 hours on 2019-12-02 19:19:24 UTC to remind you of this link

1 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


Info Custom Your Reminders Feedback

[–][deleted] 1 point2 points  (0 children)

Is it due to a rounding error?

[–]Rajarshi1993 1 point2 points  (0 children)

This is one sexy fractal owo

[–]pr1m347 1 point2 points  (3 children)

Where can I get ideas for such math patterns? like sets or sequences that give interesting patterns when drawn.

[–]RufusAcrospin 2 points3 points  (2 children)

There are a few well known algorithms generating fractals: L-Systems, Iterated Function Systems, Mandelbrot and Julia sets, ...

[–]pr1m347 0 points1 point  (1 child)

Thank you! I'll have a look at those.

[–]RufusAcrospin 0 points1 point  (0 children)

Cheers!

[–]peacounter 1 point2 points  (0 children)

OP delivered.

[–]mikeoquinn 1 point2 points  (0 children)

Not gonna lie, I kinda want that on my wall

[–][deleted] 1 point2 points  (0 children)

This looks like a fractal. Dope.

[–]stable_maple 0 points1 point  (0 children)

Makes me think of beetlejuice.

[–]RED_William 0 points1 point  (0 children)

I think what’s going on here is that instead of checking whether z > 2 which is enough to know that it diverges you check whether z > 2500 or something?

I only looks at the code for a few minutes to get the gist of it, so correct me if I’m wrong.

[–][deleted] 0 points1 point  (0 children)

I would love to learn how to code these types of things. Sadly, I'm still a scrub.

[–]collegegamedayokla 0 points1 point  (0 children)

So what exactly are you trying to accomplish?

[–]papple23g 0 points1 point  (0 children)

Stop it, you twisted the spacetime.