[sympycore] r1215 committed - Added to_ADD to BASE_EXP_DICT head

1 view
Skip to first unread message

codesite...@google.com

unread,
Oct 13, 2011, 10:18:39 AM10/13/11
to sympycor...@googlegroups.com
Revision: 1215
Author: pearu.peterson
Date: Thu Oct 13 07:17:52 2011
Log: Added to_ADD to BASE_EXP_DICT head
http://code.google.com/p/sympycore/source/detail?r=1215

Modified:
/trunk/sympycore/heads/base_exp_dict.py

=======================================
--- /trunk/sympycore/heads/base_exp_dict.py Tue Mar 16 01:57:26 2010
+++ /trunk/sympycore/heads/base_exp_dict.py Thu Oct 13 07:17:52 2011
@@ -50,6 +50,9 @@
r *= base ** exp
return r

+ def to_ADD(self, Algebra, base_exp_dict, expr):
+ return Algebra(ADD, [expr])
+
def term_coeff(self, cls, expr):
data = expr.data
coeff = base_exp_dict_get_coefficient(cls, data)

Reply all
Reply to author
Forward
0 new messages