An interactive application that allows users to draw mathematical expressions and get them solved using AI. The application uses Google's Gemini AI for mathematical expression recognition and solving.
- Draw mathematical expressions on a canvas
- Real-time recognition and solving of expressions
- Support for variables and equations
- Clean and intuitive user interface
- Responsive design that works on different screen sizes
- Node.js (v16 or later)
- npm or yarn
- Python 3.8+ (for the backend)
- Google Gemini API key
-
Clone the repository:
git clone https://github.com/your-username/math-notes.git cd math-notes -
Install frontend dependencies:
cd calculator npm install -
Set up the backend:
cd ../calculator_backend python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -r requirements.txt
-
Create a
.envfile in thecalculator_backenddirectory with your Gemini API key:GEMINI_API_KEY=your_api_key_here
-
Start the backend server:
cd calculator_backend python main.py -
In a new terminal, start the frontend development server:
cd calculator npm run dev -
Open your browser and navigate to
http://localhost:5173
- Use your mouse or touch screen to draw mathematical expressions on the canvas
- Click the "Run" button to process the expression
- The solution will appear on the canvas
- Use the color picker to change the drawing color
- Click "Reset" to clear the canvas
- React - Frontend library
- TypeScript - Type checking
- Vite - Build tool
- Tailwind CSS - Styling
- MathJax - Math rendering
- FastAPI - Backend framework
- Google Gemini - AI model for math recognition
This project is licensed under the MIT License - see the LICENSE file for details.