MathFlow

MathFlow (Project of TartanHacks 2019)

Inspiration

We witnessed the extreme tediousness of copying & pasting among different platforms when math researchers read and compose papers & computable documents. This issue comes from incompatibilities among math equations in image form and major math languages: LaTeX & Wolfram.

What it does

MathFlow automates the workflow from image equations directly to Wolfram & LaTeX codes. Simply capture a screenshot and codes will pop up. There is also an option to append them to a computable document along with a user comment.

How we built it

We use Swift to develop the user interface (macOS application). It will call an executable written in C, which combines MathPix (from image to LaTeX) & Wolfram API (from LaTeX to Wolfram) to properly generate the codes. As a key component of the C program, we use regular expression to handle incompatibilities b/w MathPix & Wolfram API.

Challenges we ran into

MathPix output and Wolfram API input have different LaTeX expression grammar. We have to use an interpreter (regular expressions) to bridge them together.

Accomplishments that we’re pround of

What we learned

What’s next for Math Flow