aboutsummaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorIvan Tham <[email protected]>2019-08-03 06:56:32 +0100
committerIvan Tham <[email protected]>2019-08-03 07:15:43 +0100
commit051f0e40bdd3157902fd5e94f71f9747ad2fb72c (patch)
treea31cb6711c4aed59216d8fdd2956d9069a62c3d6 /readme.md
parent6c38d9b13b8e1cc976f9b22d15d100fd03ee54d4 (diff)
Add constants (e, pi)
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md17
1 files changed, 15 insertions, 2 deletions
diff --git a/readme.md b/readme.md
index 10f1e18..eed3789 100644
--- a/readme.md
+++ b/readme.md
@@ -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
77some constants avaliable in rust standard library.
78
79```
80e pi
81```
82
83examples:
84```
85pi * 5^2 # πr²
86```
87
75### functions 88### functions
76 89
77all trignometric functions expect input in degrees. 90all trignometric functions expect input in degrees.
@@ -85,7 +98,7 @@ deg(x) - convert x to degrees
85rad(x) - convert x to radians 98rad(x) - convert x to radians
86``` 99```
87 100
88examples: 101examples:
89``` 102```
90sqrt(sin(30)) # parentheses are mandatory for functions 103sqrt(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~~