Tiny command-line calculator - 轻量级命令行计算器
- Only support
double
, and maybe overflow.
make
sudo make install
If you build failed, Please install makemake and run
makemake
to generate a new Makefile.
Syntax detail is in syntax.ebnf
$ awsl '1+1'
2.000000
$ awsl 'pow(2, 10)'
1024.000000
$ awsl
> pow(sin(233), 2) + pow(cos(233), 2)
= 1.000000
> log(1024) / log(2)
= 10.000000