10 views

Uploaded by Esala Hirumal Senevirathne

mandelbrot

- 6th Density Sirius Energy
- Whittle - Infinite Size
- 2nd Renaissance
- Alain Badiou, Hegel
- Graphic devices and colors
- 20180503_23
- Infinite Elements for 3 Dimensional Wave — Structure Interaction Problems 1992
- Final-Fall 2015 V4
- Nagoor Kani - Control System Engineering
- VB Assignment
- A Parametric Programming Technique for Efficient CNC Machining Op.pdf
- A timeless Universe
- Phil Princ of Natural Religion Cheyne
- 01-EEE123 Course Intro
- bapi for po
- Software Testing and Test Coverage
- Rahul Teotia
- Interest Tables
- Algorithms for Big Data (CS 229r)
- lec3

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.

- 6th Density Sirius EnergyUploaded byEnoch Gandhislilbrother Abraham
- Whittle - Infinite SizeUploaded byLaaangstonHUGHES
- 2nd RenaissanceUploaded byIgua
- Alain Badiou, HegelUploaded byOxanaTimofeeva
- Graphic devices and colorsUploaded byrajesh1158
- 20180503_23Uploaded byTrex Mee
- Infinite Elements for 3 Dimensional Wave — Structure Interaction Problems 1992Uploaded bycisco
- Final-Fall 2015 V4Uploaded bymusmankhan
- Nagoor Kani - Control System EngineeringUploaded byVinu Kohli
- VB AssignmentUploaded byAashish Singh
- A Parametric Programming Technique for Efficient CNC Machining Op.pdfUploaded bypocerillo
- A timeless UniverseUploaded byAlfonso Orellana
- Phil Princ of Natural Religion CheyneUploaded byhayesw
- 01-EEE123 Course IntroUploaded byTeo Pui Kuan
- bapi for poUploaded byitkishorkumar
- Software Testing and Test CoverageUploaded by5ong
- Rahul TeotiaUploaded byChantelle Harper
- Interest TablesUploaded bytestaccount
- Algorithms for Big Data (CS 229r)Uploaded byAditya
- lec3Uploaded byAtiqMarwat
- Busy Man DickyUploaded bydickykaisar
- Plaxout _ Calculation InformationUploaded byCandra Saputro
- Training SetUploaded byStefano Franchini
- Sad Lec19, 20 & 21_system Implementation & Maintenance (1)Uploaded byNeeta Chanderwal
- RailwayUploaded byKrishna Shetty
- The Repository Information SystemUploaded byGangi Reddy
- 8 CodeUploaded bysamygamal
- adjava 1-6Uploaded byAkshay Mehta
- Enhanced+Search+Widget+URL+Search+ConfigurationUploaded byKarim El Maanani
- BCAE-602C (2)Uploaded bykaushik4end

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

- verbe neregulate.docxUploaded byovidiu0702
- Call Center ManagementUploaded byShekhar Imvu
- Aucassin and NicoletteUploaded byljubich
- Project Proposal FormUploaded byYahye Abdillahi
- New Ddl Week 6- July 24-28Uploaded byJosenia Constantino
- Auto Invoice InterfaceUploaded bydeba11sarangi
- Theory of Automata Chapter 2 slidesUploaded byembers pogger
- Implementing Dynamic InterfacesUploaded bymartinsnihur-1
- Improve Your PunctuationUploaded bymrokela
- ODI Integration With OBIEEUploaded byprakashrbv
- discussion forum week 11Uploaded byapi-201648540
- poetry tick tack toe choices - rightsUploaded byapi-266085662
- unit plan sample strongeUploaded byapi-285604241
- HowToWriteAThesis ManualUploaded byAmerica Chavez
- Sap Ittoolbox Com Groups Technical Functional Sap Acct WithhUploaded byAmaranathreddy Yg
- Questions ABAP examenUploaded bymeny212
- VHow to Build an Accelerometer CircuitUploaded byarchumeenabalu
- User Requirement SpecificationUploaded bygigichung1
- Kundera,Milan - The Art of the NovelUploaded byMohsen Masoomi
- No No to Greek Three LettersUploaded bycharitaparham
- Playing a Windows Media WMV File on a Share Point SiteUploaded byJennifer
- Nota CodingUploaded byNorazizah Nawir
- Grade 7 CRCT Study GuideUploaded bylterrell302
- Workflow Management SystemUploaded bysdg0808
- KKS Classification SystemUploaded byMathivanan Anbazhagan
- EDI Implementation Guide - InVOIC UN D96AUploaded byget_2gether
- KVS PGT Computer Science SyllabusUploaded byVijay Vikram Singh
- Coe docUploaded bya
- D3.3 Semantic Booster v1.0Uploaded bygkout
- ArticlesUploaded byNarendra Babu Katta