diff options
author | Ivan Tham <[email protected]> | 2019-08-03 06:56:32 +0100 |
---|---|---|
committer | Ivan Tham <[email protected]> | 2019-08-03 07:15:43 +0100 |
commit | 051f0e40bdd3157902fd5e94f71f9747ad2fb72c (patch) | |
tree | a31cb6711c4aed59216d8fdd2956d9069a62c3d6 /readme.md | |
parent | 6c38d9b13b8e1cc976f9b22d15d100fd03ee54d4 (diff) |
Add constants (e, pi)
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -72,6 +72,19 @@ $ cargo install --force --path /path/to/eva | |||
72 | - binary operators: `+ - * / ^` | 72 | - binary operators: `+ - * / ^` |
73 | - unary operators: `+ -` | 73 | - unary operators: `+ -` |
74 | 74 | ||
75 | ### constants | ||
76 | |||
77 | some constants avaliable in rust standard library. | ||
78 | |||
79 | ``` | ||
80 | e pi | ||
81 | ``` | ||
82 | |||
83 | examples: | ||
84 | ``` | ||
85 | pi * 5^2 # πr² | ||
86 | ``` | ||
87 | |||
75 | ### functions | 88 | ### functions |
76 | 89 | ||
77 | all trignometric functions expect input in degrees. | 90 | all trignometric functions expect input in degrees. |
@@ -85,7 +98,7 @@ deg(x) - convert x to degrees | |||
85 | rad(x) - convert x to radians | 98 | rad(x) - convert x to radians |
86 | ``` | 99 | ``` |
87 | 100 | ||
88 | examples: | 101 | examples: |
89 | ``` | 102 | ``` |
90 | sqrt(sin(30)) # parentheses are mandatory for functions | 103 | sqrt(sin(30)) # parentheses are mandatory for functions |
91 | 104 | ||
@@ -117,7 +130,7 @@ Domain Error: Out of bounds! | |||
117 | 130 | ||
118 | ### todo | 131 | ### todo |
119 | 132 | ||
120 | - add support for variables (ans, pi, e) | 133 | - ~~add support for variables (pi, e, _ (previous answer))~~ |
121 | - ~~syntax highlighting~~ | 134 | - ~~syntax highlighting~~ |
122 | - multiple arg functions | 135 | - multiple arg functions |
123 | - ~~screenshots~~ | 136 | - ~~screenshots~~ |