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. Of course a = 4 looks like an 
assignment in most computer languages, which is not the same thing as an 
equation such as a = b/c that can be manipulated to the mathematically 
valid statement c = b/a, on the assumption that the equality holds.

I am in favor of using '=' just as we would use '>' or '<' to maintain 
consistency with the most standard mathematical notation used.

Jonathan

On Sunday, May 9, 2021 at 5:36:28 PM UTC-5 [email protected] wrote:

> On 09/05/2021 22:59, [email protected] wrote:
>
> David,
>
> A pip install that does this and more is available through 
> Algebra_with_SymPy <https://pypi.org/project/Algebra-with-SymPy/>. The 
> Algebra 
> with SymPy repository <https://github.com/gutow/Algebra_with_Sympy> also 
> has a Binder link were you can try this out. I have been using it for about 
> 18  months with undergraduates. We are still struggling to agree on a way 
> to incorporate all these features into SymPy. To get some idea of the 
> issues see the draft SymPEP for this 
> <https://github.com/sympy/SymPEPs/pull/1>. What @JSS95 is referring to 
> can by tried by using their PR <https://github.com/sympy/sympy/pull/21325> 
> in the SymPy repository.
>
> Thanks - that worked nicely!
>
> One immediate issue I have - that may be completely naive - is that 
> Eqn(a,4) prints as 
>
> a=4
>
> but its srepr confirms that it is:
>
> Equation(Symbol('a'), Integer(4))
>
> Overloading = in this way feels like a source of confusion - maybe == 
> would be better 
>
> Wouldn't it avoid confusion to use a==4, or even a===b, or something else?
>
> 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/e41cb381-519d-4ba2-86a5-5716aa999e42n%40googlegroups.com.

Reply via email to