Skip to content

Latest commit

 

History

History
45 lines (38 loc) · 1.61 KB

readme.md

File metadata and controls

45 lines (38 loc) · 1.61 KB

CAS

Overview

A simple computer algebra system similar to mathematica written in C++.

Features

  • Differential calculus
  • Store expressions into variables
  • Equation solving
  • ...

Getting started

Check the requirements

Requirements:

  • CMake 3.20
  • C++ 23

Clone the repository

git clone https://github.com/PhiGei2000/cas.git && cd ./cas

Run CMake and build the project

cmake --build ./build 

Run the application

./build/cas

Commands

All commands have the form commandName[arg1,arg2,...] and must terminated by a semicolon. If no variables are needed, the parentheses are optional.

Engine functions

Command Description Example
set[var, expr] Assigns the expression expr to the specified variable for later use set[x,12] or x=12
get[var] Gets the expression stored in the specified variable get[x] or x
ans[] Returns the result of the last stored calculation
listVars[] Lists the currently stored variables and their values
exit[] Shuts down the engine

Differential calculus

Command Description Example
D[function, variable] Calculates the derivative of the given function with respect to the given variable D[2*x,x] = 2
Df[function] Calculates the exterior differential of the given function Df[2*x*y] = 2*y*dx+2*x*dy

Issues

Feel free to report issues to the issue section

License

This code is licensed under the GPL-3.0 license