Note that there are some explanatory texts on larger screens.

plurals
  1. POLibraries to convert obvious mathematical syntax to an equation/image?
    primarykey
    data
    text
    <p>Are there any libraries (Python) that are able to convert obvious mathematical notation in basic string form to an appropriate equation in LaTeX or an image format? Think Wolfram|Alpha, where you type in some mathematical syntax and it is able to generate an estimate of what it would look like if written in mathematical notation, most of the time being correct. For example, it should be able to convert something like:</p> <pre><code>r * 2pi + 10^sqrt(2) * log(10) - (9^(1/3) / 5) </code></pre> <p>into:</p> <blockquote> <p><img src="https://i.stack.imgur.com/LmobQ.gif" alt="r * 2pi + 10^sqrt(2) * log(10) - (9^(1/3) / 5)"></p> </blockquote> <p>Optionally, it also needs to parse a block of text and pick out mathematical bits and pieces. For example, this:</p> <pre><code>Lorem ipsum dolor r * 2pi +10^sqrt(2) sit amet, log(10) lorem -(9^(1/3) / 5) </code></pre> <p>becomes:</p> <blockquote> <p>Lorem ipsum dolor <img src="https://i.stack.imgur.com/JFc0t.gif" alt="r * 2pi +10^sqrt(2)"> sit amet, <img src="https://i.stack.imgur.com/JwCBE.gif" alt="log(10)"> lorem <img src="https://i.stack.imgur.com/EKz2M.gif" alt="-(9^(1/3) / 5)"></p> </blockquote> <p>Ideally, it would support as much mathematical notation as possible. For example, sets, matrices/vectors, integrals, et cetera.</p> <p>Do any packages exist that meet the above requirements? Are there any open source ones? Thank you in advance. =)</p> <p><strong>EDIT:</strong> I do <em>NOT</em> want to render LaTeX on a webpage. I have not said that anywhere. I am aware of how to do that. That is not what I am after. I simply asked if there are any <em>Python</em> libraries that can take basic mathematical syntax and output mathematical notation in the syntax/form of LaTeX <em>or</em> an image. See my examples for what I mean. And see Wolfram|Alpha if you still don't get it (where you don't need to type in TeX syntax to get an appropriate equation-image produced).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload