If you're interest to check it, you only have to tell me.
The changes includes:
formatted the text with the better indentation
Added LINQ expression
Invert conditions to optimise
Change recursion for cycles
etc
I'm interested in make a project based on it for Engineering Equations.
Thanks so much