{"id":34636755,"url":"https://github.com/0xarchit/scientific-calculator","last_synced_at":"2026-06-01T07:31:35.187Z","repository":{"id":288278616,"uuid":"967463993","full_name":"0xarchit/scientific-calculator","owner":"0xarchit","description":"A mini scientific calculator - made in python using tkinter","archived":false,"fork":false,"pushed_at":"2025-04-17T16:54:29.000Z","size":49,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T06:00:14.281Z","etag":null,"topics":["calculator-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xarchit.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-16T13:48:35.000Z","updated_at":"2025-12-10T05:24:01.000Z","dependencies_parsed_at":"2025-04-21T05:18:13.077Z","dependency_job_id":null,"html_url":"https://github.com/0xarchit/scientific-calculator","commit_stats":null,"previous_names":["0xarchit/scientific-calculator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0xarchit/scientific-calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xarchit%2Fscientific-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xarchit%2Fscientific-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xarchit%2Fscientific-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xarchit%2Fscientific-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xarchit","download_url":"https://codeload.github.com/0xarchit/scientific-calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xarchit%2Fscientific-calculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33765378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["calculator-python"],"created_at":"2025-12-24T17:02:33.011Z","updated_at":"2026-06-01T07:31:35.170Z","avatar_url":"https://github.com/0xarchit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scientific Calculator with History Log and Theme Toggle\n\n## Project Description\nThis project is a full-featured scientific calculator built with Python and Tkinter. It provides both basic arithmetic operations and advanced scientific functions with an elegant user interface that includes a history log and dark/light mode toggle.\n\n## Table of Contents\n1. [Introduction](#introduction)\n2. [Features](#features)\n3. [Technologies Used](#technologies-used)\n4. [Installation](#installation)\n5. [Usage](#usage)\n6. [Screenshots](#screenshots)\n7. [Implementation Details](#implementation-details)\n8. [Workflow Diagram](#workflow-diagram)\n9. [Future Work](#future-work)\n10. [Contributing](#contributing)\n11. [License](#license)\n\n## Introduction\nThis calculator application was designed to provide a comprehensive yet user-friendly tool for performing mathematical calculations. It combines the simplicity of a basic calculator with the power of scientific functions, all wrapped in a modern and customizable interface.\n\n## Features\n- Basic arithmetic operations (addition, subtraction, multiplication, division)\n- Scientific functions (sin, cos, tan, log, ln, square root, powers)\n- Mathematical constants (π, e)\n- Interactive history log that records all calculations\n- Dark/Light theme toggle for user preference\n- Clean and responsive user interface\n- Error handling for invalid expressions\n- Keyboard input support for efficient calculations\n\n## Technologies Used\n- Python 3.13\n- Tkinter (GUI library)\n- Math module for scientific operations\n- Object-Oriented Programming principles\n\n## Installation\nTo run this calculator application, ensure you have Python installed on your system:\n\n```bash\n# Clone the repository (if applicable)\ngit clone https://github.com/0xarchit/scientific-calculator.git\n\n# Navigate to the project directory\ncd scientific-calculator\n\n# Run the application\npython main.py\n```\n\nNo additional dependencies are required as Tkinter is included in standard Python installations.\n\n## Usage\n1. **Basic Operations**: Click on the digit buttons and operators to build expressions\n2. **Scientific Functions**: Use sin, cos, tan, log, etc. for advanced calculations\n3. **History**: Review past calculations in the history panel on the left\n4. **Theme Toggle**: Switch between dark and light modes using the toggle button\n5. **Clear/Delete**: Use 'C' to clear the current expression or '⌫' to delete the last character\n6. **Keyboard Input**: Use your keyboard for faster input:\n   - Number keys (0-9) for digits\n   - Standard operators (+, -, *, /)\n   - Enter key to evaluate expressions\n   - Backspace to delete last character\n   - Escape key to clear the expression\n   - Keyboard shortcuts for functions: 's' for sin, 'c' for cos, etc.\n\n### Example Operations:\n- Basic arithmetic: `5 + 7 = 12`\n- Using constants: `2 × π = 6.283185307179586`\n- Scientific functions: `sin(π/2) = 1.0`\n- Combined operations: `3 × (4 + 5) = 27`\n\n## Screenshots\n![Dark Mode](assets/dark_mode.png)\n![Light Mode](assets/light_mode.png)\n\n## Implementation Details\nThe calculator is implemented using object-oriented programming with the following key components:\n\n- **Main Application Class**: Manages the overall application state and UI\n- **Display System**: Shows the current expression and calculation results\n- **Button Grid**: Organized layout for digits, operators, and functions\n- **Calculation Engine**: Evaluates mathematical expressions safely\n- **History System**: Records and displays calculation history\n- **Theme Manager**: Handles switching between dark and light color schemes\n- **Keyboard Handler**: Processes keyboard events for direct input\n\n## Workflow Diagram\n\nBelow is a diagram illustrating the workflow of the calculator application:\n\n```mermaid\nflowchart TD\n    A[User Input] --\u003e|Button Click/Keyboard Press| B[Input Handler]\n    B --\u003e C{Input Type?}\n    C --\u003e|Number/Operator| D[Add to Expression]\n    C --\u003e|Function| E[Add Function to Expression]\n    C --\u003e|Equals| F[Evaluate Expression]\n    C --\u003e|Clear/Delete| G[Modify Expression]\n    C --\u003e|Theme Toggle| H[Switch Theme]\n    D --\u003e I[Update Display]\n    E --\u003e I\n    F --\u003e J[Process Calculation]\n    J --\u003e K[Format Result]\n    K --\u003e L[Update History]\n    L --\u003e I\n    G --\u003e I\n    H --\u003e M[Apply Theme Settings]\n    M --\u003e I\n```\n\n## Future Work\n- Add memory functions (M+, M-, MR, MC)\n- Implement unit conversion capabilities\n- Support for more complex mathematical functions\n- Ability to save calculation history to a file\n- Add scientific notation support\n- Implement bracket matching and syntax highlighting\n- Create a mobile-friendly responsive design\n\n## Contributing\nContributions to improve the calculator are welcome. Please follow these steps:\n\n1. Fork the repository\n2. Create a new branch (`git checkout -b feature-branch`)\n3. Make your changes\n4. Commit your changes (`git commit -m 'Add new feature'`)\n5. Push to the branch (`git push origin feature-branch`)\n6. Open a Pull Request\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/0xarchit/scientific-calculator?tab=MIT-1-ov-file#) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xarchit%2Fscientific-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xarchit%2Fscientific-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xarchit%2Fscientific-calculator/lists"}