Experience-Monks / math-as-code

a cheat-sheet for mathematical notation in code form
MIT License
15.02k stars 1.07k forks source link

Change sqrt(x^2) to sqrt(x)^2 #43

Closed asmeurer closed 8 years ago

asmeurer commented 8 years ago

The problem is that sqrt(x^2) is not equal to x in general (take x = -1). sqrt(x)^2 does always equal x, by definition.

Fixes #42

asmeurer commented 8 years ago

Rendered output

mattdesl commented 8 years ago

Thanks!