calcium
Version, currently master branch1 version
- master branchlatestOct 21, 2019
github.com/adoxography/calcium
No description declared in shard.yml.
0 stars
1 dependent
License: MIT
Installation
# Add this to your shard.yml
dependencies:
calcium:
github: adoxography/calcium
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.30.1- License
- MIT
- Author
- adoxography
- Target
calciumfrom src/cli.cr
- Executable
calcium
Dependencies
Development Dependencies
- ameba~> 0.10.1github: crystal-ameba/amebadev
README
calcium
calcium implements a basic command line calculator.
Installation
- Ensure that crystal is installed on your system.
- Clone the repository.
- To compile the binary, run
makefrom the project root. It will be compiled tobin/calcium.
Usage
The calcium executable accepts a single equation (as a string) as an argument.
Without precompiling
crystal src/cli.cr '1+1'
With precompiling
bin/calcium '1+1'
Capabilities
- Basic arithmetic operators (
+,-,*,/) - Complex expressions (Parentheses, order of operations)
- Unary negation
- Factorial (
!) - Exponentiation (
^) - Functions (
sin,cos,tan,abs,min,max)
Testing
crystal spec tests the crystal library. spec/test.sh all tests the command line interface.
Contributors
- adoxography - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Oct 21, 2019
- Crystal
0.30.1- Indexed
- yes
Dependents
Repository
github.com/adoxography/calcium
Metadata
- Created
- Aug 18, 2026
- Updated
- Oct 1, 2026
- Synced
- Oct 1, 2026
- Versions
- 1