equationmathjaxconvertersnotationasciimath

convert programmer's function into math notation


Could you please advise any online tools which automatically converts programmers' code function of type:

s = k * ((a* x ^ n) / (1 + (a* x ^ n)))

into math notation like this:

$$s(x) = k {{a x ^ n} \over 1 + a x ^ n}$$

which is supposed to display this:

enter image description here

(It works on Cross Validated but seems not to work here).

I am using mathjax 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.

For example I would like to convert this function:

A = (F1 / ((1 - F1)) / (G1 ^ (Log((F1 * (1 - F2) / (F2 * (1 - F1)))) / (Log(G1 / G2)))))

It's easy to get lost in levels of / character.

I have found asciimath 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.


Solution

  • Just google "asciimath to latex"