3
.\" Copyright (c) 1995,1996 Sascha Demetrio
4
.\" All rights reserved.
6
.\" Redistribution and use in source and binary forms, with or without
7
.\" modification, are permitted provided that the following conditions
9
.\" 1. Redistributions of source code must retain the above copyright
10
.\" notice, this list of conditions and the following disclaimer.
11
.\" If you modify any part of HEXER and redistribute it, you must add
12
.\" a notice to the `README' file and the modified source files containing
13
.\" information about the changes you made. I do not want to take
14
.\" credit or be blamed for your modifications.
15
.\" 2. Redistributions in binary form must reproduce the above copyright
16
.\" notice, this list of conditions and the following disclaimer in the
17
.\" documentation and/or other materials provided with the distribution.
18
.\" If you modify any part of HEXER and redistribute it in binary form,
19
.\" you must supply a `README' file containing information about the
21
.\" 3. The name of the developer may not be used to endorse or promote
22
.\" products derived from this software without specific prior written
25
.\" HEXER WAS DEVELOPED BY SASCHA DEMETRIO.
26
.\" THIS SOFTWARE SHOULD NOT BE CONSIDERED TO BE A COMMERCIAL PRODUCT.
27
.\" THE DEVELOPER URGES THAT USERS WHO REQUIRE A COMMERCIAL PRODUCT
28
.\" NOT MAKE USE OF THIS WORK.
31
.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND
32
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
33
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
34
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE DEVELOPER BE LIABLE
35
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
39
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
40
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
43
.TH MYC 1 "1996 February 11" "Myc"
45
.\" --- Section -- NAME -------------------------------------------------------
48
myc \- a simple calculator
50
.\" --- Section -- SYNOPSIS ---------------------------------------------------
56
.\" --- Section -- DESCRIPTION ------------------------------------------------
60
is a simple calculator capable of all operations available in C.
61
Commands are entered in infix notation. It is possible to use parentheses.
64
is specified on the command-line, the result is echoed and
67
If invoked with no arguments,
69
starts reading commands from standard-in.
71
understands the following binary infix operators (from highest priority to
106
(arithmetical exclusive or),
112
(assign); and the following unary prefix operators:
114
(negate, unary minus),
118
(bitwise complement).
120
knows three data types:
125
(64 bit, equivalent to C double).
126
On some esoteric platforms the precision of integer and float may be
128
As in C the result of a division depends on the data types of the operands.
129
An integer divided by an integer yields an integer.
130
If you want the result to be a float, make sure one of the operands is a
139
The power operation returns a float if the result is too large to fit in an
141
The result of a calculation is stored in the special variables
147
is the number of the command.
149
.\" --- Section -- BUGS -------------------------------------------------------
152
Maybe. Please report bugs to
153
.IR demetrio@cs.uni-sb.de .
155
.\" --- Section -- COPYRIGHT --------------------------------------------------
160
.BR "not in the public domain" ,
161
but freely distributable. It may be used for any non-commercial purpose.
166
.\" --- Section -- AUTHOR -----------------------------------------------------
171
.I demetrio@cs.uni-sb.de