This tool helps you understand and debug math code written in the syntax of popular computer programming languages like MATLAB, C, Java, Python, and R. It comes in handy when you're reading other people's code, especially when it contains nested parentheses, fractions, and exponents.

Paste a line of code that represents a math expression:


Example equations:

These equations were taken directly from real MATLAB code. As you can see, they are much easier to understand and debug when visualized using MathViz.

This pair shows how one tiny change in MATLAB code can totally alter the expression's meaning, something that is very easy to see in MathViz: Here's a nasty-looking MATLAB expression that MathViz helped Kevin to understand. He told me over email: "Like, there's no way you could parse that in your head without spending a good 30 seconds looking at it even though it's a small equation. But mathviz makes it easy to understand in quicker than you can say 'latex'!"
Currently supports: Possible new features (if there is a demand):
MathViz was created by Philip Guo. If you have questions, bug reports, or suggestions, please contact me at philip@pgbovine.net

Special thanks to Kevin Cockrell for creating an early prototype, inspiring the creation of MathViz, doing beta testing, making feature requests, and providing example MATLAB code.