10 views

Uploaded by Esala Hirumal Senevirathne

mandelbrot

- [E-WEB] Mathematics Story | Talk. 2 | Infinity Concept | Eng. Sarah Hassan Kamel
- QQMNVPUs
- 13th Oct630pm Alv
- 311
- ACES 2011 Board Recruitment
- Ruda Speculative Family
- CV - Channa Mohan Jayamuni
- New Power Factor
- vol1-28-13
- Notes on Scientific Philosophy
- Pegasus – First Steps Toward a Naturalistic Programming
- Xam Schedule
- Playlist
- Python-ES
- lcdkeypad
- ch1
- Prat Yu Sh Rathore
- knkn
- Examples With Loops
- BeeBotsTinkeringBarefootComputing1.pdf

You are on page 1of 2

of points whose boundary is a distinctive and easily recognizable two-dimensional fractal shape. We'll leave this definition out for now. Interestingly a Mandelbrot set's boundary includes smaller versions of the main shape it is essentially repeating itself but at a smaller size. Given image is a Mandelbrot set. Idea of this lab is generate and plot Mandelbrot sets.

Objective: . Introduce Java graphic libraries (at least on of them). Encourage referring the API manuals. Test your ability to read and understand Java code. Demonstrate the concepts of inheritance and super class. Demonstrate how a problem can be divided into smaller, more manageable tasks which are implemented as classes. Improve your coding ability. How it works: before get to coding we should get some idea about what a Mandelbrot set is. In mathematics Mandelbrot set is defined as the set of complex numbers C such that: Zn+1 = Zn2+C, starting with Z0 = 0 remains bounded when n reach infinity. In other words if for some C the above equation remains bounded for any number of iterations the that C is in the Mandelbrot set. Obviously we cannot find all Mandelbrot numbers because there are infinite number of them. So we only consider a region in the complex plane with some granularity (we need a granularity because between any two real numbers there is an infinite number of real numbers). Not all complex numbers belong to the Mandelbrot set. For some the above equation diverge slowly and for some rapidly. There is a mathematical proof which shows that if ABS(Zn) > 2 then that C is not in the Mandelbrot set. Generating the image: So we have a area (with some dimension) to plot the pattern. This area will contain pixels. For example the plot area may contain 800x800 pixels.

Furthermore, we need to select a region from the complex plane. Typically this region would be small compared to the plot area and will not start from (0,0). We call this region the complex region. To plot the image, we need to decide the colour of each pixel in the plot area. For this, we take a pixel, map it to a complex number in the complex region. Then we see if that complex number is in the Mandelbrot set or not. If it is we give it a colour, say black. If it is not in the Mandelbrot set then we assign the pixel a colour based on how fast the series diverged. For doing this you can simply count the number of iterations required to ABS(Z) to grow beyond 2. It the number of iterations are small it is diverging rapidly otherwise slowly. Programming: To implement this you are given a skeleton code. Your first task is to read and understand the code. One you have understood how it is done you can start the implementation. For the implementation you will need complex numbers and 2D points. You should implement them in separate classes as suggested by the skeleton code. You need a way of mapping a 2D point (from the plot area) to the complex plane. You know the dimensions of the plot area and the boundaries of the complex plane. Based on these information you should develop a method to do this mapping. Next comes the testing of a given complex number to see if it belongs to the Mandelbrot set. If it does belong then, Zn+1 = Zn2+ C should be bounded when n reach infinity. We cannot perform this computation till n reach infinity. So we define a upper limit ( maxit). We ABS(Zn) stays below 2 for that many iterations then we assume that C is in the Mandelbrot set. If not we assign the corresponding pixel a colour based on the rate at which the series diverged. Most of the code required for doing the plotting is already in the skeleton done. You are required to read and understand that code with the help of the Java online API reference. Submission: You should submit all the *.java files as a single zip file via Moodle before the deadline. As always you will be given marks for coding logic, correctness and neatness. Additionally you may submit your Mandelbrot plots via Moodle. We will select the best art and award 5 additional marks.

- [E-WEB] Mathematics Story | Talk. 2 | Infinity Concept | Eng. Sarah Hassan KamelUploaded byE-WEB
- QQMNVPUsUploaded byGermán Huerta López
- 13th Oct630pm AlvUploaded byanilkumarpv
- 311Uploaded byErika Medenilla
- ACES 2011 Board RecruitmentUploaded bySherif Eltoukhi
- Ruda Speculative FamilyUploaded byCatecola Denirina
- CV - Channa Mohan JayamuniUploaded byChanna Jayamuni
- New Power FactorUploaded byHaseeb Ahmed Khan
- vol1-28-13Uploaded bymaleckisale
- Notes on Scientific PhilosophyUploaded byMuhammad Azam Khalid
- Pegasus – First Steps Toward a Naturalistic ProgrammingUploaded byAhmad Pujianto
- Xam ScheduleUploaded byRatnesh Kumar Verma
- PlaylistUploaded byCristianaMaria
- Python-ESUploaded byrafael_a
- lcdkeypadUploaded byNadeem Akram
- ch1Uploaded byShama Nauman
- Prat Yu Sh RathoreUploaded bySourabh Sharma
- knknUploaded byFikriFajar
- Examples With LoopsUploaded byAdnan Halapa
- BeeBotsTinkeringBarefootComputing1.pdfUploaded byssdeb
- twohoursofcodesthcprojectproposalUploaded byapi-341190883
- exp 8 prolog.docUploaded byDenny
- threadDump-20180831-160739Uploaded byKiefer Kaiser
- Lecture Slide 8 Design Algorithm With Psuedocode[1]Uploaded bySetor Santito Ammamoo
- f.txtUploaded byVictor Ysaul Mezones Perez
- Teaching Computer StudiesUploaded byadpsss
- q1 2Programming ProcessUploaded byjohnry colmenares
- w32_00Uploaded by1junkie
- cvUploaded byanon-274507
- Programming Techniques 3Uploaded byrvasu8

- Literature Review of PV Panel EmulatorUploaded byEsala Hirumal Senevirathne
- ZXDU58 B121 DC Power System Product DescriptionUploaded byprmngsoluciones
- Lecture 1 intro to am modulationUploaded byEsala Hirumal Senevirathne
- Ring ModulatorUploaded byEsala Hirumal Senevirathne
- Readme en USUploaded byjacey_kinnaird4792
- Battry UPSUploaded byrushi_007
- wiring regulation sri lanka.pdfUploaded byEsala Hirumal Senevirathne
- wiring regulation sri lanka.pdfUploaded byEsala Hirumal Senevirathne
- Treatment Guidelines MalariaUploaded byEsala Hirumal Senevirathne
- Chapter 2 Site Acquisition and ProjectsUploaded byEsala Hirumal Senevirathne
- pv emulator dataUploaded byEsala Hirumal Senevirathne
- 402.docxUploaded byEsala Hirumal Senevirathne
- VCO esalaUploaded byEsala Hirumal Senevirathne
- Analog to Digital ConvertUploaded byluxiaofeng
- exp 4Uploaded byRakesh Kumar
- Tuberculosis and the EyeUploaded byRio_Valent
- CO252-lab6-marks-2013Uploaded byEsala Hirumal Senevirathne
- A/D converterUploaded byBiswajit Debnath
- Tubal PregnancyUploaded byPrasad Dilrukshana
- Chapter10_7thUploaded byPrarit Lamba
- Solutions Probsheet 1 for complex analysisUploaded byEsala Hirumal Senevirathne

- Nosacq 50 Wos2008 PaperUploaded byEduardo Santos
- Anne HuntUploaded bystjeromes
- 5.- Genetic Influences in Human BehaviorUploaded byGuillermo Arriaga
- Hydrodynamics of Gas Solid Fludized BedUploaded bysourav ghosh
- The Central Bank' Dilemma...Uploaded bysociatte
- Solid Triangle CentroidsUploaded byhamed
- Collective BargainingUploaded byAnchal Chhabra
- Diagnosis and Treatment of Fungal Infections-(2015).pdfUploaded bygaedprietlz25
- 09-08-13 Sturgeon v La County (BC351286) at the Los Angeles Superior Court - #15- Dr Zernik's Motions Vol II Part8b p641-32-678Uploaded byHuman Rights Alert - NGO (RA)
- sao evidence programmingUploaded byapi-376826833
- sources_of_the_law.pdfUploaded byAmit
- App-V Application Publishing and Client InteractionUploaded byuserfrominternet
- 459244.IJ2 8 Suceska Study of Mechanical Proeprties of DB Naturaly Aged CEJM 10Uploaded byyarara
- Hr Policies of PtclUploaded byZeeshan Ashraf
- Anmol Hyundai NehaUploaded byAmit Pasi
- Explanation of Atisha's Lamp for the Path to Enlightenment Part 4Uploaded byalbertmelondi
- Edgar Rice Burroughs - Jungle Tales of TarzanUploaded byjoshbuchanan
- Adopting an Unrecognized Illegitimate ChildUploaded byyurets929
- Requirement of PEngUploaded bynisargo
- ASCE003c01_p01-04.pdfUploaded byOscar De los Santos
- How Well Do Subnational Borrowing Regulations Work?Uploaded byADBI Publications
- PharmacognosyUploaded byAn Lo
- Eco Revision 22, 23 FebruaryUploaded bysil
- SAUER_DANFOSS_axial_piston_motors_series_S40_catalogue_2007_en.pdfUploaded byМихаил Омельчук
- Cluster.pptUploaded byShashank Gangadharabhatla
- A Bird Came DownUploaded bylichousing
- The Jewish MonthUploaded byenglishhairul
- ContentUploaded bytootlajos
- Gender Check Catalogue MilevskaUploaded bySuzana Milevska
- case study- chris sizemoreUploaded byapi-302708462