Commit Graph

42 Commits

Author SHA1 Message Date
PaddiM8
5ac3a12251 Added error handling to prelude functions and operations 2022-04-23 23:43:06 +02:00
PaddiM8
c840ace97f Allow vectors in sum/prod functions 2022-03-26 23:30:58 +01:00
bakk
2cd536bb16 Made unit field Optional in KalkValue 2022-01-23 01:16:34 +01:00
bakk
707114006b Added 'length' function and added 'permutations' as an alias to 'perms' function 2022-01-23 00:32:58 +01:00
bakk
b4e2667f16 Added 'perms' (permutations) and 'sort' functions 2022-01-22 02:29:09 +01:00
bakk
11869d1fef Added 'sgn' function 2022-01-20 21:18:32 +01:00
bakk
2bda63b058 Added 'diag' function 2022-01-20 20:49:00 +01:00
bakk
917eea3ffe Matrix tranpose function 2022-01-19 23:46:36 +01:00
bakk
4704095cd9 Fixed clippy lints 2022-01-16 20:58:00 +01:00
bakk
a36d9849d5 Use KalkValue::has_imaginary() 2022-01-16 20:12:44 +01:00
PaddiM8
95fd78f3d1 Matrices 2022-01-07 00:39:29 +01:00
PaddiM8
0aabade786 Treat any groups with commas as vectors 2022-01-05 18:50:07 +01:00
PaddiM8
c5f99a8343 Fixed regular.rs compilation errors 2022-01-05 15:54:17 +01:00
PaddiM8
28f87f4708 Added vector functions min, max, average 2022-01-05 14:46:52 +01:00
PaddiM8
78efe183c4 Added vector operations 2022-01-05 02:49:12 +01:00
PaddiM8
92521f842b Changed KalkNum to an enum, KalkValue, creating a better type system 2022-01-05 01:08:08 +01:00
PaddiM8
474b4d9016 Added permutation functions (for nPr and nCr), closes #52 2022-01-01 01:09:30 +01:00
PaddiM8
7892eee23e Bitshift operations, closes #80 2022-01-01 00:58:20 +01:00
PaddiM8
4495b69279 Number bases 2021-12-30 02:05:04 +01:00
Kiëd Llaentenn
09fafcb573 Fix compilation errors when rug feature is disabled 2021-10-08 20:03:30 +00:00
Kiëd Llaentenn
2fc11f36d8 Add tests for LCM 2021-10-04 04:06:06 +00:00
Kiëd Llaentenn
a1b7631735 Make LCM aware of Gaussian integers 2021-10-04 03:59:24 +00:00
Kiëd Llaentenn
7f0fee640d Add tests for GCD 2021-10-04 03:50:33 +00:00
Kiëd Llaentenn
71fc2c18ff Implement GCD for Gaussian integers 2021-10-04 03:40:50 +00:00
Kiëd Llaentenn
ba553f0c38 gcd: return NaN when encountering non-Gaussian integer 2021-10-03 23:33:48 +00:00
Kiëd Llaentenn
31700634af Implement basic GCD/LCM 2021-09-30 14:57:00 +00:00
PaddiM8
1b0496ea67 v1.0.1 2021-10-01 09:21:11 +02:00
PaddiM8
6ad51c82ea Prevent contants from being overridden 2021-09-22 15:33:58 +02:00
bakk
e07c5e5339 Added prod function and proper sum symbol 2021-06-01 15:52:41 +02:00
bakk
fe50789cbd Comparison operators and Iverson brackets 2021-05-31 13:46:06 +02:00
bakk
b6412aca1e Added functions Re(z) and Im(z) 2021-05-25 22:12:26 +02:00
bakk
22488f1f38 Added tests for prelude functions 2021-05-25 21:29:59 +02:00
bakk
34e374b346 Created synonym 'integral' for 'integrate' 2021-05-23 00:55:35 +02:00
bakk
637c3e331b Implemented complex variants of prelude functions 2021-05-22 20:47:10 +02:00
=
2936a58620 Basics of complex numbers 2021-05-20 15:11:32 +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
PaddiM8
2714ed0f8c Fixed gamma and factorial functions for f64 2021-01-04 17:49:11 +01:00
PaddiM8
9de16e0fbe Fixed semantic errors 2021-01-03 00:19:22 +01:00
PaddiM8
0c802df3d5 Implemented prelude gamma function for kalk without rug 2021-01-02 19:25:10 +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
8014a61f1a Created a cargo feature for rug, f64 will be used instead if it's disabled 2020-12-30 16:03:02 +01:00