pyBegin / projects / computer-algebra
🔌

Newton CAS Python Wrapper and GUI

This project aims to provide a Python wrapper and GUI for the Newton API, a Computer Algebra System (CAS) that allows users to perform various math…

130 lines🖥 Desktop only

Newton CAS Python Wrapper and GUI

This project aims to provide a Python wrapper and GUI for the Newton API, a Computer Algebra System (CAS) that allows users to perform various mathematical computations. The GUI is built using DearPyGui and Newton API.

Features

Installation

  1. Clone the repository:

    git clone https://github.com/Mrinank-Bhowmick/python-beginner-projects.git
    
  2. Navigate to the project directory:

    cd python-beginner-projects/projects/computer-algebra
    
  3. Install dependencies using pip:

    pip install -r requirements.txt
    

Example

  1. Run python main.py. A DearPyGui window opens with an Input panel (radio buttons for operations and a text field) and an Output panel below it.
  2. Select the derive radio button, type x^3 in the expression field, and click Evaluate. The Output panel displays 3 x^2.
  3. Select integrate, type x^2, and click Evaluate. The Output panel displays 1/3 x^3.
  4. Select factor, type x^2 - 4, and click Evaluate. The Output panel displays (x - 2) (x + 2).

Usage

  1. Run the main script main.py:

    python main.py
    
  2. The application window will appear, consisting of two sections:

    • Input Section: Enter the mathematical expression you want to evaluate.
    • Output Section: View the result of the evaluation.
  3. Choose the desired mathematical operation from the radio buttons.

  4. Enter the expression in the input text box.

  5. Click the "Evaluate" button to perform the selected operation.

  6. The result will be displayed in the output section.

Contact

GitHub Profile

License

License