mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Improve GitHub readme and fix typos
This commit is contained in:
16
README.md
16
README.md
@@ -99,8 +99,8 @@ The calculator can calculate transcendental functions, and accept and
|
|||||||
display numbers in real or exponential format. For example, typing:
|
display numbers in real or exponential format. For example, typing:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
config("display", 70)
|
config("display", 70),
|
||||||
epsilon(1e-70)
|
epsilon(1e-70),
|
||||||
sin(1)
|
sin(1)
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -116,15 +116,21 @@ For example:
|
|||||||
```sh
|
```sh
|
||||||
config("mode", "fraction"),
|
config("mode", "fraction"),
|
||||||
(17/19)^23
|
(17/19)^23
|
||||||
|
print
|
||||||
base(16),
|
base(16),
|
||||||
(19/17)^29
|
(19/17)^29
|
||||||
|
print
|
||||||
|
log(79.3i)
|
||||||
```
|
```
|
||||||
|
|
||||||
will print:
|
will print:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
19967568900859523802559065713/257829627945307727248226067259
|
19967568900859523802559065713/257829627945307727248226067259
|
||||||
|
|
||||||
0x9201e65bdbb801eaf403f657efcf863/0x5cd2e2a01291ffd73bee6aa7dcf7d1
|
0x9201e65bdbb801eaf403f657efcf863/0x5cd2e2a01291ffd73bee6aa7dcf7d1
|
||||||
|
|
||||||
|
0x17b5164ac24ee836bf/0xc7b7a8e3ef5fcf752+0x883eaf5adadd26be3/0xc7b7a8e3ef5fcf752i
|
||||||
```
|
```
|
||||||
|
|
||||||
All numbers are represented as fractions with arbitrarily large
|
All numbers are represented as fractions with arbitrarily large
|
||||||
@@ -158,7 +164,7 @@ followed by a function declaration very similar to C.
|
|||||||
```sh
|
```sh
|
||||||
define f2(n)
|
define f2(n)
|
||||||
{
|
{
|
||||||
local ans;
|
local ans;
|
||||||
|
|
||||||
ans = 1;
|
ans = 1;
|
||||||
while (n > 1)
|
while (n > 1)
|
||||||
@@ -173,7 +179,7 @@ Thus the input:
|
|||||||
f2(79)
|
f2(79)
|
||||||
```
|
```
|
||||||
|
|
||||||
will produce;
|
will produce:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
1009847364737869270905302433221592504062302663202724609375
|
1009847364737869270905302433221592504062302663202724609375
|
||||||
@@ -192,7 +198,7 @@ Thus the input:
|
|||||||
sc(31, 61)
|
sc(31, 61)
|
||||||
```
|
```
|
||||||
|
|
||||||
will produce;
|
will produce:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
256772
|
256772
|
||||||
|
Reference in New Issue
Block a user