Skip to content
/ cas Public

A simple command line computer algebra system written in c++

License

Notifications You must be signed in to change notification settings

PhiGei2000/cas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple command line computer algebra system written in c++

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published