On 09/05/2021 23:52, [email protected] wrote:
David,
I do not think you are being naive. The choice of representation is to
keep things as close to standard mathematics as possible. However,
your suggestions are approaches taken by others. For example Sagemath
uses a==4 as the way to input and display something similar to the
proposed Equation type. My problem with this is that it looks like the
logical comparison operator in most computer languages that should
yield True or False. I am not sure that is very important to most
people doing math, but since I do both coding and math it bothers me.
Well of course, even people who don't do coding will understand the
other meaning of '=' within SymPy work.
I called myself naive, in that I suppose I think it would ideally know
that SymPy would not generate ambiguous results. One simple answer here
might be not to supply a simple rendering of Equation(a,b) except to for
use with TeX, where I suppose it would be possible to render the '=' in
a larger size, or different colour.
Imagine what would happen if someone cut and pasted an Equation object
rendered using '=' to another place in the code.
David
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/d14d2c32-d087-0408-9f7c-07036370595f%40dbailey.co.uk.