Comment #43 on issue 135 by nicolas.pourcelot: Equation & Inequality class
http://code.google.com/p/sympy/issues/detail?id=135

I don't know how much of the issue is solved now, so maybe it's a bit too  
late to
comment.

I think equation syntax is not so important, since sympify can do a lot of  
the job.
For example, sympify("2*x+3>5*x-4") should return an inequality object, and
sympify('2*x^2==3*x-4') or even sympify('2*x^2=3*x-4') an equality object.

But a > b or a == b should always return a boolean.

(Maybe a > b should be able to return None as well, for 'I don't know' ?)



General considerations
======================

There was the same kind of debate for the use of "^" for power.

I think all the magic should always be done in sympify.

So, end users may use sympy directly with a "natural" syntax (what's more,  
it's easy
to include sympify in an interactive shell)

And developers who use sympy as a library won't be confused by  
any "unpythonic" magic
(wich furthermore may slow sympy).

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to