POV-Ray : Newsgroups : povray.off-topic : Heh.... Server Time
6 Sep 2024 03:17:03 EDT (-0400)
  Heh.... (Message 1 to 6 of 6)  
From: Mike Raiford
Subject: Heh....
Date: 12 Mar 2009 14:50:43
Message: <49b95983$1@news.povray.org>
<sigh>

double x = x0, y = y0;

int i = 0;
while(x*x+y*y <= 4 && i < max_iterations)
{
    double xtemp = x*x - y*y + x0;
    y = 2*x*y + y0;
    x = xtemp;
    i++;
}
if (i == max_iterations) return -1;
return i;

-- 
~Mike


Post a reply to this message

From: clipka
Subject: Re: Heh....
Date: 12 Mar 2009 15:15:00
Message: <web.49b95f281d821c58f708085d0@news.povray.org>
Looks like Mandelbrot or the like... what's wrong with it that makes you sigh?


Post a reply to this message

From: Mike Raiford
Subject: Re: Heh....
Date: 12 Mar 2009 15:45:09
Message: <49b96645$1@news.povray.org>
clipka wrote:
> Looks like Mandelbrot or the like... what's wrong with it that makes you sigh?

hehe.. I did it out of boredom.

-- 
~Mike


Post a reply to this message

From: Orchid XP v8
Subject: Re: Heh....
Date: 12 Mar 2009 16:04:41
Message: <49b96ad9$1@news.povray.org>
Mike Raiford wrote:

> hehe.. I did it out of boredom.

Er, no.

Boredom is when you do this with pencil and graph paper. :-P

(Speaking from experience...)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Mike Raiford
Subject: Re: Heh....
Date: 12 Mar 2009 16:31:14
Message: <49b97112@news.povray.org>
Orchid XP v8 wrote:
> Mike Raiford wrote:
> 
>> hehe.. I did it out of boredom.
> 
> Er, no.
> 
> Boredom is when you do this with pencil and graph paper. :-P
> 
> (Speaking from experience...)
> 

That's called masochism.

-- 
~Mike


Post a reply to this message

From: Invisible
Subject: Re: Heh....
Date: 13 Mar 2009 05:22:01
Message: <49ba25b9$1@news.povray.org>
>> Boredom is when you do this with pencil and graph paper. :-P
>>
>> (Speaking from experience...)
>>
> 
> That's called masochism.

Er, no.

http://www.xkcd.com/505/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.