Ask Your Question

Revision history [back]

Some debug output after the lines pasted in the question:

sage: %debug                                     
> /home/burcin/sage/
     27         if len(args) != self.m + 2:
---> 28             raise RuntimeError, args

ipdb> print self

Note that the function in use is not qPochhammer(3). ATM, we expect each BuiltinFunction to be instantiated once. In other words, each class corresponds to exactly one symbolic function. This is evident in the check on line 827 of sage/symbolic/function.pyx. Changing this to also check for the name of the function fixes your problem.

Patch waiting for review on trac ticket #13586.