technifyed

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

My projects

Overview

Draw the Koch snowflake, Sierpinski triangle and Mandelbrot set and measure a fractal dimension.

Skills you will use

Complex numbersPlottingRecursion

Materials and tools

  • Computer with Python

Tools and software

MatplotlibPython

Expected cost₹0Nothing to buy
Estimated duration2–7 days5 build steps, plus the report

Step-by-step roadmap

  1. Start

    You will finish with: three fractal images and a calculated fractal dimension.

  2. 1

    Prerequisites

    Nothing special to know first. Then collect the 1 item in the materials list.

  3. 2

    Learn

    Read up on geometry: fractals, Mandelbrot, recursion. Your textbook chapter and one short video are enough.

  4. 3

    Plan

    List the features for version one, sketch the screens or data flow and pick the tools. Keep the first version small.

  5. 4

    Build

    1. Draw the Koch curve with recursion.
    2. Draw the Sierpinski triangle with the chaos game.
    3. Plot the Mandelbrot set.
    4. Compute the perimeter of the Koch curve at each level.
    5. Estimate its dimension from the scaling.
  6. 5

    Test

    Try it with wrong, empty and unusual input, and ask someone else to use it without your help.

  7. 6

    Document

    Write a README: what it does, how to run it, screenshots and what you learned. Report structure

  8. 7

    Present

    Show a live demo of one complete task, then the design and the hardest problem you solved. Presentation structure

  9. 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.

Report and presentation

Report structure

  1. Title and summary
  2. Problem and target user
  3. Features
  4. Tools and technology
  5. Design: architecture, data model or screens
  6. Implementation
  7. Testing
  8. Results and screenshots
  9. Challenges
  10. Future improvements
  11. References

Presentation structure

  1. The problem
  2. Who it is for
  3. Live demo
  4. How it is built (one diagram)
  5. The hardest part
  6. Testing and results
  7. What you learned
  8. 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.

  • Easy
  • 2–7 days
  • Under 250
Investigation · Household materialsView

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.

  • Intermediate
  • 2–7 days
  • Under 250
Investigation · Household materialsView

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.

  • Intermediate
  • 2–7 days
  • Free
AI/ML Project · Computer onlyView

Programming + Cybersecurity

Make a file encryption tool

Encrypt and decrypt files with a password using a well-tested library.

  • Intermediate
  • 2–7 days
  • Free
Software Project · Computer onlyView

Systems and Cloud · Networking

Build a chat system on raw sockets

Write a server and client that exchange messages over TCP with several users.

  • Intermediate
  • 2–7 days
  • Free
Software Project · Computer onlyView

Programming · Python

Build a Markdown-to-HTML converter

Write a tool that converts headings, lists, links, bold and code blocks from Markdown to HTML.

  • Intermediate
  • 2–7 days
  • Free
Software Project · Computer onlyView

Two-subject alternatives

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.

  • Intermediate
  • 2–7 days
  • Free
Survey · No equipmentView

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.

  • Intermediate
  • 1–2 weeks
  • Free
Data Analysis · No equipmentView

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.

  • Intermediate
  • 2–7 days
  • Free
Investigation · No equipmentView

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.

  • Intermediate
  • 2–7 days
  • Free
Data Analysis · Computer onlyView

Enter your email and the official page opens. Phone is optional.