diff options
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~~ |