README.md (calc-2.12.7.2.tar.bz2) | : | README.md (calc-2.12.7.6.tar.bz2) | ||
---|---|---|---|---|

# What is calc? | # What is calc? | |||

Calc is an interactive calculator which provides for easy large | Calc is an interactive calculator which provides for easy large | |||

numeric calculations, but which also can be easily programmed | ||||

for difficult or long calculations. It can accept a command line | ||||

argument, in which case it executes that single command and exits. | ||||

Otherwise, it enters interactive mode. In this mode, it accepts | Otherwise, it enters interactive mode. In this mode, it accepts | |||

commands one at a time, processes them, and displays the answers. | commands one at a time, processes them, and displays the answers. | |||

In the simplest case, commands are simply expressions which are | In the simplest case, commands are simply expressions which are | |||

evaluated. For example, the following line can be input: | evaluated. For example, the following line can be input: | |||

```sh | ```sh | |||

3 * (4 + 1) | 3 * (4 + 1) | |||

``` | ``` | |||

and the calculator will print: | and the calculator will print: | |||

```sh | ```sh | |||

15 | 15 | |||

``` | ``` | |||

Calc as the usual collection of arithmetic operators +, -, /, * as | Calc has the usual collection of arithmetic operators +, -, /, * as | |||

well as ^ (exponentiation), % (modulus) and // (integer divide). | well as ^ (exponentiation), % (modulus) and // (integer divide). | |||

For example: | For example: | |||

```sh | ```sh | |||

3 * 19^43 - 1 | 3 * 19^43 - 1 | |||

``` | ``` | |||

will produce: | will produce: | |||

```sh | ```sh | |||

End of changes. 2 change blocks. | ||||

1 lines changed or deleted | | 4 lines changed or added |