Skip to content

darshanparajuli/calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calc

A simple command line calculator written in Rust.

Build Status

Install

From source

Click here to install rust if you don't have it already.

1. git clone https://github.com/darshanparajuli/calc
2. cd calc
3. cargo install

Arch Linux

Install calc-git package from AUR.

Example

$ calc
λ 1+2
=> 3

λ a = 23
=> a = 23

λ a*2
=> 46

λ b = sin(a) * 20^2
=> b = -338.4881616700683

λ b
=> -338.4881616700683

λ ans
=> -338.4881616700683

λ ans / 100
=> -3.384881616700683

λ log10(10)
=> 1

λ log
=> log(n, base)

λ log2(8)
=> 3

λ log10(100)
=> 2

λ ln(e)
=> 1

λ sin(pi/2)
=> 1

λ exit

About

Simple command line calculator.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages