Hi,

In the following code a.taylor works both when using load and starting 
it with python, b.taylor works with load within sage but gives the 
exception when using python. There is no difference when using the 
python version from the sage tree.
I removed superfluous python code. The code is the generating function 
for a unordered partition.
-------
# be sure sage can be found when using Python
# comment it when starting from within sage with load
from sagePaths import *
set_paths()
#
from sage.all import *
from operator import *

if __name__ == "__main__":
    var('x')
    a = prod([1/(1-x**i) for i in range(1, 8)])
    b = prod([1/(1-x**i) for i in range(1, 9)])
    print a.taylor(x,0,5)
    print b.taylor(x,0,5)

 Result when using python:
                            5        4         3        2
                       7 x  + 5 x  + 3 x  + 2 x  + x + 1
Traceback (most recent call last):
  File "TaylorError.py", line 14, in <module>
    print b.taylor(x,0,5)
  File 
"/home/ton/Downloads/sage-3.4/local/lib/python2.5/site-packages/sage/calculus/calculus.py",
 
line 2562, in taylor
    l = self._maxima_().taylor(v, SR(a), Integer(n))
  File 
"/home/ton/Downloads/sage-3.4/local/lib/python2.5/site-packages/sage/calculus/calculus.py",
 
line 1345, in _maxima_
    return RingElement._maxima_(self, maxima)
  File "sage_object.pyx", line 312, in 
sage.structure.sage_object.SageObject._maxima_ 
(sage/structure/sage_object.c:3331)
  File "sage_object.pyx", line 252, in 
sage.structure.sage_object.SageObject._interface_ 
(sage/structure/sage_object.c:2390)
  File 
"/home/ton/Downloads/sage-3.4/local/lib/python2.5/site-packages/sage/interfaces/expect.py",
 
line 1002, in __call__
    return cls(self, x, name=name)
  File 
"/home/ton/Downloads/sage-3.4/local/lib/python2.5/site-packages/sage/interfaces/expect.py",
 
line 1377, in __init__
    raise TypeError, x
TypeError: Error executing code in Maxima
CODE:
    <type 'str'>
Maxima ERROR:
<emp/E8310_Ton/19933//interface//tmp19933-14731516");1+453570942;
<sage-display><sage-display>
Could not find 
`~/.sage//temp/E8310_Ton/19933//interface//tmp19933-14731516' using 
paths in file_search_maxima.

<sage-display>
(%o37)
---------

Any ideas?

regards
Ton Biegstraaten

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to