Logo by yv3 - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Check out the originating "3d Mandelbulb" thread here
 
*
Welcome, Guest. Please login or register. April 23, 2024, 08:05:03 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Pythagorean Quadruples  (Read 3740 times)
0 Members and 1 Guest are viewing this topic.
BradC
Safarist
******
Posts: 85



« on: December 15, 2009, 09:06:29 AM »

Here's a plot of a bunch of points (x,y,z) (normalized) which are integer solutions to the equation x^2+y^2+z^2=d^2. I plotted all solutions for 0<d\leq 384.

http://www.fractalforums.com/gallery/?sa=view;id=1187

Does anyone know why the resulting pattern has a flavor so similar to an Apollonian sphere packing? Is there a connection?
Logged
Tglad
Fractal Molossus
**
Posts: 703


WWW
« Reply #1 on: December 15, 2009, 12:50:58 PM »

I can't comment on it technically, but my gut reaction is that's a pretty amazing thing, I wouldn't have expected that result.
Do the circles get smaller as d range increases? or just get higher resolution?
Looks like your sphere has 6 main vertices in a cube, then 24 after that, in a truncated cube.

Does the pattern only show up when you normalise the x,y,z? or do the actual x,y,z form a pattern? like spheres?
« Last Edit: December 15, 2009, 01:22:09 PM by Tglad, Reason: being more clear » Logged
kram1032
Fractal Senior
******
Posts: 1863


« Reply #2 on: December 15, 2009, 02:34:46 PM »

my guess is because a sphere is made of circles. So it's not surprising that integer solutions give you a sphere of circles.
Also the hexahedric pattern isn't that surprising either as the pattern had to be symmetric over the euclidean axes....
Such patterns amaze me but they do not surprise me.
A way odder result would have been less likely to me...
Logged
Tglad
Fractal Molossus
**
Posts: 703


WWW
« Reply #3 on: December 16, 2009, 12:30:09 AM »

Am I correct in saying that you find every integer solution x^2 + y^2 + z^2 = d^2 and normalise the vector then colour that point blue on the unit sphere?
It certainly leads to interesting questions...

Why the little dot in each circle?
Why the black outline of each circle?
Would there be a visual pattern if the points were coloured by the value of d?
What effect with x^3 etc?
Does it work with fractional exponent? x^2.3 + ...
What happens to the pattern if you normalise each point to (a,b,c) instead of (0,0,0)?
Logged
BradC
Safarist
******
Posts: 85



« Reply #4 on: December 16, 2009, 03:26:21 AM »

Do the circles get smaller as d range increases? or just get higher resolution?
More and more points fill in, so the circles appear to get smaller, and there are also more of them. See the new image below.

Does the pattern only show up when you normalise the x,y,z? or do the actual x,y,z form a pattern? like spheres?
The raw (x,y,z) probably form some kind of nice pattern, but I'm not sure how to plot that in a way that would be clear. I think it would be a 3D version of this 2D picture http://en.wikipedia.org/wiki/File:Pythagorean_triple_scatterplot2.png. Imagine all those points normalized onto the unit circle, and that's analogous to what I did.

Am I correct in saying that you find every integer solution x^2 + y^2 + z^2 = d^2 and normalise the vector then colour that point blue on the unit sphere?
Yeah, that's right, except I actually colored them black above, not blue. So because the magnitude of (x,y,z) is d, the points that actually get plotted are (x/d,y/d,z/d). First I just drew a blank shaded sphere for background, then I plotted all the points over it.

Why the little dot in each circle?
The little dots in each circle are solutions to the equation that don't have other solution points nearby. This tends to happen for solutions where d is small. These "isolated" points also tend to get plotted multiple times. For example, consider the solution x=1, y=2, z=2, d=3. This is a solution because 1^2+2^2+2^2=3^2. This gets plotted as a point at (1/3, 2/3, 2/3), which is a unit vector. Then the following would also be solutions:
2^2+4^2+4^2=6^2
3^2+6^2+6^2=9^2
4^2+8^2+8^2=12^2
etc., and all these solutions would get plotted as a point at (1/3, 2/3, 2/3). For some reason, other solutions tend to avoid the area around points with smaller denominators. You can see this effect in the 2D-version Wikipedia image I linked above too. The rays emanating from the origin tend to have extra white space around them.

Why the black outline of each circle?
The black outlines are where lots of solution points cluster together enough to look black.

Would there be a visual pattern if the points were coloured by the value of d?
What effect with x^3 etc?
Does it work with fractional exponent? x^2.3 + ...
What happens to the pattern if you normalise each point to (a,b,c) instead of (0,0,0)?
I haven't looked into any of these. I'm not sure if I understand the last question.

Here's a new picture, this time it's all solutions for -6144 <= x,y,z <= 6144. Lots more points are filling in the gaps, so it ends up looking kinda boring Sceptical
http://www.fractalforums.com/gallery/?sa=view;id=1189
The thin crosshair-like lines on the x and y axes are there because I accidentally used a rounding function that has a glitch at zero. Those lines shouldn't be there.
« Last Edit: December 16, 2009, 03:40:14 AM by BradC » Logged
kram1032
Fractal Senior
******
Posts: 1863


« Reply #5 on: December 16, 2009, 04:54:48 PM »

well, here a density-like colouring might give nicer results.

simplest case would be to colour never-hit points black and multiple times hit points more and more white, with the maximum number of hits being white wink

Also I guess what he meant with x³ is the 3-norm

(x^3+y^3+z^3)^{1 \over 3 }

and the 2.3-norm

the n-norm is

(x^n+y^n+z^n)^{1 \over n }

wink
Logged
BradC
Safarist
******
Posts: 85



« Reply #6 on: December 16, 2009, 08:03:11 PM »

well, here a density-like colouring might give nicer results.

simplest case would be to colour never-hit points black and multiple times hit points more and more white, with the maximum number of hits being white wink
That's actually how I colored it. It's implemented as a big histogram, and as the number of points in a bin (pixel) increases, the coloring goes along a coloring gradient from black -> blue -> cyan -> white. Most of the points hadn't gotten past blue yet.
Logged
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #7 on: December 16, 2009, 08:14:03 PM »

well, here a density-like colouring might give nicer results.

simplest case would be to colour never-hit points black and multiple times hit points more and more white, with the maximum number of hits being white wink
That's actually how I colored it. It's implemented as a big histogram, and as the number of points in a bin (pixel) increases, the coloring goes along a coloring gradient from black -> blue -> cyan -> white. Most of the points hadn't gotten past blue yet.

If IFS is any guide then using log(#hits) may work better ?
Logged

The meaning and purpose of life is to give life purpose and meaning.

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
kram1032
Fractal Senior
******
Posts: 1863


« Reply #8 on: December 16, 2009, 08:19:14 PM »

probably, yeah.

the hit-rate most likely is exponential-ish... smiley
Logged
Tglad
Fractal Molossus
**
Posts: 703


WWW
« Reply #9 on: December 16, 2009, 11:41:03 PM »

Fascinating.
Of course, the reducing circle size is exactly what you'd expect on the surface of a sphere with Apollonian sphere packing as you up the resolution.
The size of the internal sphere represented by a circle could be inferred by the size of the surrounding small circles... but my guess is that these spheres are exactly the size needed to pack the unit sphere.
By the x^3 case, I meant, does the same thing happen if you plot all x^3 + y^3 + z^3 = d^3 solutions (normalised onto sphere).
>> What happens to the pattern if you normalise each point to (a,b,c) instead of (0,0,0)?
I meant, for every solution x,y,z, you plot the point (x-a, y-b, z-c)/magnitude(x-a, y-b, z-c) for some vector a,b,c. However, I think that the answer to this must be that the pattern doesn't change much.

I bet there's a way to render this as an actual sphere packing... probably something to do with plotting each solution divided by the greatest common divisor of x,y,z and d.
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Pythagorean Fractal Skull Images Showcase (Rate My Fractal) tit_toinou 0 1904 Last post April 29, 2012, 08:37:20 PM
by tit_toinou
Pythagorean forest Animation LhoghoNurbs 0 962 Last post May 23, 2012, 09:22:33 PM
by LhoghoNurbs
Pythagorean Nightmare Fractal Science Kit Gallery Ross Hilbert 4 569 Last post July 16, 2012, 09:03:25 PM
by Ross Hilbert

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.165 seconds with 24 queries. (Pretty URLs adds 0.007s, 2q)