Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Cool graph i made :D

Author
Message
Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 21st Nov 2009 08:35
I was bored in math class, so I started to do... math

anyways, i came up with this equation:



The solution for all real answers is relatively easy. You just multiply both sides by y^2 and x^2, factor out the y, then divide by the coefficient to get it into f(x)=y form.

However, it doesn't end at that! Afterwards, you can factor out the square root of negative one, and get f(x)=yi. Once you've done that, you might as well replace x with a constant times i, so that you get f(xi)=y. Once you factor out an i again, you get f(xi)=yi.

So, by this method, you can get every single real and imaginary solution for x. Where x and y are both real, where x is imaginary and y is real, where x is real and y is imaginary, and where x is imaginary and y is imaginary.

Why is this so cool? Here, allow me to show super duper awesome pictures.


I have checked my work a ton, and it does work out correctly for all solutions shown.

But those are just still images. I've attached the executable, and here's the DBPro source code for it. The line drawing is done using cloggy's dll (i used lines for plotting because it makes a smoother graph, and the built in line commands are slow), so you'll need that to run it.

Press space to change both a and b based on the mouse position, and press space and click at the same time to change a and c. Since a, b, and c are coefficients on the top, the graph is the same as a=1.2, c=1.6, b=1.5, when a=12, c=16, and b=15.




It's really just four different functions, each with plus or minus signs (so eight lines). The long if statements and seperate code for each line is necessary. When you graph something that rapidly goes to infinity using points, you get a broken "fuzzy" line. when you use lines to connect the dots, you get ugly straight vertical lines (i guess 1/0 graphs as 0).

Attachments

Login to view attachments
BearCDP
15
Years of Service
User Offline
Joined: 7th Sep 2009
Location: NYC
Posted: 21st Nov 2009 10:25
This looks pretty cool, I've been craving some math lately--not much time for it as a music student This will keep me entertained for a long time tomorrow.

demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 21st Nov 2009 15:03
Haha bear we're in exactly the opposite position here - maths student wishing he did music

But those are some nice pretty patterns man.

Quote: "I was bored in math class, so I started to do... math"

Maths in a maths class? I've never heard of such an outlandish thing

AndrewT
18
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 21st Nov 2009 15:30
Very nice! It's incredible what beauty can be created by a simple equation.

I've been working on a parametric curve plotter myself, and some of the results are fantastic, I hope you don't mind if I post a couple examples.

Butterfly Curve:






Lissajous Curve (looks a lot better animated):





i like orange
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 21st Nov 2009 15:49
Those are beautiful...

Profit
19
Years of Service
User Offline
Joined: 19th Feb 2006
Location: United States
Posted: 21st Nov 2009 18:31
AndrewT.
He a mathematician.


Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 21st Nov 2009 22:17
Quote: "AndrewT.
He a mathematician."


Eh? I'm in 10th grade algebra 2 right now. I couldn't skip ahead because there were a few things (which we learn at the end of the year) that i didn't know... So for this first semester, I'll have nothing to do but be bored in math class.

If you were talking about andrewT... I think he's in highschool...?

@ andrewT

Wow, those are really cool! What i think is really wierd about the butterfly curve is e^cos(t), and sine to the fifth power.

Hmmm, i think that all these cool graphs need anti-aliased lines. The full screen, not shrunk down images are too jagged.

AndrewT
18
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 21st Nov 2009 22:39
Neuro:

Profit likes to mock me, just ignore him

And yeah, the equations for the butterfly curve were definitely quite different from anything I'd seen before.

i like orange
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 22nd Nov 2009 11:42
@AndrewT

Those are awesome graphs! How do you set the colors?

TheComet


Make the paths of your enemies easier with WaypointPro!
AndrewT
18
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 22nd Nov 2009 15:52
Quote: "Those are awesome graphs! How do you set the colors?"


R = Abs(Sin(T * 6.0)) * 255.0
G = Abs(Cos(T * 4.0)) * 255.0
B = Abs(Sin(T * 3.4)) * 255.0

It's written in BlitzMax, btw.

i like orange
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Nov 2009 16:03
Alright, so which one of you guys will attempt a 3D mandelbrot?


> SELECT * FROM users WHERE clue > 0
> 0 rows returned
Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 23rd Nov 2009 10:38 Edited at: 23rd Nov 2009 10:38
Phaelax, that comment sent me on a LOT of googling. check this picture out:
http://lyc.deviantart.com/art/3d-mandelbrot-84305350
I've been trying to find what defines a 3d mandelbrot, and no one seems to know. All the speculation i can find on it, just talks about how the different methods for generating 3d mandelbrots don't look like they'd expect.

I'll look into it


...alot.


Maybe i'll try to figure out the one dimensional equivalent of the mandelbrot set.

Login to post a reply

Server time is: 2025-05-25 20:34:26
Your offset time is: 2025-05-25 20:34:26