c69496c scalc.c: -v should output to stdout and exit succesfully
~arivigo pushed to ~arivigo/scalc git
scalc is a very simple stack-based calculator that aims to be small.
scalc presents the user with an interactive prompt. Operations are written in Reverse Polish Notation and values are stored in a stack. Supported operations include basic arithmetics, logarithms, trignometry, etc. scalc also supports commands that modify the behavior of the stack and scalc itself.
$ ./scalc
> 1 2 +
3.000000000
> 4
4.000000000
> +
7.000000000
> 2 / 18 +
21.500000000
> ln
3.068052935
> :quit
ou may check the scalc(1)
manpage for further usage information.
scalc requires:
Build by using:
$ make
Customize the build process by changing config.mk
to suit your needs.
User configuration is performed by modifying config.h
. A set of defaults is
provided in config.def.h
.
You may install scalc by running the following command as root:
# make install
This will install the binary under $PREFIX/bin
, as defined by your
environment, or /usr/local/bin
by default. The Makefile supports the
$DESTDIR
variable as well.
All contributions are welcome! If you wish to send in patches, ideas, or report a bug, you may do so by sending an email to the scalc-devel mailing list.
If interested in getting some news from the project, you may also want to subscribe to the low-volume scalc-announce mailing list!
scalc is published under an MIT/X11/Expat-type License. See LICENSE
file
for copyright and license details.