Skip to content

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.

License

Notifications You must be signed in to change notification settings

coco-is-magik/self-modifying-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Self-Modifying Calculator

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.

Table of Contents

Features

  • Basic arithmetic operations: addition, subtraction, multiplication, and division.
  • Self-optimizing code for improved performance.

Installation

  1. Clone the repository:
git clone https://github.com/coco-is-magik/self-modifying-calculator.git
cd self-modifying-calculator
  1. Ensure you have CLISP installed to run the Lisp code.

Usage

Execute the calculator with the following command:

clisp calculator.lsp [num1][operation][num2]

Example commands:

clisp calculator.lsp 5+7
clisp calculator.lsp 8-4
clisp calculator.lsp 4*2
clisp calculator.lsp 10/5

Planned Features

  • Support for non-integer operations.
  • Advanced mathematical operations including:
  • Parentheses and exponents.
  • Trigonometric and logarithmic functions.
  • Matrices, calculus, and more.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

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.

Resources

License

Stars

Watchers

Forks