Commit Graph

51 Commits

Author SHA1 Message Date
bakk
ee3082ad66 Made complex numbers work without rug 2021-05-20 19:26:03 +02:00
=
2936a58620 Basics of complex numbers 2021-05-20 15:11:32 +02:00
bakk
dea2ab9ee2 Estimation/rounding for final results 2021-05-18 19:48:13 +02:00
bakk
1d9237d30d Integration estimation
Needs more a bit more accuracy though. Currently the n value in the
trapezoidal rule is fixed.
2021-05-16 15:15:34 +02:00
flrk
e415ad888e Remove timeout from kalk_cli 2021-01-30 16:39:22 +01:00
PaddiM8
b59d3e1f51 JavaScript bindings to KalkNum and ScientificNotation 2020-12-31 00:15:16 +01:00
PaddiM8
efbeb0857f WebAssembly foundation 2020-12-30 22:50:39 +01:00
PaddiM8
e8c362c72e Prevent self-referencing variables 2020-12-28 23:54:12 +01:00
PaddiM8
b7153d68b7 Interpretation timeout 2020-12-28 19:09:21 +01:00
PaddiM8
58bb2fd60f Simple equation solving, mostly using pre-existing logic from the inverter 2020-12-14 19:21:30 +01:00
PaddiM8
562b232120 Added 'Type help for instructions' text, and fixed ansi_colors for windows 2020-12-14 11:25:08 +01:00
PaddiM8
0d4398e4a5 Added 'help' command in the REPL 2020-12-14 10:43:03 +01:00
PaddiM8
fd29599e31 Fixed bug where symbol_table::contains_fn didn't check in the BINARY_FUNCS map 2020-12-13 23:44:33 +01:00
PaddiM8
b3720ed6dc Replaced manual cli arg parsing with the seahorse crate 2020-12-13 20:26:35 +01:00
PaddiM8
339d98e2c6 User-configurable precision 2020-12-13 18:12:33 +01:00
PaddiM8
f29104e489 Created KalkNum and moved output formatting from kalk_cli to kalk 2020-12-13 01:27:55 +01:00
PaddiM8
29f8ac94f3 replaced phf with lazy_static 2020-12-10 23:40:29 +01:00
PaddiM8
bc8cf4a22c removed colors in some places for windows, since it didn't work properly there 2020-12-10 21:13:04 +01:00
PaddiM8
6a8c4bd76b updated rustyline to 7.0.0 2020-12-10 20:31:07 +01:00
PaddiM8
dd1b4d723f added percentage unit and modulo 2020-12-09 22:18:00 +01:00
PaddiM8
4f655033b9 fixed rounding issues, eg. 9.99999997 instead of 10 2020-12-09 11:44:22 +01:00
PaddiM8
ee6a4066da updated to 0.2.1 2020-12-09 09:40:26 +01:00
PaddiM8
ed98a8d333 fixed large rounding errors 2020-10-11 10:59:33 +02:00
PaddiM8
49b06e9f8f fixed large rounding errors 2020-10-11 10:56:28 +02:00
PaddiM8
c1577a523c Added environment variables to help. 2020-06-18 17:01:09 +02:00
PaddiM8
07e34c6bbb Implemented inversion for some prelude functions. 2020-06-18 16:20:18 +02:00
PaddiM8
7d845523d8 Made the unit be displayed in the result. 2020-06-18 02:02:48 +02:00
PaddiM8
8adabaa992 Added UnsupportedExpression errors. 2020-06-17 21:28:54 +02:00
PaddiM8
7f3fb7c045 Integrated the angle unit system with then new dynamic unit system. 2020-06-15 19:10:55 +02:00
PaddiM8
3a25a3d416 Added help. 2020-06-13 21:56:13 +02:00
PaddiM8
cb0e632068 Made the output prettier by removing repeating characters. 2020-06-13 21:41:01 +02:00
PaddiM8
77751750b7 Trimming trailing zeroes for numbers < 0. 2020-06-13 20:08:34 +02:00
PaddiM8
430841fc5f Trimmed end matches of dots in order to avoid numbers such as 1.. 2020-06-12 21:30:03 +02:00
PaddiM8
80c14df380 Fixed exponent being one too much for scientific notation. 2020-06-12 21:16:47 +02:00
PaddiM8
73d2c1c99e Added completion for constants. 2020-06-12 00:49:50 +02:00
PaddiM8
3ffd62c572 Renamed parser::parse to parser::eval and created a new parser::parse function that does not evalutate the statements. 2020-06-10 13:55:43 +02:00
PaddiM8
2119864a45 Removed history linting. 2020-06-09 16:41:04 +02:00
PaddiM8
8d2e0b092b Added gamma function. 2020-06-09 15:53:29 +02:00
PaddiM8
a35bcc054a Made the highlighter code cleaner by unifying the regular expressions into one. 2020-06-09 15:43:53 +02:00
PaddiM8
98fc2bf151 Made the x_1 notation possible. 2020-06-09 14:59:29 +02:00
PaddiM8
5668a05227 Made it possible to load an input file (with variables and functions). 2020-06-09 14:20:40 +02:00
PaddiM8
6c9f0b10f3 Added parenthesis to sum completion. 2020-06-09 10:37:57 +02:00
PaddiM8
8d111d2fe2 Added completions for sum and parenthesis. 2020-06-09 10:34:58 +02:00
PaddiM8
9495ab9f6e Added completion for ceil and floor. 2020-06-08 21:58:55 +02:00
PaddiM8
3db7c215d3 Change hint highlight to gray. 2020-06-07 19:02:07 +02:00
PaddiM8
c1facbe6f1 Implemented simple syntax highlighting and symbol-completion. 2020-06-07 18:56:28 +02:00
PaddiM8
aeed8049fc Fixed output not displaying small-ish decimal numbers properly. 2020-06-06 17:20:40 +02:00
PaddiM8
d0536d6bd6 Created CalcError enum and centralised error formatting into once place. 2020-06-06 16:28:48 +02:00
PaddiM8
25dcc81bad Improved output. 2020-06-06 14:55:30 +02:00
PaddiM8
1056206d49 Removed trailing zeroes from results. 2020-06-05 17:06:24 +02:00