Commit graph

66 commits

Author SHA1 Message Date
Álvaro González
19fd9552c8 after dart --fix 2025-09-07 14:04:42 +02:00
Álvaro González
29208f8c40 units 2025-09-07 13:59:03 +02:00
Álvaro González
bbaf819b67 Unit corpus and some tests 2025-09-07 13:34:27 +02:00
Álvaro González
e6bd0f512f dart --fix 2025-09-05 18:53:06 +02:00
Álvaro González
8fb175bcda Code is compiling 2025-08-28 12:34:49 +02:00
Álvaro González
57c8d8b064 Compilation problems, will recreate flutter app again 2025-08-27 11:10:22 +02:00
Álvaro González
785fe72449 First version of a formula widget 2025-08-26 17:17:42 +02:00
Álvaro González
2472e0db7c formula is more natural 2025-08-26 16:54:35 +02:00
Álvaro González
dcf409cbf7 dart Set literals instead of json 2025-08-26 16:37:28 +02:00
Álvaro González
06be580dff dart Set literals instead of json 2025-08-24 12:33:21 +02:00
Álvaro González
a1fb9057a7 main not present in d4rt_code in formula 2025-08-24 12:08:10 +02:00
Álvaro González
52590cd2fb VariableSpec includes var name 2025-08-24 11:52:34 +02:00
Álvaro González
75fad84cac Tests passing, all formulas validated 2025-08-22 17:47:06 +02:00
Álvaro González
a6a8fafab5 feat: implement formula evaluation using d4rt interpreter
- Add FormulaEvaluator class with d4rt integration
- Support single output variable formulas with variable injection
- Include comprehensive error handling and validation
- Add 15 test cases covering evaluation scenarios
- Create working example with Newton's law, quadratic discriminant, etc.
- Export evaluator in main library file

Implements formula evaluation by injecting variable declarations
into d4rt source code, enabling execution of mathematical formulas
with input parameters.
2025-08-21 18:35:50 +02:00
Álvaro González
1d339653d5 feat: add formula data classes with strict JSON parsing
- Add VariableSpec class with magnitude field validation
- Add Formula class supporting multiple input/output variables
- Support d4rt_code as string or object with code field
- Add comprehensive tests for parsing and serialization
- Fix broken test import in pruebas_d4rt_test.dart

Follows README.md format requirements exactly
2025-08-21 17:15:00 +02:00
Álvaro González
d27537ce34 Exclude files of warp jail, add some other files 2025-08-21 16:14:36 +02:00