{"id":18745002,"url":"https://github.com/rkstudio585/advanced_calculator","last_synced_at":"2025-08-01T04:18:18.060Z","repository":{"id":256885396,"uuid":"850393472","full_name":"rkstudio585/Advanced_calculator","owner":"rkstudio585","description":"Advanced Python Calculator: A versatile calculator with features including basic arithmetic, advanced math functions, matrix operations, polynomial calculations, integration, differentiation, statistical analysis, and function plotting. Ideal for educational and practical use, offering a comprehensive set of tools for various mathematical needs.","archived":false,"fork":false,"pushed_at":"2024-09-01T02:33:36.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-28T20:14:27.461Z","etag":null,"topics":["advanced","advanced-calculate-program","calculate","programming","python"],"latest_commit_sha":null,"homepage":"https://github.com/mdriyadkhan585/Advanced_calculator","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/rkstudio585.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-08-31T16:40:24.000Z","updated_at":"2024-09-01T02:33:39.000Z","dependencies_parsed_at":"2024-09-13T16:23:17.916Z","dependency_job_id":"7524e7bc-dcd3-40ec-b9e1-eaaaea3e32ab","html_url":"https://github.com/rkstudio585/Advanced_calculator","commit_stats":null,"previous_names":["rkstudio585/advanced_calculator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkstudio585%2FAdvanced_calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkstudio585%2FAdvanced_calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkstudio585%2FAdvanced_calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkstudio585%2FAdvanced_calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rkstudio585","download_url":"https://codeload.github.com/rkstudio585/Advanced_calculator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239627247,"owners_count":19670844,"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","advanced-calculate-program","calculate","programming","python"],"created_at":"2024-11-07T16:16:34.213Z","updated_at":"2025-02-19T08:52:27.322Z","avatar_url":"https://github.com/rkstudio585.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advanced Python Calculator\n[In C script](https://github.com/mdriyadkhan585/Advanced-calculator-C)\n![Logo](logo.svg)\n\n---\n## Overview\n\nThis Python calculator script is a powerful tool that supports a wide range of mathematical operations. It includes basic arithmetic calculations, advanced mathematical functions, matrix operations, polynomial calculations, integration, differentiation, statistical analysis, and function plotting. This README provides a detailed guide on the usage, features, and code structure of the calculator.\n\n## Features\n\n1. **Basic Arithmetic Operations**\n   - Addition\n   - Subtraction\n   - Multiplication\n   - Division\n   - Exponentiation\n\n2. **Advanced Mathematical Functions**\n   - Square Root\n   - Factorial\n   - Trigonometric Functions (sin, cos, tan, asin, acos, atan)\n\n3. **Matrix Operations**\n   - Addition\n   - Subtraction\n   - Multiplication\n   - Determinant Calculation\n   - Matrix Inversion\n   - Eigenvalues Calculation\n\n4. **Polynomial Operations**\n   - Evaluation of Polynomials\n   - Finding Roots of Polynomials\n\n5. **Integration and Differentiation**\n   - Definite Integration of Functions\n   - Differentiation of Functions\n\n6. **Statistical Analysis**\n   - Mean\n   - Median\n   - Variance\n   - Standard Deviation\n\n7. **Function Plotting**\n   - Visualize Functions Using Matplotlib\n\n## Prerequisites\n\nTo run this script, you need Python and several Python libraries installed:\n\n- `numpy`\n- `scipy`\n- `matplotlib`\n\nInstall these libraries using pip:\n\n```bash\npip install numpy scipy matplotlib\n```\n```bash\ngit clone https://github.com/mdriyadkhan585/Advanced_calculator\ncd Advanced_calculator\n```\n\n## How to Use\n\n1. **Run the Script**: Execute the script in your Python environment.\n\n   ```bash\n   python simple-calculator.py\n   python level-calculator.py\n   python next-level-calculator.py\n   python advanced-calculator.py\n   python pro-calculator.py\n   ```\n\n2. **Select an Operation**: Choose from the operations listed in the menu.\n\n3. **Provide Inputs**: Follow the prompts to enter the required values.\n\n4. **View Results**: The results will be displayed based on the operation chosen.\n\n## Program Description\n\n### Basic Arithmetic Operations\n\n- **Addition**: `add(x, y)` - Returns the sum of `x` and `y`.\n- **Subtraction**: `subtract(x, y)` - Returns the difference between `x` and `y`.\n- **Multiplication**: `multiply(x, y)` - Returns the product of `x` and `y`.\n- **Division**: `divide(x, y)` - Returns the quotient of `x` divided by `y`, handling division by zero.\n- **Exponentiation**: `exponent(x, y)` - Returns `x` raised to the power of `y`.\n\n### Advanced Mathematical Functions\n\n- **Square Root**: `square_root(x)` - Computes the square root of `x`, with error handling for negative inputs.\n- **Factorial**: `factorial(x)` - Computes the factorial of `x`, with validation for non-integer and negative inputs.\n- **Trigonometric Functions**: \n  - `trig_sin(x)` - Returns the sine of angle `x` (in degrees).\n  - `trig_cos(x)` - Returns the cosine of angle `x` (in degrees).\n  - `trig_tan(x)` - Returns the tangent of angle `x` (in degrees).\n  - `trig_asin(x)` - Returns the arc sine of `x` (domain: [-1, 1]).\n  - `trig_acos(x)` - Returns the arc cosine of `x` (domain: [-1, 1]).\n  - `trig_atan(x)` - Returns the arc tangent of `x`.\n\n### Matrix Operations\n\n- **Addition**: `matrix_operations()` - Adds two 2x2 matrices.\n- **Subtraction**: `matrix_operations()` - Subtracts one 2x2 matrix from another.\n- **Multiplication**: `matrix_operations()` - Multiplies two 2x2 matrices.\n- **Determinant Calculation**: `matrix_operations()` - Computes the determinant of a 2x2 matrix.\n- **Matrix Inversion**: `matrix_operations()` - Computes the inverse of a 2x2 matrix, with error handling for singular matrices.\n- **Eigenvalues Calculation**: `matrix_operations()` - Finds the eigenvalues of a 2x2 matrix.\n\n### Polynomial Operations\n\n- **Evaluation**: `polynomial_operations()` - Evaluates a polynomial at a given value of `x`.\n- **Finding Roots**: `polynomial_operations()` - Finds the roots of a polynomial using its coefficients.\n\n### Integration and Differentiation\n\n- **Integration**: `function_integration()` - Computes the definite integral of a user-defined function over a specified interval.\n- **Differentiation**: `function_differentiation()` - Computes the derivative of a user-defined function.\n\n### Statistical Analysis\n\n- **Mean**: `statistical_operations()` - Calculates the mean of a dataset.\n- **Median**: `statistical_operations()` - Calculates the median of a dataset.\n- **Variance**: `statistical_operations()` - Calculates the variance of a dataset.\n- **Standard Deviation**: `statistical_operations()` - Calculates the standard deviation of a dataset.\n\n### Function Plotting\n\n- **Plotting**: `plot_function()` - Plots a user-defined mathematical function over a specified range.\n\n## Code Structure\n\n1. **Function Definitions**: Contains functions for all the operations mentioned.\n2. **Menu System**: Provides an interactive menu for users to select operations.\n3. **Input Handling**: Prompts the user for inputs and processes them accordingly.\n4. **Error Handling**: Includes error handling for invalid inputs and mathematical errors.\n5. **Plotting**: Uses `matplotlib` to generate plots for visual representation of functions.\n\n## Example\n\n1. **Run the script** using `python calculator.py`.\n2. **Choose an Operation**: For example, select `1` for addition.\n3. **Enter Numbers**: Provide two numbers when prompted.\n4. **View Results**: The result of the addition will be displayed.\n\n## Contribution\n\nContributions are welcome! If you have suggestions for new features or improvements, please open an issue or submit a pull request.\n\n## Acknowledgements\n\n- **NumPy**: For numerical computations.\n- **SciPy**: For scientific and technical computing.\n- **Matplotlib**: For plotting and visualization.\n\n\n### Instructions:\n\n- **Installation**: Ensure that `numpy`, `scipy`, and `matplotlib` are installed in your Python environment.\n- **Running the Script**: Save the Python code in a file named `calculator.py` and execute it.\n- **Using the Calculator**: Follow the interactive prompts to perform various mathematical operations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkstudio585%2Fadvanced_calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frkstudio585%2Fadvanced_calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkstudio585%2Fadvanced_calculator/lists"}