Does anyone here know of a Mathcad like IDE or such that allows you to program equations in symbolic form? This should be interleaved with regular Python. I think Sympy isn't what I want because it seems to output symbolic equations whereas I would like them to be part of the code. Barring that, the availability of Greek letter in code would be great.

Using non-ASCII characters in identifier names is only supported from Python 3.0 onwards. In eariler versions, you can only use them in literal strings and comments.

The use of non-ASCII characters in identifer names is generally discouraged. If someone else tries to read the file (or you try to read it on a different machine), their text editor may not honor the coding clause and try to parse it with a different encoding so that chareacters would not display correctly; or the font the editor is using may not support those code points, so they would just see placeholder glyphs.

If you want to imporve readability of your formulas, break them down into multiple lines e.g.