Through years of school, it has been tough to check when you have 20 different units, if the answer you got has the right dimensions, but no longer.
What it does
It is a program that makes units simplified version. It presents the user with tons of different combination of corresponding units so the user can choose which one to use.
How we built it
We used ECMAScript 6.0 and published it on GitHub Pages. Quantify is basically consist of 4 parts, inputting math equation, evaluating the equation, finding corresponding units, and rendering those units. For inputting and rendering, we used Mathquill library, which converts readable math equation into LaTeX expression or vice versa. We wrote a several number of regular expressions to recursively evaluate the LaTeX math equation. We then used Breadth-First-Search algorithm to go through all the combination of units and see if it matches with the evaluated unit.
Challenges we ran into
Finding bugs and continuous debugging in evaluation process took the most of our time.
Accomplishments that we're proud of
We are proud of it after 40 hours of trying to hack a project that it highly functional in everyday lives of people in Stem field, we finally got it to work.
What we learned
Application of scientific and mathematical concepts in programming. Every derived unit can be broken down into combination of base units, and base units can be combined to form derive units.
What's next for Quantify
The next step for Quantify is to expand its database so it can process any unit that anyone can think of. More math constants and functions will be implemented to the program as well. This program could be a fundamental part of a students life such as Wolfram Alpha. Furthermore, we are looking forward to support optical character recognition or speech recognition to let users more easily input math equations.