Pure Mathematics + Programming
Visualise fractals with code
Draw the Koch snowflake, Sierpinski triangle and Mandelbrot set and measure a fractal dimension.
- DifficultyIntermediate
- Estimated time2–7 days
- Budget₹0
- ClassClass 10 to college
- TeamSolo
- You needComputer only
Prerequisites: None beyond your class work
Original · by TechnifyedSoftware ProjectVisualizationFree to doComputer onlyTwo subjects
Overview
Draw the Koch snowflake, Sierpinski triangle and Mandelbrot set and measure a fractal dimension.
Skills you will use
Materials and tools
- Computer with Python
Tools and software
Step-by-step roadmap
Start
You will finish with: three fractal images and a calculated fractal dimension.
- 1
Prerequisites
Nothing special to know first. Then collect the 1 item in the materials list.
- 2
Learn
Read up on geometry: fractals, Mandelbrot, recursion. Your textbook chapter and one short video are enough.
- 3
Plan
List the features for version one, sketch the screens or data flow and pick the tools. Keep the first version small.
- 4
Build
- Draw the Koch curve with recursion.
- Draw the Sierpinski triangle with the chaos game.
- Plot the Mandelbrot set.
- Compute the perimeter of the Koch curve at each level.
- Estimate its dimension from the scaling.
- 5
Test
Try it with wrong, empty and unusual input, and ask someone else to use it without your help.
- 6
Document
Write a README: what it does, how to run it, screenshots and what you learned. Report structure
- 7
Present
Show a live demo of one complete task, then the design and the hardest problem you solved. Presentation structure
- 8
Publish
Put the code on GitHub with the README and, if you can, deploy a live demo.
Expected outcome
Three fractal images and a calculated fractal dimension.
Other versions of this project
Advanced version
Estimate the dimension of a coastline from a map by box counting.
Ways to do this project
Text marked "You write this" is a prompt for your own work; everything else is specific to this project.
Use this as the outline of your README or case study.
- Problem
- You write thisThe problem in one or two sentences.
- Why it matters
- You write thisWho has this problem and what it costs them.
- What was built
- Three fractal images and a calculated fractal dimension.
- Technology
- Matplotlib, Python
- Architecture
- You write thisOne diagram: the parts and how data moves between them.
- Implementation
- You write thisThe 5 build steps in your own words, with one code or design decision you are proud of.
- Challenges
- You write thisThe hardest bug or decision, and how you got past it.
- Results
- You write thisNumbers: accuracy, speed, users, survey answers.
- Demo and code
- You write thisA link to a live demo or a short video, and to the GitHub repository.
- Lessons learned
- You write thisWhat you would do differently next time.
- Future improvements
- Estimate the dimension of a coastline from a map by box counting.
- Problem
- Draw the Koch snowflake, Sierpinski triangle and Mandelbrot set and measure a fractal dimension.
- Target user
- You write thisOne specific person: who they are and when they would use this.
- Solution
- Draw the Koch snowflake, Sierpinski triangle and Mandelbrot set and measure a fractal dimension.
- First version (MVP)
- You write thisThe smallest version that shows the idea working once, end to end.
- Tech stack
- Matplotlib, Python
- Architecture
- You write thisA quick sketch of the parts and how they connect.
- Demo
- You write thisThe one scenario you will show live, start to finish, in under two minutes.
- Stretch goals
- Estimate the dimension of a coastline from a map by box counting.
Team roles
Plan by length
24-hour
- Hours 0–2: agree the problem, the user and the one thing the demo must show
- Hours 2–16: build only the first version
- Hours 16–20: test the demo path end to end and fix what breaks
- Hours 20–24: slides, a 2-minute demo script and a backup recording
48-hour
- Evening 1: problem, user, sketch and task split
- Day 1: first version working end to end
- Day 2 morning: one stretch goal and testing
- Day 2 afternoon: polish, slides and demo practice
1-week
- Day 1: research the problem and talk to two possible users
- Days 2–4: first version
- Day 5: stretch goals
- Day 6: testing and write-up
- Day 7: demo video and presentation
Report and presentation
Report structure
- Title and summary
- Problem and target user
- Features
- Tools and technology
- Design: architecture, data model or screens
- Implementation
- Testing
- Results and screenshots
- Challenges
- Future improvements
- References
Presentation structure
- The problem
- Who it is for
- Live demo
- How it is built (one diagram)
- The hardest part
- Testing and results
- What you learned
- What comes next
Viva questions
Prepare your own answers to these before you present.
- What is the aim of your project, in one sentence?
- What is the principle behind it?
- Why did you choose these materials or tools?
- What result did you get, and was it what you expected?
- What went wrong and how did you fix it?
- How could this be improved or used in real life?
Resources
Source and attribution
Original
Written by Technifyed. Free to use for your own school or college project; write the report in your own words. Added 1 Oct 2026.
Similar projects
More Pure Mathematics projects
Pure Mathematics · Geometry
Prove the Pythagorean theorem five ways
Build paper dissections and algebraic proofs of the theorem and compare how each convinces.
Pure Mathematics + Fine Arts
Explore tessellations and design your own
Find which regular polygons tile the plane and create an Escher-style tile.
Pure Mathematics · Calculus
Find the best shape for a container
Find the dimensions of a can that hold a fixed volume with the least material, and compare with real cans.
Pure Mathematics + Programming
Map your school as a graph and find shortest paths
Model corridors and rooms as a graph and find the fastest route between any two rooms.
Same tools
Artificial Intelligence + Statistics and Probability
Predict house prices with linear regression
Use a public housing dataset to predict price from size, rooms and location.
Programming + Cybersecurity
Make a file encryption tool
Encrypt and decrypt files with a password using a well-tested library.
Systems and Cloud · Networking
Build a chat system on raw sockets
Write a server and client that exchange messages over TCP with several users.
Programming · Python
Build a Markdown-to-HTML converter
Write a tool that converts headings, lists, links, bold and code blocks from Markdown to HTML.
Two-subject alternatives
Programming + Pure Mathematics
Write classic sorting algorithms and race them
Implement bubble, insertion, merge and quick sort and plot how their running time grows.
Behavioural and Cognitive Science + Statistics and Probability
Study how people estimate risk
Ask people to rank causes of death or accidents and compare their ranking with official figures.
Astronomy and Space + Pure Mathematics
Measure the Earth's circumference like Eratosthenes
Measure a stick's shadow at local noon in two cities and calculate the size of the Earth.
Environmental Science + Applied Mathematics
Estimate the carbon stored by a planting drive
Measure young trees from a planting drive and model how much carbon they will store over 20 years.
Same difficulty and budget
Applied Mathematics + Behavioural Economics
Analyse a simple game with game theory
Play repeated prisoner's dilemma with classmates and compare what they do with the theory.
Statistics and Probability · Statistics
Analyse whether a class's exam marks are normally distributed
Plot anonymous marks from several tests and check how well a bell curve describes them.
Applied Mathematics + Finance and Banking
Study the mathematics of loans and EMIs
Derive the EMI formula from a geometric series and build a full repayment schedule.
Applied Mathematics · Operations Research
Use linear programming to plan a diet or a timetable
Formulate a real two-variable problem, solve it graphically and check with a solver.