On Sat, May 15, 2021 at 07:14:47AM -0000, Martin Teichmann wrote: > In general, doing symbolic math in Python is not very beautiful. [...] > It could be fruitful to add syntax for symbolic math, but this is a > whole new topic. Looking around there also seems to be not much out > there, even dedicated languages like mathematica are honestly pretty > ugly.
I think that is unavoidable. Symbolic maths is a 2D format. It doesn't map easily to a line-based format like programming languages. Think of things like summation and integration. You need subscripts, superscripts and a two dimensional layout of expressions. CAS calculators like the Nspire and Classpad that support symbolic maths also support 2D entry methods. Python would need a GUI IDE to support something like that. We could come up with a preprocessor that would allow you to write 1/(2π) and get a symbolic expression but its still going to be line-oriented and share the same weaknesses as Mathematica syntax. -- Steve _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/2AL2AGAOKDESGFTIMIMRG7BGYTWM3REY/ Code of Conduct: http://python.org/psf/codeofconduct/