{"id":25256737,"url":"https://github.com/aryanvbw/scientific-calculator","last_synced_at":"2025-10-15T23:39:31.832Z","repository":{"id":265072414,"uuid":"895048674","full_name":"AryanVBW/Scientific-Calculator","owner":"AryanVBW","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-27T14:21:02.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T00:23:08.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/AryanVBW.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":"2024-11-27T13:20:03.000Z","updated_at":"2024-11-27T14:21:06.000Z","dependencies_parsed_at":"2024-11-27T14:38:43.168Z","dependency_job_id":null,"html_url":"https://github.com/AryanVBW/Scientific-Calculator","commit_stats":null,"previous_names":["aryanvbw/scientific-calculator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AryanVBW/Scientific-Calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AryanVBW%2FScientific-Calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AryanVBW%2FScientific-Calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AryanVBW%2FScientific-Calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AryanVBW%2FScientific-Calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AryanVBW","download_url":"https://codeload.github.com/AryanVBW/Scientific-Calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AryanVBW%2FScientific-Calculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272008783,"owners_count":24857658,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"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":[],"created_at":"2025-02-12T06:21:16.963Z","updated_at":"2025-10-15T23:39:26.797Z","avatar_url":"https://github.com/AryanVBW.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scientific Calculator\n\nA command-line scientific calculator implemented in C with support for both Windows and macOS.\n\n## Features\n\n- Basic arithmetic operations (Addition, Subtraction, Multiplication, Division)\n- Scientific functions:\n  - Square root\n  - Power function\n  - Trigonometric functions (sin, cos, tan)\n  - Natural logarithm\n  - Factorial\n- Error handling for invalid inputs\n- Clear and intuitive menu interface\n\n## Requirements\n\n### For Windows\n- MinGW GCC Compiler or Visual Studio\n- Command Prompt or PowerShell\n\n### For macOS\n- Xcode Command Line Tools (includes GCC)\n- Terminal\n\n## Installation\n\n### Windows\n\n1. Install MinGW:\n   - Download MinGW installer from [MinGW website](https://mingw-w64.org/doku.php)\n   - Run the installer and select gcc compiler\n   - Add MinGW to system PATH\n\n2. Verify installation:\n   ```cmd\n   gcc --version\n   ```\n\n### macOS\n\n1. Install Xcode Command Line Tools:\n   ```bash\n   xcode-select --install\n   ```\n\n2. Verify installation:\n   ```bash\n   gcc --version\n   ```\n\n## Compilation Instructions\n\n### Windows\n\n1. Open Command Prompt\n2. Navigate to the calculator directory:\n   ```cmd\n   cd path\\to\\calculator\n   ```\n3. Compile the program:\n   ```cmd\n   gcc scientific_calc.c -o calculator.exe -lm\n   ```\n\n### macOS\n\n1. Open Terminal\n2. Navigate to the calculator directory:\n   ```bash\n   cd path/to/calculator\n   ```\n3. Compile the program:\n   ```bash\n   gcc scientific_calc.c -o calculator -lm\n   ```\n\n## Running the Calculator\n\n### Windows\n```cmd\ncalculator.exe\n```\n\n### macOS\n```bash\n./calculator\n```\n\n## Usage Instructions\n\n1. When you run the calculator, you'll see a menu with numbered options (1-12)\n2. Enter the number corresponding to your desired operation\n3. Follow the prompts to enter numbers\n4. View the result\n5. Press any key to continue to the next calculation\n6. Select option 12 to exit the program\n\n## Available Operations\n\n1. Addition\n2. Subtraction\n3. Multiplication\n4. Division\n5. Square root\n6. Power\n7. Sine\n8. Cosine\n9. Tangent\n10. Natural logarithm\n11. Factorial\n12. Exit\n\n## Input Guidelines\n\n- For basic arithmetic: Enter two numbers when prompted\n- For trigonometric functions: Enter angle in degrees\n- For square root: Enter a non-negative number\n- For logarithm: Enter a positive number\n- For factorial: Enter a non-negative integer\n- For power: Enter base and exponent when prompted\n\n## Error Handling\n\nThe calculator handles various error cases:\n- Division by zero\n- Negative numbers for square root\n- Invalid inputs for logarithm\n- Invalid inputs for factorial\n- General invalid inputs\n\n## Troubleshooting\n\n### Windows\nIf you get 'gcc not recognized':\n1. Verify MinGW is installed\n2. Check if gcc is in system PATH\n3. Try reopening Command Prompt\n\n### macOS\nIf you get 'command not found':\n1. Verify Xcode Command Line Tools installation\n2. Try running:\n   ```bash\n   xcode-select --install\n   ```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faryanvbw%2Fscientific-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faryanvbw%2Fscientific-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faryanvbw%2Fscientific-calculator/lists"}