Logo by mauxuam - 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: Visit the official fractalforums.com Youtube Channel
 
*
Welcome, Guest. Please login or register. April 19, 2024, 02:26:01 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: Triplex Newton's Method  (Read 835 times)
0 Members and 1 Guest are viewing this topic.
Schlega
Navigator
*****
Posts: 63


« on: August 28, 2010, 11:52:06 PM »

I decided to try looking at the triplex version of this.

I used:
 f_c(z)=z^3+cz-z-c (I don't think triplex multiplication is distributive)
 f'_c(z)=3*z^2 + c - (1,0,0) (If it's possible to define a triplex derivative, this is what the result should be)
 \frac{f_c}{f'_c}=\exp(\ln(f_c)-\ln(f'_c)).

It seemed to be getting some interesting results, but unfortunately ChaosPro crashed and lost my formula file. I'll add pictures after I have a chance to rewrite it.
« Last Edit: August 30, 2010, 08:59:47 AM by Schlega » Logged
kram1032
Fractal Senior
******
Posts: 1863


« Reply #1 on: August 29, 2010, 03:02:04 PM »

What did you want to try to do from that website?
That first image? Because that doesn't look like most Newtons I've seen.... rather like one of the hyperbolic reflection ones. It looks like the directness of the link is lost and you actually wanted to link to a specific part of that page, right?

Either way, I'm already curious to see results smiley

I guess, if you do exp(ln()-ln()), that's not the same as a*(b^-1) which would probably be closer to division...
Logged
Schlega
Navigator
*****
Posts: 63


« Reply #2 on: August 30, 2010, 09:03:37 AM »

Thanks kram. The link should be fixed. I'm working on rewriting the code now, so the results should be up in an hour or two.

Edit: I can't seem to get the results I had the first time I tried it. I have no idea if I had a mistake last time or if I just happened to stumble into an interesting camera position. I'll post my formula file here in case someone else wants to try it, but I can't find any pictures that are worth posting at the moment.

Code:
TriplexNewton(QUATERNION){
parameter real Error;

quaternion z0,C,z3,cz,logc,logc1,glub,bluh,f,df;
real x1,y1,z1,r,cosz,a,b,c;

quaternion expt(quaternion q)
{
x1 = part_r(q);
y1 = part_i(q);
z1 = part_j(q);

r = exp(x1);
cosz = cos(z1);
a = cos(y1)*cosz;
b = sin(y1)*cosz;
c = sin(z1);

q = quaternion(a,b,c,0)*r;
return q;
}

quaternion lnt(quaternion q)
{
x1 = part_r(q);
y1 = part_i(q);
z1 = part_j(q);

r = (x1*x1 + y1*y1 + z1*z1);
a = ln(r)/2;
b = atan2(x1+flip(y1));
c = asin(z1/r);
q = quaternion(a,b,c,0);
return(q);
}

void init(void)
{
C = pixel;
/*
The usual algorithm starts with z=0.
To avoid ln(0), I start with z = c/(c-1)
*/
logc = lnt(pixel);
logc1 = lnt(pixel-(1,0,0,0));

z = expt(logc-logc1);
}
void loop(void)
{
z0=z;
bluh = lnt(z);

z3 = expt(3*bluh);
cz = expt(bluh+logc);
f = z3 +cz - z - C;

df = expt(bluh*2)*3 + C -1;
bluh = lnt(f);
glub = lnt(df);
z = z0 - expt(bluh-glub);
}
bool bailout(void)
{
return(|z-z0|>Error);
}
void description(void)
{
this.title="TriplexNewton";

Error.default=0.001;
}
}
« Last Edit: August 30, 2010, 10:56:18 AM by Schlega » Logged
kram1032
Fractal Senior
******
Posts: 1863


« Reply #3 on: August 30, 2010, 01:23:19 PM »

yup, the link works fine now smiley
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Imitations of classical Julia set using Newton's method General Discussion gamma 5 4730 Last post January 29, 2009, 05:05:00 AM
by HPDZ
Newton's Method on transformed equations General Discussion « 1 2 » Timeroot 15 22834 Last post March 21, 2010, 11:48:56 PM
by Timeroot
drawing Apollonian Gasket - newton method fractals Help & Support amirkhabbaz 4 2459 Last post December 23, 2010, 09:08:07 PM
by amirkhabbaz
Pixelation reduction method Mandelbulb 3d 1Bryan1 0 1872 Last post December 06, 2015, 05:24:22 AM
by 1Bryan1
Have you used the Interpolate method? Mandelbulb 3d 0Encrypted0 0 1663 Last post July 31, 2016, 06:05:21 AM
by 0Encrypted0

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.159 seconds with 24 queries. (Pretty URLs adds 0.007s, 2q)