|
|
Tom Melly <tom### [at] tomandlucouk> wrote:
: Doh! Many thanks - fixed it now.
: #declare TReal = ((TReal * TReal) - (TImaginary * TImaginary));
: #declare TImaginary = (2 * T2Real * TImaginary);
: #if(((TReal * TReal) + (TImaginary * TImaginary)) > 4)
...
: #end
: #declare TReal = TReal + Real;
: #declare TImaginary = TImaginary + Imaginary;
You are here actually calculating first Z=Z^2, then looking if |Z| > 2
and then calculating Z=Z+c.
Now, this is interesting. Does this work? In theory you should calculate
Z=Z^2+c first and then see if |Z| > 2.
--
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););} /*- Warp -*/
Post a reply to this message
|
|