Logo by fractalwizz - Contribute your own Logo!
News: Support us via Flattr FLATTR Link
Welcome, Guest. Please login or register. May 04, 2016, 03:54:50 AM

Login with username, password and session length

Pages: [1]   Go Down
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: Generic Algebra (2D) Mandelbrots.  (Read 912 times)
0 Members and 1 Guest are viewing this topic.
Fractal Senior
Posts: 1737

« on: August 16, 2010, 05:06:10 PM »

If you are not familiar with matrix notation, don't worry, I expanded it out during the thread.

Previously, I evilly hijacked a thread  evil with my idea of doing Matrix-based Mandelbrot sets.

In the last two days, I finally started playing around with different matrix configurations to find the ones that reproduce behaviour of the complex, the split complex and the dual numbers. - Later I looked it up at Wikipedia and found that I was correct, which is somewhat satisfying already smiley

First, I'll show you the three kinds of matrices that do this and then I'll state the obvious and show a way, how to extend that to a generic algebra smiley

So here comes the complex matrix which behaves just like complex numbers: \begin{bmatrix}Re&-Im\\Im&Re\end{bmatrix}
Here is the Split complex one: \begin{bmatrix}Re&Im\\Im&Re\end{bmatrix}
And there you have the dual one: \begin{bmatrix}Re&0\\Im&Re\end{bmatrix}

Note, that in the upper right corner, the 2,1-position, you find the imaginary part multiplied by the square of the imaginary unit in either case.
So you could also write those as:
Complex: \begin{bmatrix}Re&i^2Im\\Im&Re\end{bmatrix}
Split complex: \begin{bmatrix}Re&j^2Im\\Im&Re\end{bmatrix}
Dual \begin{bmatrix}Re&\epsilon^2Im\\Im&Re\end{bmatrix}

So the obvious way to extend this is to do
\begin{bmatrix}Re&n^2Im\\Im&Re\end{bmatrix} - where n² is what ever value your additional dimension's unit should square to.

Adding two matrices together is done component-wise, so that's very straight forward.
To multiply them, you simply multiply the rows of one matrix with the collumns of the other and place the result into the corresponding position of the matrix. So in the general 2x2-case, that means:


For our general algebra matrix, that means:


Note, how for the ns i,j or epsilon, the real part of the multiplication would come out true.
Also note how the n²Im still is intact - the n can be taken out - and how also the Im in the lower left corner still is intact.

That means, any Mbrot, based on an algebra defined by that, has the form:
x->x^2+n^2y^2+c_x<br />y->2xy+c_y
Where c is the constant for each dimension, that's altered for the Mset and indeed constant for the Jset.
So, you just take the upper left and the lower left results and use those to define your iteration smiley

One of the nice properties of this class of matrices is, that all of them have a general inverse:
- which if you just look at the left part of the matrix and compare with the inverse of complex numbers, can easily be tested to turn out true smiley

*/ to be continued with even more general but maybe (maybe as not yet tried) less interesting extensions.
« Last Edit: August 16, 2010, 05:51:17 PM by kram1032 » Logged
Fractal Senior
Posts: 1737

« Reply #1 on: August 17, 2010, 07:21:52 PM »

Ok, the next thing I tried is exponentiation.
How would you define e[matrix]? - simple:
Matrix powers are defined and so are matrix additions. So what could be more natural than using the taylor series? smiley

Apparently, Wolfram Alpha can't really deal with the sum of the powers of a generic 2x2 matrix but it works perfectly fine for a matrix of the form, I showed up there.

exp^{\begin{bmatrix}Re&n^2Im\\Im&Re\end{bmatrix}}={\begin{bmatrix}exp^{Re}\cosh(n Im)&exp^{Re}n \sinh(n Im)\\ {{exp^{Re}\sinh(n Im)}\over{n}} &exp^{Re}\cosh(n Im)\end{bmatrix}

Note how the real diagonal still stood the same and how the other diagonal still is different by n². So it's still the same: The Real value is the top left part and the imaginary value is the bottom left part.

However, previously I defined n² being the value, that your additional dimension with the unit n squares to.
n in that formla now should be the "usual sqrt(n²)" and not your imaginary unit. - I hope. If you want to experiment with actual imaginary units in that place, what you need to do is probably define sinh and cosh for this. And/Or replace n by yet an other matrix, upgrading this rather simple 2x2 matrix to a 4x4 one.

So, for a generic 2D vector algebra, with the imaginary unit squaring to n, your exponation is defined by

Real part: exp^{Re}\cosh(n Im)
Imaginary part: {{exp^{Re}\sinh(n Im)}\over{n}}

With that, we have a definition of the unit circle, which isn't necessarily a circle smiley

If I can fit the logarithm into this picture, we actually have matrix powers of matrices. The main problem with that is, that ln has a lot of different power series which all only partially work for the whole field of complex numbers. So depending on the choice I make, there might be different versions of ln...
« Last Edit: August 17, 2010, 09:40:03 PM by kram1032 » Logged
Fractal Senior
Posts: 1737

« Reply #2 on: August 17, 2010, 08:09:35 PM »

Ok, here is the generic sine and cosine, as defined by the taylor series. Generic tan and ln will hopefully follow soon smiley

sin(\begin{bmatrix}Re&n^2Im\\Im&Re\end{bmatrix})=\begin{bmatrix}sin(Re)cos(n Im) & n cos(Re) sin(n Im)\\ {{cos(Re) sin(n Im)}\over{n}} &sin(Re)cos(n Im)\end{bmatrix}

cos(\begin{bmatrix}Re&n^2Im\\Im&Re\end{bmatrix})=\begin{bmatrix}cos(Re)cos(n Im) & -n sin(Re) sin(n Im)\\ -{{sin(Re) sin(n Im)}\over{n}} &cos(Re)cos(n Im)\end{bmatrix}
Fractal Senior
Posts: 1737

« Reply #3 on: August 17, 2010, 09:31:02 PM »

Ok, ln is a bit complicated. if abs(x-1)<1, you get the first Definition. If abs(x-1)>1, you get the second definition, which involves the first definition.

So, here you go:
The first definition:
ln( \begin{bmatrix}Re&n^2Im\\Im&Re\end{bmatrix})=\begin{bmatrix}{1\over2}(ln(Re-n Im)+ln(Re+n Im)& {n\over2}(ln(Re+n Im)-ln(Re-n Im)) \\ -{ln(Re-n Im)-ln(Re+n Im)\over2n} &{1\over2}(ln(Re-n Im)+ln(Re+n Im) \end{bmatrix}, if |Re-1+nIm|<1

And the second one:
ln( \begin{bmatrix}Re&n^2Im\\Im&Re\end{bmatrix})=ln(\begin{bmatrix}Re-1&n^2Im\\Im&Re-1\end{bmatrix})-\begin{bmatrix}-{1\over2}(ln(1+{1\over Re-1-n Im})+ln(1+{1\over Re-1+n Im})& {n\over2}(ln(1+{1\over Re-1-n Im})-ln(1+{1\over Re-1+n Im})) \\ {ln(1+{1\over Re-1-n Im})-ln(1+{1\over Re-1+n Im})\over2n} & -{1\over2}(ln(1+{1\over Re-1-n Im})+ln(1+{1\over Re-1+n Im}) \end{bmatrix}, if |Re-1+nIm|>1
« Last Edit: August 17, 2010, 09:38:12 PM by kram1032 » Logged
Fractal Senior
Posts: 1737

« Reply #4 on: August 17, 2010, 10:07:04 PM »

some experiments you could do, involve making the unit dependend on the real or imaginary part or on both...

This works by replacing:

nČIm -> +/- Imł - the imaginary unit is directly dependend on the current imaginary value

nČIm -> +/- ReČIm - the imaginary unit is directly dependend on the current real value

And now the craziest part:

nČIm -> (ReČ+nČImČ)Im - which is equivalent to nČ->ReČ+nČImČ
- Suddenly the imaginary unit itself becomes an iterated function.
I wonder if that converges in the limit... - if it does, the result might be very interesting. It would be the fractional imaginary unit smiley

The first two are easy to solve and can be written in component form as:

dependend on imaginary:

dependend on real:

Note, however, that this is only properly defined in case of pure powers (or, luckily, power series) - if you do a "simple" multiplication, you end up with two different possible real values.
So in that case, you need to iterate through both real values, which leads to 3 instead of 2 equations. And then, when you draw them, you need to descide, what to do.
Possibilities include:
-Ommit one real part
-Take one of the several possible averages
-Take their vector length ((r12+r22)1/2)
- Go 3D and basically have 2 different real parts. - maybe an actual new candidate for a "true" 3D Mset smiley

that also leads to a possible 3D or 4D Mset of the general 2x2-Matrix space.

However, the solution in that case wouldn't be 2 or 3 imaginary and 1 real parts but rather 1 or 2 imaginary and 2 real parts!
Fractal Senior
Posts: 1737

« Reply #5 on: August 17, 2010, 11:43:03 PM »

Here is an experiment with that smiley

It's a buddhabrot which randomly samples through any algebra which's additional dimension square to anything between -1 and 1. So, it includes the complex, split complex and dual numbers but also anything in between smiley

Download here to see the full resolution: http://kram1032.deviantart.com/#/d2wmwag
Fractal Senior
Posts: 1737

« Reply #6 on: August 21, 2010, 10:02:23 PM »

Here is an experiment with the imaginary unit being dependend on the current imaginary part:
Pages: [1]   Go Down
Jump to:  

Related Topics
Subject Started by Replies Views Last post
simple algebra to the 3d mandelbrot Theory « 1 2 » kujonai 23 4564 Last post January 08, 2013, 12:29:42 PM
by jehovajah
A generic name for buddhabrot-like fractal ? General Discussion ker2x 3 1082 Last post January 02, 2010, 06:24:55 PM
by Melancholyman
Generic escape-time fractals Programming David Makin 3 1699 Last post September 26, 2011, 12:40:02 AM
by David Makin
quasi fuchsian group in the quaternion algebra Mandelbulb3D Gallery ericr 0 131 Last post December 20, 2012, 09:52:07 AM
by ericr
Clifford Algebra - Generalisation of 2d/3d Formulas (new) Theories & Research « 1 2 » cKleinhuis 24 481 Last post August 18, 2014, 10:59:39 AM
by Roquen

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.377 seconds with 27 queries. (Pretty URLs adds 0.011s, 2q)