title: convert programmer's function into math notation
body: <p>Could you please advise any online tools which automatically converts programmers' code function of type:</p>
  
  <pre><code>s = k * ((a* x ^ n) / (1 + (a* x ^ n)))
  </code></pre>
  
  <p>into math notation like this:</p>
  
  <pre><code>$$s(x) = k {{a x ^ n} \over 1 + a x ^ n}$$
  </code></pre>
  
  <p>which is supposed to display this:</p>
  
  <p><a href="https://i.stack.imgur.com/Wv3JD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wv3JD.png" alt="enter image description here"></a></p>
  
  <p>(It works on Cross Validated but seems not to work here).</p>
  
  <p>I am using <a href="https://www.mathjax.org/#demo" rel="nofollow noreferrer">mathjax</a> but I have to manually write the code from scratch which is a laborious task with complex functions, not to mention that handcraft is good for art, not for math notation. </p>
  
  <p>For example I would like to convert this function:</p>
  
  <pre><code>A = (F1 / ((1 - F1)) / (G1 ^ (Log((F1 * (1 - F2) / (F2 * (1 - F1)))) / (Log(G1 / G2)))))
  </code></pre>
  
  <p>It's easy to get lost in levels of <code>/</code> character.</p>
  
  <p>I have found <a href="http://asciimath.org/" rel="nofollow noreferrer">asciimath</a> It produces correct results but I do not know if it is possible to grab the result displayed in the window on the right hand side as this mathjax code.</p>