Quich
Just an advanced terminal calculator.
Quich is a small, easy to use, fast and useful calculator for your terminal with numerous features. Written in ANSI C.
You can enter in interactive mode
by calling Quich without an operation.
Usage
Options
d
degree
Manage the given angles in degrees
f
format
The format to display the result.
h
help
Get help and information
i
interactive
Force interactive mode
p
precision
The number of decimals to be used for the internal numbers
r
round
The number of decimals to round the result
t
thousands
Display the result with thousands separators
vvv
verbose
Display the result with details
v
version
Show the application version
Functions
Syntax: func(operand)

sqrt
Square root 
abs
Absolute value (positive) 
log
Natural logarithm 
sin
,cos
,tan
Sine, Cosine and Tangent trigonometric functions 
asin
,acos
,atan
Arc sine, Arc cosine and Arc tangent trigonometric functions 
rand
Random number between 0 and 1. 
round
Round to the nearest integer value 
floor
Round down 
ceil
Round up
Available
Constants PI
, E
and G
(earth gravity).
The units of measurement for data storage mb
, gb
, tb
and pt
(they return the result in kb).
Install
Move to your Quich folder and run the following command:
make; sudo make install
Now you should be able to access Quich by running quich
in your terminal.
Naming
You can specify the Quich name when installing it with the NAME
makefile variable:
sudo make install NAME=calc
Now you will be able to access Quich with the calc
command.
Examples
$ quich 5+3
8
$ quich "5+(cos(2)2)^2"
10.8377655357568
$ quich "5+(cos(2)2)^2" p 2
10.86
$ quich 1234567+1 t
1,234,568
$ quich 1gb+1mb
1049600
$ quich 12345 f '%.1g'
1e+04
$ quich 5+PI vvv
Tokens > '5' '+' '3.14159265358979'
Posfix > 5 3.14159265358979 +
Result > 8.14159265358979
Contributing
Any contribution or support to this project in the form of a pull request or message will be highly appreciated.
This project is open to changes so don't be shy. :)
License
Quich is opensource software licensed under the MIT license.