&gt; Most languages won&#x27;t let you write mathematics exactly like mathematicians do, but the closer you can get the better<p>See Wolfram Mathematica for example.<p>Also, one of my usual DSL tricks is to allow arbitrary TeX in identifiers, which, combined with the literate programming tricks, allows to write very idiomatic mathematical expressions as a code.