Commit graph

13 commits

Author SHA1 Message Date
Á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
2973dfd3ff Merge branch 'feature/validation-refactor' 2025-08-22 19:57:14 +02:00
Álvaro González
75fad84cac Tests passing, all formulas validated 2025-08-22 17:47:06 +02:00
Álvaro González
eb38cfcb0e Merge feature/formula-evaluation into master
Adds comprehensive formula evaluation capabilities using d4rt interpreter:

- FormulaEvaluator class for executing mathematical formulas
- Variable injection mechanism for d4rt compatibility
- Single output variable constraint with validation
- Comprehensive test suite with 15 test cases
- Working examples demonstrating physics and financial calculations
- Proper error handling for missing variables and invalid formulas

This enables the execution of user-defined mathematical formulas
with type-safe input validation and d4rt-based computation.
2025-08-21 18:36:08 +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
03c1fb488a Merge feature/formula-data-classes into master
- Added formula data classes with strict JSON parsing
- Cleaned up repository by removing .dart-tool and .dartServer cache directories
- Updated .gitignore to prevent future commits of cache/build artifacts
2025-08-21 17:35:05 +02:00
Álvaro González
a8ba0234b9 typo 2025-08-21 17:31:00 +02:00
Álvaro González
06c60129fd chore: remove .dart-tool and .dartServer from repo and ignore them
- Remove cached .dart_tool and .dartServer files from history
- Add .dartServer to .gitignore (dart analysis cache)
- Keep .dart_tool ignore entry

This prevents committing local tool/cache artifacts.
2025-08-21 17:27:35 +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
f30fbf0f68 Added guidelines for agents from https://www.dzombak.com/blog/2025/08/getting-good-results-from-claude-code/ 2025-08-21 16:47:21 +02:00
Álvaro González
d27537ce34 Exclude files of warp jail, add some other files 2025-08-21 16:14:36 +02:00
Álvaro González
c10d76a486 docs: Update README with Math Formulae Manager project description
- Replace generic sample app description with comprehensive project overview
- Add detailed feature descriptions for formula search, computation, and sharing
- Document unit management and d4rt interpreter integration
- Include rich formula documentation with markdown and images support
- Maintain existing project structure documentation
2025-08-21 15:52:30 +02:00