לדלג לתוכן

קובץ:Mandelbrot d 9.png

תוכן הדף אינו נתמך בשפות אחרות.
מתוך ויקיפדיה, האנציקלופדיה החופשית

לקובץ המקורי(1,000 × 1,000 פיקסלים, גודל הקובץ: 503 ק"ב, סוג MIME‏: image/png)

ויקישיתוף זהו קובץ שמקורו במיזם ויקישיתוף. תיאורו בדף תיאור הקובץ המקורי (בעברית) מוצג למטה.

תקציר

תיאור
English: Mandelbrot set for fc(z)=z*z + c. Color of pixel is proportional to quadratn in which ninth ( last) iteration lands
תאריך יצירה
מקור Made with c console program with help of Wolf Jung
יוצר Adam majewski

Long description

Color shows in which quadrant of a Cartesian coordinate system n-th iteration lands:

  • re(z_n) > 0 and im(z_n) > 0 (first quadrant)
  • re(z_n) < 0 and im(z_n) > 0 (second)
  • re(z_n) < 0 and im(z_n) < 0 (third)
  • re(z_n) > 0 and im(z_n) < 0 (fourth).

Because there are 4 quadrants then 4 colors are used .

"... when the four colors are meeting somewhere, you have a zero of q_n(c), i.e., a center of [hyperbolic component for] period dividing n. In addition, the light or dark color shows if c is in M." ( Wolf Jung )

compare with

Scr code

/* 
c console program:
          
----------------------------------------------------
 1. draws parameter plane for Fc(z)=z*z +c
  color shows in which quadrant zn lands. 4 colors are used because there are 4 quadrants : 
-------------------------------         
2. technic of creating ppm file is  based on the code of Claudio Rocchini
http://en.wikipedia.org/wiki/Image:Color_complex_plot.jpg
create 8 bit color ( shades of gray)  graphic file ,  portable pixmap file = PPM 
see http://en.wikipedia.org/wiki/Portable_pixmap
to see the file use external application ( graphic viewer)
---------------------------------

Adam Majewski
fraktal.republika.pl
{{Date|2010|04|02}}
*/
#include <stdio.h>
int main()
{
         /* screen ( integer) coordinate */
       int iX,iY;
       const int iXmax = 4000; 
       const int iYmax = 4000;
       /* world ( double) coordinate = parameter plane*/
       double Cx,Cy;
       const double CxMin=-2.5;
       const double CxMax=1.5;
       const double CyMin=-2.0;
       const double CyMax=2.0;
       /* */
       double PixelWidth=(CxMax-CxMin)/iXmax;
       double PixelHeight=(CyMax-CyMin)/iYmax;
        /* color component ( R or G or B) is coded from 0 to 255 */
       /* it is 24 bit color RGB file */
       const int MaxColorComponentValue=255; 
       static unsigned char color[1]; /* 8 bit color =  1 byte */
       FILE * fp;
       char *filename="d_9.ppm";
       char *comment="# ";/* comment should start with # */
       
       /* Z=Zx+Zy*i  ;   Z0 = 0 */
       double Zx, Zy;
       double Zx2, Zy2; /* Zx2=Zx*Zx;  Zy2=Zy*Zy  */
       /*  */
       int Iteration;
       const int IterationMax=9;
       /* bail-out value , radius of circle ;  */
       const double EscapeRadius=1000;
       double ER2=EscapeRadius*EscapeRadius;
       /*create new file,give it a name and open it in binary mode  */
       fp= fopen(filename,"wb"); /* b -  binary mode */
       /*write ASCII header to the file - 8 bit color*/
       fprintf(fp,"P5\n %s\n %d\n %d\n %d\n",comment,iXmax,iYmax,MaxColorComponentValue);
       /* compute and write image data bytes to the file*/
       for(iY=0;iY<iYmax;iY++)
       {
            Cy=CyMin + iY*PixelHeight;
            if (fabs(Cy)< PixelHeight/2) Cy=0.0; /* Main antenna */
            for(iX=0;iX<iXmax;iX++)
            {         
                      Cx=CxMin + iX*PixelWidth;
                       /* initial value of orbit = critical point Z= 0 */
                       Zx=0.0;
                       Zy=0.0;
                       Zx2=Zx*Zx;
                       Zy2=Zy*Zy;
                       /* */
                       for (Iteration=0;Iteration<IterationMax; Iteration++)
                       {
                           Zy=2*Zx*Zy + Cy;
                           Zx=Zx2-Zy2 +Cx;
                           Zx2=Zx*Zx;
                           Zy2=Zy*Zy;
                       };
                       /* compute  pixel color (8 bit = 1 byte) */
                      // if (Iteration==IterationMax) color[0]=0; /*  interior of Mandelbrot set = black */
                       /* exterior of Mandelbrot set = binary decomposition */             
                         // else 
                       if ((Zx>0) && (Zy>0)) color[0]=50;   /* 1-st quadrant */
                       if ((Zx<0) && (Zy>0)) color[0]=100; /* 2-nd quadrant */
                       if ((Zx<0) && (Zy<0)) color[0]=150; /* 3-rd quadrant */
                       if ((Zx>0) && (Zy<0)) color[0]=200; /* 4-th quadrant */
                       /*write color to the file*/
                       fwrite(color,1,1,fp);
               }
       }
       fclose(fp);
       printf("file saved\n");
       getchar();
      return 0;
}

רישיון

אני, בעל זכויות היוצרים על היצירה הזאת, מפרסם אותה בזאת תחת הרישיונות הבאים:
w:he:Creative Commons
ייחוס שיתוף זהה
הקובץ הזה מתפרסם לפי תנאי רישיון קריאייטיב קומונז ייחוס-שיתוף זהה 3.0 לא מותאם.
הנכם רשאים:
  • לשתף – להעתיק, להפיץ ולהעביר את העבודה
  • לערבב בין עבודות – להתאים את העבודה
תחת התנאים הבאים:
  • ייחוס – יש לתת ייחוס הולם, לתת קישור לרישיון, ולציין אם נעשו שינויים. אפשר לעשות את זה בכל צורה סבירה, אבל לא בשום צורה שמשתמע ממנה שמעניק הרישיון תומך בך או בשימוש שלך.
  • שיתוף זהה – אם תיצרו רמיקס, תשנו, או תבנו על החומר, חובה עליכם להפיץ את התרומות שלך לפי תנאי רישיון זהה או תואם למקור.
GNU head מוענקת בכך הרשות להעתיק, להפיץ או לשנות את המסמך הזה, לפי תנאי הרישיון לשימוש חופשי במסמכים של גנו, גרסה 1.2 או כל גרסה מאוחרת יותר שתפורסם על־ידי המוסד לתוכנה חופשית; ללא פרקים קבועים, ללא טקסט עטיפה קדמית וללא טקסט עטיפה אחורית. עותק של הרישיון כלול בפרק שכותרתו הרישיון לשימוש חופשי במסמכים של גנו.
הנכם מוזמנים לבחור את הרישיון הרצוי בעיניכם.

כיתובים

נא להוסיף משפט שמסביר מה הקובץ מייצג

פריטים שמוצגים בקובץ הזה

מוצג

היסטוריית הקובץ

ניתן ללחוץ על תאריך/שעה כדי לראות את הקובץ כפי שנראה באותו זמן.

תאריך/שעהתמונה ממוזערתממדיםמשתמשהערה
נוכחית20:59, 3 באוגוסט 2023תמונה ממוזערת לגרסה מ־20:59, 3 באוגוסט 2023‪1,000 × 1,000‬ (503 ק"ב)Obscure2020Optimized with OxiPNG and ZopfliPNG. Hilariously, the filesize got LARGER when you shrank the image resolution! Just goes to show you how BAD most programs (including GIMP) are at encoding PNGs.
14:16, 26 במרץ 2011תמונה ממוזערת לגרסה מ־14:16, 26 במרץ 2011‪1,000 × 1,000‬ (618 ק"ב)Soul windsurferSmaller size
14:15, 26 במרץ 2011תמונה ממוזערת לגרסה מ־14:15, 26 במרץ 2011‪4,000 × 4,000‬ (565 ק"ב)Soul windsurfer{{Information |Description ={{en|1=Mandelbrot set for fc(z)=z*z + c. Color of pixel is proportional to quadratn in which last iteration lands}} |Source ={{own}} |Author =Adam majewski |Date =2010-04-02 |

אין בוויקיפדיה דפים המשתמשים בקובץ זה.

שימוש גלובלי בקובץ

אתרי הוויקי השונים הבאים משתמשים בקובץ זה: