32 Commits

Author SHA1 Message Date
Martin Berg Alstad
57b5f82c8d Removed one(1) argument from a macro! 2024-07-18 17:06:13 +02:00
Martin Berg Alstad
4447d800df Fixed a few bugs in absorption and doubled the code😎 2024-07-14 19:31:45 +02:00
Martin Berg Alstad
abad6181cb format with rustfmt 2024-07-14 19:08:58 +02:00
Martin Berg Alstad
60b9bdc28a More tests 2024-07-08 11:56:32 +02:00
Martin Berg Alstad
9b6a24e222 Merged a few branches in absorption law together 2024-07-04 13:05:52 +02:00
Martin Berg Alstad
7044dc304d Helper functions on Expression 2024-07-02 01:38:35 +02:00
Martin Berg Alstad
1c6d400f4a Fixed bugs in simplify 2024-06-28 17:58:56 +02:00
Martin Berg Alstad
d18b7bdaf8 Operations on absorption law and split the function in two.
Distributive law operations.

Added some new unit tests.
2024-06-27 18:31:37 +02:00
Martin Berg Alstad
08d7fa2319 Fixed extra parentheses on or expressions wrapped in not.
Fixed order of operations in eliminate not functions
2024-06-26 18:35:23 +02:00
Martin Berg Alstad
21f66d9409 Fixed bug surrounding implies with parentheses when unnecessary.
Fixed correct saving of operation in elimination of implication.

Must use macro on helpers
2024-06-26 17:35:53 +02:00
Martin Berg Alstad
1b94e63915 Removed unused feature.
Optimized use statements in main.

Simplified truth_combinations code a little.

Updated OpenAPI spec
2024-06-23 19:20:30 +02:00
Martin Berg Alstad
4b6608fd4f
Using library and removed common functions (#3)
* Added lib from git and removed code which is in lib now

* NormalizePathLayer to remove trailing slash
2024-06-22 17:33:33 +02:00
Martin Berg Alstad
e7f1ae156d Ignore Case function 2024-06-21 18:07:42 +02:00
Martin Berg Alstad
7f2440e08c Moved some duplicate code to macros.
Socket to config.rs
2024-06-20 23:37:26 +02:00
Martin Berg Alstad
6df5152061 Fixed hide intermediate steps, such that header and body is of same length 2024-06-17 23:04:47 +02:00
Martin Berg Alstad
bcf8b87f5f Hide intermediate steps in truth table 2024-06-17 22:28:41 +02:00
Martin Berg Alstad
78368772eb Fixed parenthesis when not needed. Removed some unused functions 2024-06-17 11:41:28 +02:00
Martin Berg Alstad
6b6f4b4779 Table endpoint for generating a truth table from a string expression 2024-06-17 00:21:18 +02:00
Martin Berg Alstad
849c87a878 Fixed bug with deserializing of bool 2024-06-16 20:19:03 +02:00
Martin Berg Alstad
d24fafdcb7
Operations (#2)
* Fixed? operations for elim_of_implication

* Removed simplify

* Returned to original operations. Moved som dupelicate code to func
2024-06-16 19:24:52 +02:00
Martin Berg Alstad
9431eb2fa9 Option to hide false or true values in truthTable 2024-06-16 00:36:59 +02:00
Martin Berg Alstad
b9998ce7bf Option to sort truthTable 2024-06-16 00:12:52 +02:00
Martin Berg Alstad
32d5089b44 Options for truth table.
Propagate error message from parser to client
2024-06-15 23:45:06 +02:00
Martin Berg Alstad
4b22fc4a7e Replaced macros with functions and Box with Rc 2024-06-14 18:38:37 +02:00
Martin Berg Alstad
3ad1ad53fc Fixed truth table generation 2024-06-13 11:34:57 +02:00
Martin Berg Alstad
5c8f602d1d Finished truth table impl 2024-06-10 18:35:03 +02:00
Martin Berg Alstad
1afd9d9848 Impl generate_truth_table 2024-06-09 20:09:36 +02:00
Martin Berg Alstad
4599b952fe Helper matrix and array function to generate alternating bool arrays 2024-06-09 19:13:56 +02:00
Martin Berg Alstad
f3fa0334c2 Simplify query argument.
Truth table and array utils.

Count distinct atomic values.
2024-06-09 11:57:59 +02:00
Martin Berg Alstad
b16a4eefe4 Replaced binary tuple with struct 2024-06-07 16:27:52 +02:00
Martin Berg Alstad
9cb0fa0a59 Fix opposite_eq method.
Simplify method in Simplify trait.

Fix distributive law.

Response for the simplify endpoint.

HTTP client.

camelCase and SCREAMING_SNAKE_CASE for struct and enum
2024-06-07 13:06:09 +02:00
Martin Berg Alstad
096e2105dd Initial commit 2024-06-05 20:41:00 +02:00