File:Julia set for fc(z)= z^6+A*z+c where c = 4.6875e-1 - 5.703125e-1 *I and A = 6.96854889392852783203125e-2 - 1.07958018779754638671875e-1*I.png

Original file(2,000 × 2,000 pixels, file size: 1.25 MB, MIME type: image/png)

Summary

Description
English: Julia set for fc(z)= z^6+A*z+c where c = 4.6875e-1 - 5.703125e-1 *I and A = 6.96854889392852783203125e-2 - 1.07958018779754638671875e-1*I. Period = 78. Location by Marc Meidlinger: "The open labyrinth" [1]
Date
Source Own work
Author Adam majewski
Other versions

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

algorithm

Algorithm is suprisingly simple : old plain bailout test

unsigned char
ComputeColor_Fatou (complex double z, int IterMax)
{

  int i;			// number of iteration
  for (i = 0; i < IterMax; ++i)
    {




      z = z*z*z*z*z*z +A*z+ c;		// complex iteration z^6+A*z+c

      if (cabs (z) > ER) // escaping = exterior 
	{
	  uExterior += 1;
	  return iColorOfExterior;
	}			




    }

  //  non -escaping = interior
  uInterior += 1;
  return iColorOfInterior;


}


coefficients read from input file labirynth.txt
	degree 6 coefficient = ( 1.0000000000000000 +0.0000000000000000*i) 
	degree 1 coefficient = ( 2338257 -3622470*i) / 2^25
	degree 0 coefficient = ( 15728640 -19136512*i) / 2^25

Input polynomial p(z)=(1+0i)*z^6+(0.06968548893928527832-0.10795801877975463867i)*z^1+(0.46875-0.5703125i)

5 critical points found

	cp#0: -0.22780802849073514271,-0.40377232221778047716 . It's critical orbit is bounded and enters cycle #0 length=78 and it's stability = |multiplier|=0.52942 =attractive 
cycle = {
0.55704635645366762375,-0.495603916973455072 ; 0.39517993872118878373,-0.50358312731361620784 ; 0.48729973555284544773,-0.59635155882573720465 ; 0.55643344049266174611,-0.49249771434732037001 ; 0.39422035568049396126,-0.50745645844253783885 ; 0.48940651853321454068,-0.59669938812781431192 ; 0.55610815437320582078,-0.48928771033186413408 ; 0.39296002759779075086,-0.51125008236049529486 ; 0.4915203179535544975,-0.59728380912255152335 ; 0.55609304588012309356,-0.48593505200728848159 ; 0.39137141682052678515,-0.51501708637333099006 ; 0.49365323758834767087,-0.59813087462806346917 ; 0.55643101593859500831,-0.48239650951883739083 ; 0.38940638163911289737,-0.51880954335980300485 ; 0.49581519890827580044,-0.59928198199358995168 ; 0.55719220598654461973,-0.47862255571379497265 ; 0.38698933091452714095,-0.52268231678859589096 ; 0.49801245242981984074,-0.60079951255137231669 ; 0.55848640539918170678,-0.47455571133183682697 ; 0.38400454449819698688,-0.52669718000036169769 ; 0.50024403078856594096,-0.60277652298679018639 ; 0.5604851375940415048,-0.47013012990846902994 ; 0.38027289560246796407,-0.53092764332697228724 ; 0.50249362777000561309,-0.6053535326531767069 ; 0.5634619879348017335,-0.46527561260922023489 ; 0.375507397878420357,-0.53546429797330719058 ; 0.50471047523546730407,-0.60874841545734514892 ; 0.56786945510429021056,-0.45993620066095219912 ; 0.36922240238970094328,-0.54041767248405825352 ; 0.50676139725177427042,-0.61331128411322632932 ; 0.57449276561563999977,-0.45413708068194236223 ; 0.36053052944641633681,-0.54590207883463026661 ; 0.50829936495480509961,-0.6196258441608376577 ; 0.58476907817991707894,-0.44822155795732904204 ; 0.34763428328927237221,-0.55191363962471196025 ; 0.50836059714732473314,-0.62867233144186829286 ; 0.6014148747403852413,-0.44374498975843934545 ; 0.32638843830931291157,-0.55758661879049808974 ; 0.50398912203786161434,-0.64179263783722761971 ; 0.62888045346870058427,-0.44709786116562100222 ; 0.28623143279237495129,-0.55607332277715570967 ; 0.48601868299455924793,-0.65704097963853380637 ; 0.66343277222581487074,-0.48127894668239612486 ; 0.21699369501290510787,-0.49834937294464598523 ; 0.45016080242617484419,-0.64463271031639546305 ; 0.63602007623262091229,-0.54726410956973980948 ; 0.30246073701330250527,-0.36278772488493837844 ; 0.45639519974567321903,-0.61873748001472084201 ; 0.59545983303533445152,-0.53416800792416263555 ; 0.36885093507739580287,-0.42352662088703307841 ; 0.46133649434331336359,-0.61090691532129315355 ; 0.58368551523906708756,-0.52709326699799619043 ; 0.38136881316665405262,-0.44438696019741813492 ; 0.46514523935423057743,-0.60626398019729399458 ; 0.57654172037227047198,-0.52204836075724325717 ; 0.38770245221055704699,-0.45727668117055292329 ; 0.46837069518718815742,-0.60313176680979185829 ; 0.57153968829569690158,-0.51790503142715138551 ; 0.3914292333768440435,-0.46668753230355186634 ; 0.47123567490343354347,-0.6008957350544048559 ; 0.56778543213748278173,-0.51425589725855092027 ; 0.39373486237944549382,-0.47417300352603841684 ; 0.47385760918689523447,-0.59926099589984094251 ; 0.56485537042285149933,-0.51090278153551593743 ; 0.39514751287051630424,-0.48045628949973395727 ; 0.47630807165375771417,-0.59806532734862738465 ; 0.56251829601948821757,-0.50773097267974931501 ; 0.3959406393671658364,-0.48593350052173689413 ; 0.47863515405084228194,-0.59721240390840446555 ; 0.56063746360268162938,-0.50466514684231889021 ; 0.39626825886557914824,-0.49084634371899382721 ; 0.48087362064478383905,-0.5966429966005383223 ; 0.55912886658468086143,-0.5016503946910705336 ; 0.39622042195511830709,-0.49535475891660607495 ; 0.48305012799100111032,-0.59632103987491680286 ; 0.55794130912548489665,-0.49864276379128197325 ; 0.39584891023153478962,-0.49957195062897108429 ; 0.48518615359985090008,-0.5962264675730656327 ; }

	cp#1: -0.45440685040353562263,0.091885800536934070237 . It's critical orbit is escaping

	cp#2: 0.42163198278755242843,0.19275647103174398111 . It's critical orbit is bounded  and enters cycle #0

	cp#3: 0.31361374588615714698,-0.3414308193839966088 . It's critical orbit is bounded  and enters cycle #0

	cp#4: -0.05303084977943909456,0.46056087003309892358 . It's critical orbit is bounded  and enters cycle #0

c src code

/*

  Adam Majewski
  adammaj1 aaattt o2 dot pl  // o like oxygen not 0 like zero 
  
  
  


  
  ==============================================
  
  
  Structure of a program or how to analyze the program 
  
  
  ============== Image X ========================
  
  DrawImageOfX -> DrawPointOfX -> ComputeColorOfX 
  
  first 2 functions are identical for every X
  check only last function =  ComputeColorOfX
  which computes color of one pixel !
  
  

   
  ==========================================

  
  ---------------------------------
  indent d.c 
  default is gnu style 
  -------------------



  c console progam 
  
	export  OMP_DISPLAY_ENV="TRUE"	
  	gcc d.c -lm -Wall -march=native -fopenmp
  	time ./a.out > b.txt


  gcc l.c -lm -Wall -march=native -fopenmp


  time ./a.out

  time ./a.out >i.txt
  time ./a.out >e.txt
  
  
  
  
  
  
  convert -limit memory 1000mb -limit disk 1gb dd30010000_20_3_0.90.pgm -resize 2000x2000 10.png

  
  =======================
  # gnuplot "i.plt"
set terminal svg enhanced background rgb 'white'
set xlabel "re(z)"
set ylabel "DLD"
set title "Relation between z and DLD in the interior of Julia set for c = -1"
set output "interior.svg"
plot "i.txt" with lines

  ----------------------
  d0 - db  = 5.0000000000000000 - 4.5389870050569598 = 0.4610129949430402
 allways free memory (deallocate )  to avoid memory leaks 
Numerical approximation of Julia set for fc(z)= z^2 + c 
parameter c = ( -1.0000000000000000 ; 0.0000000000000000 ) 
Image Width = 4.000000 in world coordinate
PixelWidth = 0.004004 
Maximal number of iterations = iterMax = 1000 
ratio of image  = 1.000000 ; it should be 1.000 ...
gcc version: 7.5.0
  
  
*/

#include <stdio.h>
#include <stdlib.h>		// malloc
#include <string.h>		// strcat
#include <math.h>		// M_PI; needs -lm also
#include <complex.h>
#include <omp.h>		// OpenMP
#include <limits.h>		// Maximum value for an unsigned long long int



// https://sourceforge.net/p/predef/wiki/Standards/

#if defined(__STDC__)
#define PREDEF_STANDARD_C_1989
#if defined(__STDC_VERSION__)
#if (__STDC_VERSION__ >= 199409L)
#define PREDEF_STANDARD_C_1994
#endif
#if (__STDC_VERSION__ >= 199901L)
#define PREDEF_STANDARD_C_1999
#endif
#endif
#endif




/* --------------------------------- global variables and consts ------------------------------------------------------------ */



// virtual 2D array and integer ( screen) coordinate
// Indexes of array starts from 0 not 1 
//unsigned int ix, iy; // var
static unsigned int ixMin = 0;	// Indexes of array starts from 0 not 1
static unsigned int ixMax;	//
static unsigned int iWidth;	// horizontal dimension of array

static unsigned int iyMin = 0;	// Indexes of array starts from 0 not 1
static unsigned int iyMax;	//

static unsigned int iHeight = 15000;	//  
// The size of array has to be a positive constant integer 
static unsigned long long int iSize;	// = iWidth*iHeight; 

// memmory 1D array 
unsigned char *data;
//unsigned char *edge;
//unsigned char *edge2;

// unsigned int i; // var = index of 1D array
//static unsigned int iMin = 0; // Indexes of array starts from 0 not 1
static unsigned int iMax;	// = i2Dsize-1  = 
// The size of array has to be a positive constant integer 
// unsigned int i1Dsize ; // = i2Dsize  = (iMax -iMin + 1) =  ;  1D array with the same size as 2D array


static const double ZxMin = -1.2;	//-0.05;
static const double ZxMax = 1.2;	//0.75;
static const double ZyMin = -1.2;	//-0.1;
static const double ZyMax = 1.2;	//0.7;
static double PixelWidth;	// =(ZxMax-ZxMin)/ixMax;
static double PixelHeight;	// =(ZyMax-ZyMin)/iyMax;
static double ratio;


// complex numbers of parametr plane 
//https://fractalforums.org/code-snippets-fragments/74/lagrangian-descriptors-fragment-code/3612/msg22426#msg22426
double complex c =  4.6875e-1 - 5.703125e-1 *I;	// parameter of function fc(z)=z^6 +A*x+ c  = (15728640-19136512*i) * (2^-25)
                   
//A: (2338257-3622470*i) * (2^-25)
double complex  A=  6.96854889392852783203125e-2 - 1.07958018779754638671875e-1 *I;




/*
ER = pow(10,ERe);
   AR = pow(10,-ARe);
 */
int ARe = 3;			// increase ARe until black ( unknown) points disapear 
int ERe = 3;
double ER;			//= 1e60;
double AR;			//= 1e-16; // bigger values do not works




int IterMax = 100000;




/* colors = shades of gray from 0 to 255 */
unsigned char iColorOfExterior = 250;
unsigned char iColorOfInterior = 50;
unsigned char iColorOfBoundary = 0;
unsigned char iColorOfUnknown = 255;

// pixel counters
unsigned long long int uUnknown = 0;
unsigned long long int uInterior = 0;
unsigned long long int uExterior = 0;



/* ------------------------------------------ functions -------------------------------------------------------------*/





//------------------complex numbers -----------------------------------------------------





// from screen to world coordinate ; linear mapping
// uses global cons
double
GiveZx (int ix)
{
  return (ZxMin + ix * PixelWidth);
}

// uses globaal cons
double
GiveZy (int iy)
{
  return (ZyMax - iy * PixelHeight);
}				// reverse y axis


complex double
GiveZ (int ix, int iy)
{
  double Zx = GiveZx (ix);
  double Zy = GiveZy (iy);

  return Zx + Zy * I;




}




// ****************** DYNAMICS = trap tests ( target sets) ****************************


/* -----------  array functions = drawing -------------- */

/* gives position of 2D point (ix,iy) in 1D array  ; uses also global variable iWidth */
unsigned int
Give_i (unsigned int ix, unsigned int iy)
{
  return ix + iy * iWidth;
}


// ***********************************************************************************************
// ********************** edge detection usung Sobel filter ***************************************
// ***************************************************************************************************

// from Source to Destination
int
ComputeBoundaries (unsigned char S[], unsigned char D[])
{

  unsigned int iX, iY;		/* indices of 2D virtual array (image) = integer coordinate */
  unsigned int i;		/* index of 1D array  */
  /* sobel filter */
  unsigned char G, Gh, Gv;
  // boundaries are in D  array ( global var )

  // clear D array
  memset (D, iColorOfExterior, iSize * sizeof (*D));	// for heap-allocated arrays, where N is the number of elements = FillArrayWithColor(D , iColorOfExterior);

  // printf(" find boundaries in S array using  Sobel filter\n");   
#pragma omp parallel for schedule(dynamic) private(i,iY,iX,Gv,Gh,G) shared(iyMax,ixMax)
  for (iY = 1; iY < iyMax - 1; ++iY)
    {
      for (iX = 1; iX < ixMax - 1; ++iX)
	{
	  Gv =
	    S[Give_i (iX - 1, iY + 1)] + 2 * S[Give_i (iX, iY + 1)] +
	    S[Give_i (iX - 1, iY + 1)] - S[Give_i (iX - 1, iY - 1)] -
	    2 * S[Give_i (iX - 1, iY)] - S[Give_i (iX + 1, iY - 1)];
	  Gh =
	    S[Give_i (iX + 1, iY + 1)] + 2 * S[Give_i (iX + 1, iY)] +
	    S[Give_i (iX - 1, iY - 1)] - S[Give_i (iX + 1, iY - 1)] -
	    2 * S[Give_i (iX - 1, iY)] - S[Give_i (iX - 1, iY - 1)];
	  G = sqrt (Gh * Gh + Gv * Gv);
	  i = Give_i (iX, iY);	/* compute index of 1D array from indices of 2D array */
	  if (G == 0)
	    {
	      D[i] = 255;
	    }			/* background */
	  else
	    {
	      D[i] = 0;
	    }			/* boundary */
	}
    }



  return 0;
}



// copy from Source to Destination
int
CopyBoundaries (unsigned char S[], unsigned char D[])
{

  unsigned int iX, iY;		/* indices of 2D virtual array (image) = integer coordinate */
  unsigned int i;		/* index of 1D array  */


  //printf("copy boundaries from S array to D array \n");
  for (iY = 1; iY < iyMax - 1; ++iY)
    for (iX = 1; iX < ixMax - 1; ++iX)
      {
	i = Give_i (iX, iY);
	if (S[i] == 0)
	  D[i] = 0;
      }



  return 0;
}






unsigned char
ComputeColor_Fatou (complex double z, int IterMax)
{

  int i;			// number of iteration
  for (i = 0; i < IterMax; ++i)
    {




      z = z*z*z*z*z*z +A*z+ c;		// complex iteration z^6+A*z+c

      if (cabs (z) > ER)
	{
	  uExterior += 1;
	  return iColorOfExterior;
	}			// exterior 




    }

  uInterior += 1;
  return iColorOfInterior;


}





// plots raster point (ix,iy) 
int
DrawFatouPoint (unsigned char A[], int ix, int iy, int IterMax)
{
  int i;			/* index of 1D array */
  unsigned char iColor = 0;
  complex double z;


  i = Give_i (ix, iy);		/* compute index of 1D array from indices of 2D array */
  z = GiveZ (ix, iy);
  iColor = ComputeColor_Fatou (z, IterMax);
  A[i] = iColor;		// interior

  return 0;
}




// fill array 
// uses global var :  ...
// scanning complex plane 
int
DrawFatouImage (unsigned char A[], int IterMax)
{
  unsigned int ix, iy;		// pixel coordinate 

  fprintf (stdout, "compute Fatou image \n");
  // for all pixels of image 
#pragma omp parallel for schedule(dynamic) private(ix,iy) shared(A, ixMax , iyMax, uUnknown, uInterior, uExterior)
  for (iy = iyMin; iy <= iyMax; ++iy)
    {
      fprintf (stdout," %d from %d \r", iy, iyMax);	//info 
      for (ix = ixMin; ix <= ixMax; ++ix)
	DrawFatouPoint (A, ix, iy, IterMax);	//  
    }

  return 0;
}


//=========







// uses global var :  ...
// scanning complex plane 
int
CheckFatouImage (unsigned char A[])
{
  unsigned int ix, iy;		// pixel coordinate 
  unsigned long long int u_Unknown = 0;
  unsigned long long int u_Interior = 0;
  unsigned long long int u_Exterior = 0;

  fprintf (stdoout, "check Fatou array \n");
  // for all pixels of image 
  //#pragma omp parallel for schedule(dynamic) private(ix,iy) shared(A, ixMax , iyMax)
  for (iy = iyMin; iy <= iyMax; ++iy)
    {
      //printf (" %d from %d \r", iy, iyMax); //info 
      for (ix = ixMin; ix <= ixMax; ++ix)

	{
	  unsigned char color = A[Give_i (ix, iy)];
	  if (color == iColorOfInterior)
	    {
	      u_Interior += 1;
	    }
	  else
	    {
	      if (color == iColorOfExterior)
		{
		  u_Exterior += 1;
		}
	      {
		if (color == iColorOfUnknown)
		  {
		    u_Unknown += 1;
		  }
	      }
	    }
	  //printf("error\n");

	}



    }



  printf ("pixel counters\n");
  printf ("uUnknown = %llu\n", u_Unknown);
  printf ("uExterior = %llu\n", u_Exterior);
  printf ("uInterior = %llu\n", u_Interior);
  printf ("Sum of pixels  = %llu\n", u_Interior + u_Exterior + u_Unknown);
  printf ("all pixels of the array = iSize = %llu\n", iSize);
  printf ("Maximum value for an unsigned long long int = ULLONG_MAX = %llu\n",
	  ULLONG_MAX);

  return 0;
}
















// *******************************************************************************************
// ********************************** save A array to pgm file ****************************
// *********************************************************************************************

int
SaveArray2PGMFile (unsigned char B[], int a, int b,  char *comment)
{

  FILE *fp;
  const unsigned int MaxColorComponentValue = 255;	/* color component is coded from 0 to 255 ;  it is 8 bit color file */
  char name[100];		/* name of file */
  snprintf (name, sizeof name, "%d_%d", a, b );	/*  */
  char *filename = strcat (name, ".pgm");
  char long_comment[200];
  sprintf (long_comment, "%s\t f(z) = z^6+A*z+c where A= %.16f ; %.16f \t c =%.16f ; %.16f", comment, creal(a),cimag(A), creal(c), cimag(c));





  // save image array to the pgm file 
  fp = fopen (filename, "wb");	// create new file,give it a name and open it in binary mode 
  fprintf (fp, "P5\n # %s\n %u %u\n %u\n", long_comment, iWidth, iHeight, MaxColorComponentValue);	// write header to the file
  fwrite (B, iSize, 1, fp);	// write array with image data bytes to the file in one step 
  fclose (fp);

  // info 
  printf ("File %s saved ", filename);
  if (long_comment == NULL || strlen (long_comment) == 0)
    printf ("\n");
  else
    printf (". Comment = %s \n", long_comment);

  return 0;
}




int
PrintCInfo ()
{

  printf ("gcc version: %d.%d.%d\n", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);	// https://stackoverflow.com/questions/20389193/how-do-i-check-my-gcc-c-compiler-version-for-my-eclipse
  // OpenMP version is displayed in the console : export  OMP_DISPLAY_ENV="TRUE"

  printf ("__STDC__ = %d\n", __STDC__);
  printf ("__STDC_VERSION__ = %ld\n", __STDC_VERSION__);
  printf ("c dialect = ");
  switch (__STDC_VERSION__)
    {				// the format YYYYMM 
    case 199409L:
      printf ("C94\n");
      break;
    case 199901L:
      printf ("C99\n");
      break;
    case 201112L:
      printf ("C11\n");
      break;
    case 201710L:
      printf ("C18\n");
      break;
      //default : /* Optional */

    }

  return 0;
}


int
PrintProgramInfo ()
{


  // display info messages
  printf ("Numerical approximation of Julia set for fc(z)= z^6+A*z+c \n");
  //printf ("iPeriodParent = %d \n", iPeriodParent);
  //printf ("iPeriodOfChild  = %d \n", iPeriodChild);
  printf ("parameter c = ( %.16f ; %.16f ) \n", creal (c), cimag (c));
  printf ("parameter A = ( %.16f ; %.16f ) \n", creal (A), cimag (A));

  printf ("Image Width = %f in world coordinate\n", ZxMax - ZxMin);
  printf ("PixelWidth = %.16f \n", PixelWidth);
  printf ("AR = %.16f = %f *PixelWidth\n", AR, AR / PixelWidth);


  //printf("pixel counters\n");
  //printf ("uUnknown = %llu\n", uUnknown);
  //printf ("uExterior = %llu\n", uExterior);
  //printf ("uInterior = %llu\n", uInterior);
  //printf ("Sum of pixels  = %llu\n", uInterior+uExterior + uUnknown);
  //printf ("all pixels of the array = iSize = %llu\n", iSize);


  // image corners in world coordinate
  // center and radius
  // center and zoom
  // GradientRepetition
  printf ("Maximal number of iterations = iterMax = %d \n", IterMax);
  printf ("ratio of image  = %f ; it should be 1.000 ...\n", ratio);
  //




  return 0;
}






// *****************************************************************************
//;;;;;;;;;;;;;;;;;;;;;;  setup ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
// **************************************************************************************

int
setup ()
{

  fprintf (stdout, "setup start\n");






  /* 2D array ranges */

  iWidth = iHeight;
  iSize = iWidth * iHeight;	// size = number of points in array 
  // iy
  iyMax = iHeight - 1;		// Indexes of array starts from 0 not 1 so the highest elements of an array is = array_name[size-1].
  //ix

  ixMax = iWidth - 1;

  /* 1D array ranges */
  // i1Dsize = i2Dsize; // 1D array with the same size as 2D array
  iMax = iSize - 1;		// Indexes of array starts from 0 not 1 so the highest elements of an array is = array_name[size-1].

  /* Pixel sizes */
  PixelWidth = (ZxMax - ZxMin) / ixMax;	//  ixMax = (iWidth-1)  step between pixels in world coordinate 
  PixelHeight = (ZyMax - ZyMin) / iyMax;
  ratio = ((ZxMax - ZxMin) / (ZyMax - ZyMin)) / ((double) iWidth / (double) iHeight);	// it should be 1.000 ...

  ER = 2.0; //pow (10, ERe);
  AR = pow (10, -ARe);



  /* create dynamic 1D arrays for colors ( shades of gray ) */
  data = malloc (iSize * sizeof (unsigned char));


  if (data == NULL)
    {
      fprintf (stderr, " Could not allocate memory");
      return 1;
    }





 


  fprintf (stdout, " end of setup \n");

  return 0;

}				// ;;;;;;;;;;;;;;;;;;;;;;;;; end of the setup ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;




int
end ()
{


  fprintf (stdout, " allways free memory (deallocate )  to avoid memory leaks \n");	// https://en.wikipedia.org/wiki/C_dynamic_memory_allocation
  free (data);


  PrintProgramInfo ();
  PrintCInfo ();
  return 0;

}

// ********************************************************************************************************************
/* -----------------------------------------  main   -------------------------------------------------------------*/
// ********************************************************************************************************************

int
main ()
{
  setup ();


  DrawFatouImage (data, IterMax);	// first find Fatou
  SaveArray2PGMFile (data, iWidth, IterMax, "name = iWidth+IterMax");

  end ();

  return 0;
}

text output

gcc l.c -lm -Wall -march=native -fopenmp
a@zalman:~/Dokumenty/labrynth/l1$ ./a.out
setup start
 end of setup 
compute Fatou image 
File 15000_100000.pgm saved . Comment = name = iWidth+IterMax	 f(z) = z^6+A*z+c where A= 15000.0000000000000000 ; -0.1079580187797546 	 c =0.4687500000000000 ; -0.5703125000000000 
 allways free memory (deallocate )  to avoid memory leaks 
Numerical approximation of Julia set for fc(z)= z^6+A*z+c 
parameter c = ( 0.4687500000000000 ; -0.5703125000000000 ) 
parameter A = ( 0.0696854889392853 ; -0.1079580187797546 ) 
Image Width = 2.400000 in world coordinate
PixelWidth = 0.0001600106673778 
AR = 0.0010000000000000 = 6.249583 *PixelWidth
Maximal number of iterations = iterMax = 100000 
ratio of image  = 1.000000 ; it should be 1.000 ...
gcc version: 9.3.0
__STDC__ = 1
__STDC_VERSION__ = 201710
c dialect = C18

Image Magic src code

 convert 15000_100000.pgm -resize 2000x2000 2.png


References

  1. fractalforums : julia-and-mandelbrot-sets-w-or-wo-lyapunov-sequences

Captions

Julia set for fc(z)= z^6+A*z+c where c = 4.6875e-1 - 5.703125e-1 *I and A = 6.96854889392852783203125e-2 - 1.07958018779754638671875e-1*I

Items portrayed in this file

depicts

5 July 2020

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current08:22, 6 July 2020Thumbnail for version as of 08:22, 6 July 20202,000 × 2,000 (1.25 MB)Soul windsurferbetter quality
16:17, 5 July 2020Thumbnail for version as of 16:17, 5 July 20202,000 × 2,000 (1.25 MB)Soul windsurferUploaded own work with UploadWizard

The following page uses this file:

Metadata