Share your repls and programming experiences

← Back to all posts
Show Your Math Teacher!
h
Coder100 (11140)

Mandelbrot Set

I am so excited to post this!!!! After hours of hard work I have created a working Mandelbrot set explorer so you can zoom in and out and view this awesome fractal!! I made this because of yesterday's google doodle. Special thanks to @minx28 for helping with some zooming issues. Also thanks to wikipedia and various videos on youtube for helping me understand it lol

How to use

Included in the repl, but just click to go to a position, and from there you can scroll up to zoom in, and scroll down to zoom out. It calculates things quite fast! It also includes colors for EPIC screenshots.

Legend

Black dots are in the set. Colored dots are those that diverged (went to infinity), and the color represents how many iterations took.

Closing

Show this to your math teacher! I'm sure they will be proud of ya :)
I'm going to do Julia sets later :D

Commentshotnewtop
tankerguy1917 (84)

man this is so cool.
funny thing is is that i watched a V-sauce episode about the mandelbrot set a few days ago

Boss68 (6)

My math project in 8th grade was about this. It's really so cool. Just plotting a bunch of numbers in the complex plane can give you such intricate details and colorful patterns. And if you were to change the parameters of the equation just slightly, it looks completely different. I love it so much.

CatR3kd (365)

jeez that render time tho lol

Coder100 (11140)

yeah it does take some time @CatR3kd

Muhammad_SJC (85)

WHAT... IS... THIS?!

Muhammad_SJC (85)

I have never seen someone integrate maths into coding like that

Coder100 (11140)

yeah, coding is deeply mathematical in nature, computers were made to be calculators after all @CatR3kd

DanielGreynold1 (2)

@CatR3kd its more logic than math but ok

CatR3kd (365)

yes but code is litteraly math translated into a readble language @DanielGreynold1

NoahJospeh (16)

Cool! A bit laggy, but ccol!

Coder100 (11140)

:D Thanks!
Yeah, it is a bit laggy because of the calculations it has to do @NoahJospeh

NoahJospeh (16)

@Coder100 its as laggy as my one friend who was a girl, who got that way every time she saw me

KobeFF (659)

Wow... Glitchy but wow...

KobeFF (659)

@Coder100 How long did it take to make?

SwaroopBappanad (48)

Wow. Just....Just wow.

xxpertHacker (555)

I wanted to do this months ago when I had the math ready and was playing with multi-threading... but then I didn't.

Now, I wanna do it again... but I won't.
Dang, I'm lazy.

Nice job.

Coder100 (11140)

lol well ping me when you're done

thanks! :) @xxpertHacker

RolandJLevy (649)

Hey @Coder100, nice job! I really love this. Where is the maths equation that creates the mandlebrot?

Bookie0 (4607)

looks my ma math teacher butt heheh 3

GABELACANLALE (16)

@Bookie0 oh wait I see it now that I turn my computer sideways.

DanielGreynold1 (2)

mandelbrot set do be lookin dummy thicc tho @Bookie0

Bookie0 (4607)

nice, you should include a little tutorial on it! ;)

minx28 (459)

Very cool! Have an updoot! I'm making my own mandelbrot set program (not copying yours, it works completely differently) and it'll hopefully release later today

jort57 (14)

yo this is awesome!!! cool math like this doesnt get enough attention

Coder100 (11140)

:D Thanks!
Yeah, math does get overlooked because of their complexity @jort57

minx28 (459)

@Coder100 @jort57 smh my head, a mandelbrot set is actually surprisingly simple

Coder100 (11140)

well yeah, implementing it is, but actually understanding it requires at least some knowledge of imaginary numbers @minx28

minx28 (459)

@Coder100 not necessarily. You could simply define the square of (a+bi) as a^2 - b^2 + 2abi

programmeruser (148)

I was going to post something like this but I got lost in the math....

RayhanADev (1002)

@Coder100 lel, what math do you even take?

RayhanADev (1002)

@Coder100 da heck!?! Why are you so much smarter than me, yet you’re younger xP?? Good for you Coder lol

TheForArkLD (734)

u must draw it in real life

TheForArkLD (734)

@Coder100 mandelbrot set is fractal, soooooo u need to draw it forever for ends drawing mandelbrot set lmao

fuzzyastrocat (1297)

Cool! (And definitely please do julia sets!)

This reminds me of my fractal curve explorer, I should post that here...