aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--readme.md50
1 files changed, 22 insertions, 28 deletions
diff --git a/readme.md b/readme.md
index 66cf1a6..484ef55 100644
--- a/readme.md
+++ b/readme.md
@@ -35,29 +35,28 @@ ans: 3.4999999999999996
35 35
36### functions 36### functions
37 37
38all trignometric functions expect input in degrees. 38fn(x: Number) -> Number
39conversion to radians is to be done manually (` x * 3.14 / 180`)
40 39
41``` 40```
42sin 41sin(x) |
43cos 42cos(x) |
44tan 43tan(x) |
45csc # cosec is for pesants 44csc(x) | -> x is in degrees
46sec 45sec(x) |
47cot 46cot(x) |
48sinh 47sinh(x)
49cosh 48cosh(x)
50tanh 49tanh(x)
51ln # log to the base e 50ln(x) # log to the base e
52log # log to the base 10 51log(x) # log to the base 10
53sqrt # x ^ 0.5 52sqrt(x) # x ^ 0.5
54ceil 53ceil(x)
55floor 54floor(x)
56``` 55```
57 56
58examples: 57examples:
59``` 58```
60sqrt(sin(30)) # parenstheses are mandatory for functions 59sqrt(sin(30)) # parentheses are mandatory for functions
61 60
62log100 # no 61log100 # no
63log(100) # yes 62log(100) # yes
@@ -65,21 +64,15 @@ log(100) # yes
65 64
66### quality of life features 65### quality of life features
67 66
68auto insertion of `*` operator 67 - auto insertion of `*` operator
69``` 68```
7012sin(90) # 12 * sin(90) 6912sin(45(2)) # 12 * sin(45 * (2))
71ans: 12 70ans: 12
72
73(5 + 6)(6 + 7) # (5 + 6) * (6 + 7)
74ans: 143
75
7611(12) # 11 * (12)
77ans: 132
78``` 71```
79 72
80auto balancing of parentheses 73 - auto balancing of parentheses
81``` 74```
82ceil(sqrt(3^2 + 5^2 75ceil(sqrt(3^2 + 5^2 # ceil(sqrt(3^2 + 5^2))
83ans: 6 76ans: 6
84``` 77```
85 78
@@ -87,6 +80,7 @@ ans: 6
87 80
88 - add detailed error handler 81 - add detailed error handler
89 - multiple arg functions 82 - multiple arg functions
90 - ~~unary operators (minus, factorial)~~ 83 - ~~unary operators (minus, plus)~~
84 - screenshots
91 - lineditor with syntax highlighting 85 - lineditor with syntax highlighting
92 - ~~add more functions~~ 86 - ~~add more functions~~