mathjs test
by keithphw
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/3.10.0/math.js"></script>
<body>
<p id='paraElement'>Hi
</p>
</body>
JavaScript
document.getElementById('paraElement').innerHTML = "math.simplify('2x + 3x') == "+math.simplify('2x + 3x').toString();