Skip to content

A small cli calculator that supports variables and a variety of functions

License

Notifications You must be signed in to change notification settings

majestic53/Cli-Calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cli Calc is a small cli calculator that supports variables and a variety of functions 

Version:
	- 0.1.2

Included features:
	- Arbitrarily large input
	- Nested expression support
	- Global variable support
	- Large variety of functions

Using Cli Calc
-------------

In terminal type 'cli-calc' followed by "--version" or "--help" to display the version and help
information. 

Expressions entered as arguments will be evaluated left-to-right. 

If no expressions are given,
cli_calc will enter interactive mode. While in interactive mode, type 'help' for a list of
supported functions. To exit interactive mode, enter 'exit' or Ctrl^D.

Installation
------------

Instructions for compiling Cli Calc from source code

Requirements (tested on):
	- libmpfr 3 or newer
	- libgmp 3 or newer
	- g++ 4.4.3 or newer
	- make 3.8 or newer

For Debian:
	- sudo apt-get install build-essential libgmp3-dev libmpfr-dev make

Install:
	- make
	- make install
	(might require administrator privileges)

Uninstall:
	- make uninstall
	(might require administrator privileges)

Known Bugs
----------

[FIXED] Arbitrarily large values (on 32-bit systems: > 2^32, and 64-bit systems: > 2^64), will fail, due
to limitations of C fundimental types.
	- At the moment, this problem is being addressed by using the GMP library. This will be
	fixed next release (0.1.2).

License
-------

Copyright(C) 2012 David Jolly <majestic53@gmail.com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

About

A small cli calculator that supports variables and a variety of functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages