I was writing a very simple script to count ellipsoid area and volume and some other things. I was presenting my output printing it out like this:
print('Dims: {}x{}m\nArea: {}m^2\nVolume: {}m^3'.format(a, round(b,2), P, V))
What, of course, gave this output (with sample data):
Dims: 13.49x2.25m
Area: 302.99m^2
Volume: 90.92m^3
As I wrote earlier, I am using jupyter notebook, so I can use $
operators in markdown cells to create LaTeX formulas.
My question is, is it possible to generate output using Python code in a way that it will be understood as LaTeX formula and printed in such a way, that:
Thanks for all replies.