Skip to main content

Welcome to AI Math Notes

AI Math Notes is an interactive drawing application that lets you write mathematical equations by hand and instantly get AI-calculated results. Simply draw your equation, add an equals sign, and watch as GPT-4o recognizes your handwriting and places the answer right where you need it. Inspired by Apple’s “Math Notes” demo from WWDC 2024, this application combines the natural feel of handwriting with the power of multimodal AI.

Installation

Set up AI Math Notes in minutes with Python and OpenAI API

Quick Start

Draw and calculate your first equation in under 60 seconds

GitHub Repository

Explore the source code and contribute to the project

License

Open source under MIT License - free for personal and commercial use

Key Features

Natural Handwriting Input

Draw equations directly on a digital canvas using your mouse or touchpad. The black canvas with white drawing provides clear contrast for optimal handwriting recognition.

AI-Powered Calculation

Powered by OpenAI’s GPT-4o multimodal model, the application reads your handwritten equations and calculates results with impressive accuracy. The AI understands mathematical notation and solves expressions ranging from simple arithmetic to complex equations.

Intelligent Answer Placement

Results appear automatically next to the equals sign in orange, maintaining the natural flow of your work. The application detects unsolved equations (equals signs with nothing to the right) and places answers precisely where they belong.

Intuitive Controls

Clear

Reset the entire canvas for a fresh start

Undo

Use Cmd/Ctrl+Z to remove your last stroke

Calculate

Press Enter or click to solve the equation

How It Works

  1. Draw - Use your mouse to write a mathematical equation on the canvas
  2. Add Equals - End your equation with an equals sign (this must be the last thing you draw)
  3. Calculate - Press Enter or click the Calculate button
  4. Get Results - The AI reads your handwriting, solves the equation, and displays the answer in orange
The equals sign must be the last element you draw before calculating. This helps the application know exactly where to place the answer.

Technology Stack

AI Math Notes is built with:
  • Python - Core application logic
  • Tkinter - Graphical user interface framework
  • PIL (Pillow) - Image processing and canvas rendering
  • OpenAI GPT-4o - Multimodal LLM for handwriting recognition and calculation

What’s Next?

Ready to start calculating? Head over to the Installation guide to set up your environment, or jump straight to the Quick Start tutorial to see it in action.

Build docs developers (and LLMs) love