A command-line calculator written in Common Lisp that optimizes and modifies itself. This project is a work in progress (WIP), with plans to support a wide range of mathematical functions and operations.
- Basic arithmetic operations: addition, subtraction, multiplication, and division.
- Self-optimizing code for improved performance.
- Clone the repository:
git clone https://github.com/coco-is-magik/self-modifying-calculator.git
cd self-modifying-calculator
- Ensure you have CLISP installed to run the Lisp code.
Execute the calculator with the following command:
clisp calculator.lsp [num1][operation][num2]
clisp calculator.lsp 5+7
clisp calculator.lsp 8-4
clisp calculator.lsp 4*2
clisp calculator.lsp 10/5
- Support for non-integer operations.
- Advanced mathematical operations including:
- Parentheses and exponents.
- Trigonometric and logarithmic functions.
- Matrices, calculus, and more.
This project is licensed under the MIT License. See the LICENSE file for details.