diff options
author | NerdyPepper <[email protected]> | 2019-03-23 04:51:38 +0000 |
---|---|---|
committer | NerdyPepper <[email protected]> | 2019-03-23 04:51:38 +0000 |
commit | de4c9d0cc54b60b4ff7bef568f3643bdbbbf22f4 (patch) | |
tree | 6cfc38186d38641c20a7cf72c04f51ffb8989390 /readme.md | |
parent | 77b6bb87f3ea373770fadafa55edceea89c33364 (diff) |
dont be so extra
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 50 |
1 files changed, 22 insertions, 28 deletions
@@ -35,29 +35,28 @@ ans: 3.4999999999999996 | |||
35 | 35 | ||
36 | ### functions | 36 | ### functions |
37 | 37 | ||
38 | all trignometric functions expect input in degrees. | 38 | fn(x: Number) -> Number |
39 | conversion to radians is to be done manually (` x * 3.14 / 180`) | ||
40 | 39 | ||
41 | ``` | 40 | ``` |
42 | sin | 41 | sin(x) | |
43 | cos | 42 | cos(x) | |
44 | tan | 43 | tan(x) | |
45 | csc # cosec is for pesants | 44 | csc(x) | -> x is in degrees |
46 | sec | 45 | sec(x) | |
47 | cot | 46 | cot(x) | |
48 | sinh | 47 | sinh(x) |
49 | cosh | 48 | cosh(x) |
50 | tanh | 49 | tanh(x) |
51 | ln # log to the base e | 50 | ln(x) # log to the base e |
52 | log # log to the base 10 | 51 | log(x) # log to the base 10 |
53 | sqrt # x ^ 0.5 | 52 | sqrt(x) # x ^ 0.5 |
54 | ceil | 53 | ceil(x) |
55 | floor | 54 | floor(x) |
56 | ``` | 55 | ``` |
57 | 56 | ||
58 | examples: | 57 | examples: |
59 | ``` | 58 | ``` |
60 | sqrt(sin(30)) # parenstheses are mandatory for functions | 59 | sqrt(sin(30)) # parentheses are mandatory for functions |
61 | 60 | ||
62 | log100 # no | 61 | log100 # no |
63 | log(100) # yes | 62 | log(100) # yes |
@@ -65,21 +64,15 @@ log(100) # yes | |||
65 | 64 | ||
66 | ### quality of life features | 65 | ### quality of life features |
67 | 66 | ||
68 | auto insertion of `*` operator | 67 | - auto insertion of `*` operator |
69 | ``` | 68 | ``` |
70 | 12sin(90) # 12 * sin(90) | 69 | 12sin(45(2)) # 12 * sin(45 * (2)) |
71 | ans: 12 | 70 | ans: 12 |
72 | |||
73 | (5 + 6)(6 + 7) # (5 + 6) * (6 + 7) | ||
74 | ans: 143 | ||
75 | |||
76 | 11(12) # 11 * (12) | ||
77 | ans: 132 | ||
78 | ``` | 71 | ``` |
79 | 72 | ||
80 | auto balancing of parentheses | 73 | - auto balancing of parentheses |
81 | ``` | 74 | ``` |
82 | ceil(sqrt(3^2 + 5^2 | 75 | ceil(sqrt(3^2 + 5^2 # ceil(sqrt(3^2 + 5^2)) |
83 | ans: 6 | 76 | ans: 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~~ |