On Wed, May 4, 2011 at 11:09 AM, Fredrik Johansson
<[email protected]> wrote:
[...]
>
> I don't see how this is "more functional than object-oriented". On the
> contrary, using a class to encapsulate the notion of an algebra is
> more object-oriented than spreading the equivalent code across various
> methods in an ad-hoc fashion (for example, having Mul know about lots
> of different mathematical objects that can be multiplied) and choosing
> between options mostly by passing flags to functions. The code in Sage
> is quite clean, and very easy to extend (often easier than doing the
> same thing in SymPy).

Sage uses ginac, which works pretty much just like SymPy (it has Add,
Mul, Pow C++ classes). So a modification of C++ (or Cython) is needed
if changes are made.

Do you know, how ginac fits the algebra structure? It seems to me,
that it is something added on top of the Add/Mul/Pow machinery. So
maybe we can do something similar in sympy.

Ondrej

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

Reply via email to