{"id":26287246,"url":"https://github.com/optimized-brain/scientific-calculator","last_synced_at":"2025-03-14T21:19:20.678Z","repository":{"id":279425506,"uuid":"938752688","full_name":"Optimized-Brain/Scientific-Calculator","owner":"Optimized-Brain","description":"A Scientific Calculator with Graphing and advanced mathematical calculation capabilities ","archived":false,"fork":false,"pushed_at":"2025-03-05T11:17:01.000Z","size":129,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T11:35:57.487Z","etag":null,"topics":["advanced-mathematics","customtkinter","fourier-transform","interactive-graphing","latex-rendering","mpmath","ode-solver","python","scientific-calculator","symbolic-math","sympy"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Optimized-Brain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-25T12:56:18.000Z","updated_at":"2025-03-05T11:17:04.000Z","dependencies_parsed_at":"2025-03-03T18:32:29.606Z","dependency_job_id":null,"html_url":"https://github.com/Optimized-Brain/Scientific-Calculator","commit_stats":null,"previous_names":["optimized-brain/scientific-calculator-with-graphing-and-advanced-ui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optimized-Brain%2FScientific-Calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optimized-Brain%2FScientific-Calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optimized-Brain%2FScientific-Calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optimized-Brain%2FScientific-Calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Optimized-Brain","download_url":"https://codeload.github.com/Optimized-Brain/Scientific-Calculator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243646698,"owners_count":20324587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advanced-mathematics","customtkinter","fourier-transform","interactive-graphing","latex-rendering","mpmath","ode-solver","python","scientific-calculator","symbolic-math","sympy"],"created_at":"2025-03-14T21:19:20.081Z","updated_at":"2025-03-14T21:19:20.664Z","avatar_url":"https://github.com/Optimized-Brain.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# Scientific Calculator with Graphing and Advanced UI\n\nThis repository contains a Python-based scientific calculator application featuring a modern, dark-themed interface built using [CustomTkinter](https://github.com/TomSchimansky/CustomTkinter). It supports evaluation of complex mathematical expressions, dynamic function graphing, custom shift mapping for digit buttons, and full keyboard input support.\n\n## Features\n\n- **Modern UI**: A sleek, dark-themed interface built with CustomTkinter.\n- **Mathematical Evaluation**: Supports arithmetic operations, trigonometric functions (`sin`, `cos`, `tan`), logarithms (`log`, `ln`), exponentiation, square roots, and more.\n- **Graphing Capabilities**: Dynamically plot functions (e.g., polynomials, trigonometric functions, exponentials) using Matplotlib.\n- **Shift Mapping**: Digit buttons display an extra character (e.g., `7 (x)`) for shift mode. When shift is toggled on, pressing a digit inserts the corresponding letter instead.\n- **Keyboard Input Support**: Use your keyboard to input expressions. Special keys:\n  - **Enter**: Evaluate the expression.\n  - **Backspace**: Delete the last character.\n  - **Escape**: Clear the current expression.\n- **Dynamic Graph Options**: Specify the x-axis range and variable to plot the graph for any valid mathematical function.\n\n- ![Main Interface](./Calculator.jpg)\n\n## Installation\n\nEnsure you have Python 3.x installed, then install the required packages:\n\n```bash\npip install customtkinter mpmath numpy matplotlib sympy\n```\n\n## Usage\n\n1. **Clone the Repository:**\n\n   ```bash\n   git clone https://github.com/Optimized-Brain/scientific-calculator.git\n   cd scientific-calculator\n   ```\n\n2. **Run the Application:**\n\n   ```bash\n   python calculator.py\n   ```\n\n3. **Using the Calculator:**\n\n   - **Buttons:** Click on the on-screen buttons to build your expression. For digit buttons, the displayed text shows both the digit and its shift-mapped letter (e.g., `7 (x)`).\n   - **Shift Mode:** Toggle shift mode by clicking the \"Shift On/Shift Off\" button. When activated, pressing a digit will insert its mapped letter.\n   - **Keyboard Support:** You can also type on your keyboard:\n     - **Enter**: Evaluates the current expression.\n     - **Backspace**: Deletes the last character.\n     - **Escape**: Clears the expression.\n\n4. **Graphing Functions:**\n\n   - Build your function expression (e.g., `tan(x)`, `x**2 + 3*x + 2`, `sin(x)`).\n   - Click the **Graph** button or \"ctrl+g\" command.\n   - In the graph options window, set:\n     - **X min / X max:** The range for the x-axis.\n     - **Variable:** The variable in your expression (default is `x`).\n   - Click **Plot Graph** to display the function's graph.\n\n  ![Graph Interface](./GraphSS.jpg)\n\n## Contributing\n\nContributions are welcome! Feel free to open an issue or submit a pull request if you have improvements, bug fixes, or new features.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptimized-brain%2Fscientific-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptimized-brain%2Fscientific-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptimized-brain%2Fscientific-calculator/lists"}