Skip to content

Bananymous/bcalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bcalc

Minimal numeric calculator for linux (and probably mac) written in C++ with ncurses.

Supports complex numbers, variables and functions.

Dependencies

bcalc itself only depends on ncurses.

You will also need git, premake5, make and C++20 compliant compiler to build the packet.

Installation

Building and installing from source

git clone https://github.com/Bananymous/bcalc
cd bcalc
premake5 gmake2
make config=release
sudo cp bin/Release/bcalc /usr/local/bin/bcalc

To uninstall, simply remove the executable

sudo rm /usr/local/bin/bcalc

Usage

bcalc can be used as CLI or TUI.

Running the executable without any arguments starts it in TUI mode where you can do basic numeric calculations.

Special commands are 'exit' and 'clear'

image

image

You can also run bcalc with the expressions as command line arguments, each expression separated by ';'.

image

Defined constants are pi and e.

Builtin functions include trigonometric functions, their hyperbolic counterparts and inverses, log, sqrt, exp, round, floor, ceil

About

numeric calculator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published