Skip to content

Basic terminal calculator to do arithmetic and other basic math functions, functions much like MATLAB

License

Notifications You must be signed in to change notification settings

royces9/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calculator

Basic calculator to do calculations

Has limited support for vectors, matrices, and corresponding operators

Building

Only tested for Linux

Requirements for building:
GNU Readline library
GNU make

To build:

git clone https://github.com/royces9/calculator.git
make

To build with optimizations:

make release

Currently implemented functions

Arithmetic operators

addition +

subtraction -

multiplication *

division /

exponentitation ^

Trigonometry

sin(), cos(), tan(), asin(), acos(), atan(), pi

Logarithms and powers

log(), ln(), sqrt(), e

Miscellaneous functions

avg(), min(), max(), floor(), ceil(), round(), factorial()

Numerical functions

derivate(), integral(), solve()

Scripts

run()

Custom functions

create a function like:

function [out] = func(a, b) out = a + b;

Current known bugs:

About

Basic terminal calculator to do arithmetic and other basic math functions, functions much like MATLAB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published