A minimal and easy-to-use calculator application for your terminal - meant for people who are comfortable and quick using the terminal
Features
- addition, subtraction, multiplication, division
- powers, roots, factorials, modulo, logarithms
- nPr and nCr
- Sine, Cosine, Tangent (degrees and radians)
- converting to absolute numbers
- Some important constants
- Grouping with parentheses
- A variable for the previous answer
- A command history
Installation & Support
Installation
- Download the binary ctc_xy for your architecture and OS from the latest release.
- Place the file in a useful location (e.g. ~/.local/bin/ctc)
- Make the file executable (e.g. chmod +x ~/.local/bin/ctc)
- Add an alias to your shell's configuration file:
Bash users can add the following line to their .bashrc file:
alias ctc="~/.local/bin/ctc"
Fish users can add the following to their
~/.config/fish/fish.conf file:
function ctc
~/.local/bin/ctc $argv
end
You can use any path and any alias. ~/.local/bin/ctc and 'ctc' are just the recommended options.
MacOS and Windows binaries are included from release 0.4.0. These are not tested yet, because I don't have access to those operating systems.
The setup, especially for Windows will be different from what was said above. If you can confirm that CTC is running on Windows or MacOS, you're welcome to let me know in an issue!
Support
If you need help or want to suggest a change, please see the
issues page.
Screenshots