File size: 2,894 Bytes
65b9102
9fad31f
65b9102
 
9fad31f
 
 
65b9102
 
 
 
9fad31f
65b9102
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c97a12e
 
 
 
 
65b9102
 
 
 
56c08e3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
title: My Streamlit App
emoji: 🧠
colorFrom: blue
colorTo: green
sdk: streamlit
sdk_version: "1.34.0"
app_file: app.py
pinned: false
---


# T5 Small Transformer App

This Space uses the `t5-small` model to perform text-to-text tasks like summarization and translation.

Check out the configuration reference at [Hugging Face Docs](https://huggingface.co/docs/hub/spaces-config-reference)

# Equation2Graph - Interactive Mathematical Equation Visualizer

![Equation2Graph Logo](https://via.placeholder.com/150?text=Equation2Graph)

## Overview

Equation2Graph is an AI-powered web application that allows users to visualize mathematical equations from both symbolic input and natural language descriptions. The app can handle complex equations of any length or complexity, making it accessible for students, educators, and professionals alike.

## Features

- **Natural Language Input**: Describe your equation in plain English
- **Direct Equation Input**: Enter mathematical expressions using standard notation
- **Interactive Visualization**: Real-time graphing with adjustable parameters
- **Complex Equation Support**: Handles a wide range of mathematical functions and operations
- **Save & Share**: Download your visualizations for presentations or assignments
- **Example Library**: Built-in examples to help you get started

## Installation & Setup

### Prerequisites
- Python 3.8 or higher
- pip package manager

### Local Installation

1. Clone the repository:
   ```bash
   git clone https://code.swecha.org/your-username/equation2graph.git
   cd equation2graph
   ```

2. Install dependencies:
   ```bash
   pip install -r requirements.txt
   ```

3. Run the application:
   ```bash
   streamlit run app.py
   ```

4. Open your browser and navigate to the URL displayed in your terminal (typically http://localhost:8501)

## Usage

### Natural Language Input
Type a description of your equation in plain English, for example:
- "the square of x plus two times x plus one"
- "sine of x squared times exponential of negative zero point one times x squared"

### Direct Equation Input
Enter your equation using standard mathematical notation:
- `x^2 + 2*x + 1`
- `sin(x^2)*exp(-0.1*x^2)`
- `(x^4 - 5*x^2 + 4)/(x^2 + 1)`

### Supported Functions
- **Basic operations**: `+`, `-`, `*`, `/`, `^` (power)
- **Trigonometric functions**: `sin`, `cos`, `tan`
- **Exponential and logarithmic**: `exp`, `log`
- **Other**: `sqrt`, `abs`
- **Combinations** of any of the above

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Contributors

- [KARTHIK GARLAPATI] - Project Lead
- [KAVYA GARLAPATI] - AI Engineer
- [RENU SRI] - Frontend Developer
- [SHEETHAL] - Data Scientist
- [KOMALI KIRAN] - UX Designer

## Acknowledgments

- Special thanks to the Streamlit community
- Thanks to Hugging Face for providing free model hosting