The graphics implemented by the program are:
Graph 1: Rehabilitation function f (z) = z1 * z2 0.2541; z1 = 3 * x (3/11) * Y * i; z2 = (3 * 7) * x 3 * y * i; / //Drawpicture (E, 0.2541); /// Mult (x * 3, y * 3/11, x * 3/7, y * 3, ref x, ref y); Mathematics beauty is an abstract nice. However, if you have a heart, if you have your own love, the rhythm is beautiful, the "calculation" rhythm, or urgent, or soothing, there is a sound of the sound, you will not help but catch it ... Remember Once I went to the homepage of the Wuhan Music Academy to see a papers, it is the evolution calculation to "write" music. The original musician has already had a heart-to-heart ... Capture "Musical Law" or require some expertise. However, put the rhythm, that rhythm into pixels, but you can do it ---- Oh, fractal, here is your field of soul, pixel point is your light dance step, you Are you willing to dance with me? Come on, let me take your hand ... Come, you join ... Graph 1 is my favorite, see the middle relief effect, my heart gradually moves a touch: how to have The classical pattern is huh, in thousands of years, she actually steeshed into this fractal pattern. The code is as follows (C #): use system;
Using system.drawing;
Using system.collections;
Using system.componentmodel;
Using system.windows.forms;
Using system.data;
Namespace Picture {
///
/// Form1 summary description.
/// summary>
Public Class Form1: System.Windows.Forms.form
{
///
/// The required designer variable.
/// summary>
Private system.componentmodel.Container Components = NULL;
Private Pen Redpen = new pen (color.red, 0);
Private Pen Greenpen = New Pen (Color.green, 0);
Private random randnum = new random (unchecked ((int) datetime.now.ticks);
Private Double Zoom = 2.0;
Private Double Attract = 0.0001;
Public Form1 ()
{
//
// Windows Form Designer Support
//
InitializationComponent ();
//
// Todo: Add any constructor code after INITIALIZECOMPONENT call
//
THIS.BACKCOLOR = Color.green;
}
///
/// summary>
Protected Override Void Dispose (Bool Disposing)
{
IF (Disposing)
{
IF (Components! = NULL)
{
Components.dispose ();
}
}
Base.dispose (Disposing);
}
#Region Windows Form Designer Generated Code
///
/// Designer supports the required method - do not use the code editor to modify
/// This method is content.
/// summary>
Private vidinitiRizeComponent ()
{
//
// Form1
//
THIS.AUTOSCALEBASESIZE = New System.drawing.size (6, 14);
THISTEM.DRAWING.COLOR.LIGHTGREEN
THIS.CLIENTSIZE = New System.drawing.size (488, 333);
THIS.NAME = "Form1";
THIS.TEXT = "Beautiful fractal (retrofit function)";
This.WindowsTate = system.windows.forms.formwindowsTate.maximized;
}
#ndregion
///
/// The main entry point for the application.
/// summary>
[Stathread]
Static void main ()
{
Application.run (New Form1 ());
}
///
// / Overload onPaint
/// summary>
/// param>
Protected Override Void Onpaint (Painteventargs E)
{
DrawPicture (E, 0.2541);
Base.onpaint (e);
}
///
/// Draw fractal graphics
/// summary>
/// param>
/// param>
Private Void DrawPicture (Paintendargs E, Double Number)
{
Graphics DC = E.GRAPHICS;
Double Scale, MAG, X, Y;
Double maxx = this.width, maxy = this.height;
Scale = 2.0 * zoom / maxy;
Bool bcontinue;
IT ITer;
For (int i = 0; i { For (int J = 0; j { X = scale * i-zoom; y = zoom-scale * j; BCONTINUE = True; iTer = 0; While (bcontinue) { MULT (x * 3, y * 3/11, x * 3/7, y * 3, ref x, ref y); X = x Number; MAG = x * x y * y; IF (MAG BCONTINUE = FALSE; Else IF ((MAG <100) && (iter <10000000)) ITER = 1; Else { IF (item% 2 == 1) // Dc.drawellipse (Redpen, i 100, J, 1, 1); Else Dc.Drawellipse (Greenpen, i 100, J, 1, 1); BCONTINUE = FALSE; } } } } } /// /// iterative retrieval function (part) /// summary> /// param> /// param> /// param> /// param> /// param> /// param> Private Void Mult (Double X1, Double Y1, Double X2, Double Y2, Ref Double X, Ref Double Y) { X = x1 * x2-y1 * y2; Y = x1 * y2 x2 * Y1; } } } Graph 2: Rehabilitation function f (z) = z1 * z2 0.384; Where z1 = 3 * x (3/11) * y * i; Z2 = (3 * 7) * x 3 * y * i; ///Drawpicture (E, 0.384); /// MULT (x * 3, y * 3/11, x * 3/7, y * 3, ref x, ref y); Graph 3: Rehabilitation function f (z) = z1 * z2 0.654; Where z1 = x y * i; Z2 = (2 * 5) * x (2/9) * y * i; ///Drawpicture (E, 0.654); /// MULT (x, y, x * 2/5, y * 2/9, ref x, ref y); Graphics 4: Rehabilitation Function F (z) = Z1 * Z1 0.384; Where z1 = x y * i; ///Drawpicture (E, 0.384); /// MULT (x, y, x, y, ref x, ref y);