Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23305

Make mathematical expression look cleaner from generated question [duplicate]

$
0
0

I'm using a web API from Python code to get randomly generated math questions. However, it uses some kind of markup to show mathematical formulas in plain text. For example, one output I got was:

Let ( z ) be a complex number such that ( |z - i| = 2 ) and ( \text{arg}(z) = \frac{\pi}{6} ). Find all possible values of ( z ) in the form ( a + bi ), where ( a ) and ( b ) are real numbers.

This is difficult to read. How can I make it look nicer?

For example, given a string like \frac{-b\pm \sqrt{b^{2}-4ac}}{2a}, how can I produce rendered text like this image?

Rendered image of the quadratic formula


Viewing all articles
Browse latest Browse all 23305

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>