Skip to main content

Command Palette

Search for a command to run...

Architecture Validated

Published
•1 min read•View as Markdown
Architecture Validated

🚀 Math Engine Update: Core Architecture Validated!

I've successfully run the first operation where the entire system works together. To achieve this, I built a robust architecture using key design patterns: Facade, Strategy, Template Method, and Visitor for data structures like Binary and B-Trees.

🔧 The engine's pipeline:

  1. User Input -> String Tokenization

  2. Shunting Yard -> Intelligent Parser

  3. Tree Creation where each leaf is a string representing a math object and containing its values.

  4. A Visitor traverses the tree and sends each string to the corresponding Strategy.

  5. The object is instantiated, solves nested operations (e.g., a root within a denominator), and serializes itself back to a string.

  6. The Visitor continues operating on the result until a final solution is found.

  7. Perfect, exact output is delivered to the user.

✅ What this means: The core architecture is tested and working. Now, adding new math objects (polynomials, equations, even Gröbner bases!) becomes a linear, systematic task.

More from this blog

Romi Math - Motor Algebraico

5 posts