Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.46 KB

README.md

File metadata and controls

64 lines (45 loc) · 1.46 KB

GraphCalcML: A Programmable Calculator in OCaml

GraphCalcML is a powerful and programmable calculator built using OCaml. It includes advanced operations and graphing capabilities through gnuplot.


Features

  • Interactive REPL for programmable calculations.
  • Graphing capabilities powered by gnuplot.
  • Optimized for Unix-based systems.

Prerequisites

Before using GraphCalcML, ensure the following are installed on your system:

  • OCaml (available via OCaml's official site or your package manager).
  • gnuplot (for graphing functionalities).

Installation

  1. Clone this repository:
    git clone <repository-url>
    
  2. Navigate to the project directory:
    cd <repository-directory>
    
  3. Build the project:
    make build
    
  4. (Optional) Clean up existing bytecode if necessary:
    rm main.byte
    
  5. Install gnuplot (if not already installed):
  • Ubuntu/Debian:
    sudo apt-get install gnuplot
    
  • macOS:
    brew install gnuplot
    
    

Usage

  1. Run the calculator:

    make calc
    
  2. Access the REPL: Once the calculator is running, you can type commands in the REPL.

  3. Get help: Enter help in the REPL to view all supported operations and commands.

Contributing

We welcome contributions! To get started:

  1. Fork this repository.
  2. Create a new branch for your feature or bug fix.
  3. Commit your changes and push them to your fork.
  4. Open a pull request.