Clc is a Command line calculator written in Rust 🦀
$ clc
Version: v0.1.2
To quit, press Ctrl+C or type quit
❯ sqrt(sqrt(16)) * (100 - 1) * (100 + 1) / 9
2222
❯ quit
bye
| identifier | description |
|------------|--------------------------------------------------------------------------------------|
| sqrt(n)
| Returns the square root of a number
Return NaN
if a negative number provided |
| pow(n,m)
| Raise n to the power of m. (= n ^ m
) |
| abs(n)
| Compute the absolute value of n |
| identifier | description |
|------------|--------------------------|
| pi
| Archimedes’ constant (π) |
| e
| Euler’s number (e) |
shell
cargo install clc
shell
curl -sSLf https://github.com/ymgyt/calculator/releases/download/0.1.3/clc-x86_64-unknown-linux-gnu.tar.gz | tar zxf - -C /usr/local/bin
shell
curl -sSLf https://github.com/ymgyt/calculator/releases/download/0.1.3/clc-x86_64-apple-darwin.tar.gz | tar zxf - -C /usr/local/bin
This project is available under the terms of either the Apache 2.0 license or the MIT license.