I was prepairing some exercises and I got some errors using differente 
algorithms for integral, using version 8.0. Integrating with 
mathematica_free, I got this error:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_4.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 
-*-\\n" + 
_support_.preparse_worksheet_cell(base64.b64decode("aW50ZWdyYWwoeCx4LGFsZ29yaXRobT0nbWF0aGVtYXRpY2FfZnJlZScp"),globals())+"\\n");
 
execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmpfvk1XJ/___code___.py", line 2, in <module>
    exec compile(u"integral(x,x,algorithm='mathematica_free')" + '\n', '', 
'single')
  File "", line 1, in <module>
    
  File 
"/usr/local/sage-8.0/local/lib/python2.7/site-packages/sage/misc/functional.py",
 
line 721, in integral
    return x.integral(*args, **kwds)
  File "sage/symbolic/expression.pyx", line 12275, in 
sage.symbolic.expression.Expression.integral 
(/usr/local/sage-8.0/src/build/cythonized/sage/symbolic/expression.cpp:69945)
  File 
"/usr/local/sage-8.0/local/lib/python2.7/site-packages/sage/symbolic/integration/integral.py",
 
line 795, in integrate
    return integrator(expression, v, a, b)
  File 
"/usr/local/sage-8.0/local/lib/python2.7/site-packages/sage/symbolic/integration/external.py",
 
line 97, in mma_free_integrator
    page = page[page.index('"inputForm"'):page.index('"outputForm"')]
ValueError: substring not found
  

If I try  integral(sin(x^2),x,algorithm='sympy') I get:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_20.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 
-*-\\n" + 
_support_.preparse_worksheet_cell(base64.b64decode("aD1pbnRlZ3JhbChzaW4oeF4yKSx4LGFsZ29yaXRobT0nc3ltcHknKQ=="),globals())+"\\n");
 
execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmpK8eQi1/___code___.py", line 3, in <module>
    exec compile(u"h=integral(sin(x**_sage_const_2 ),x,algorithm='sympy')" 
+ '\n', '', 'single')
  File "", line 1, in <module>
    
  File 
"/usr/local/sage-8.0/local/lib/python2.7/site-packages/sage/misc/functional.py",
 
line 721, in integral
    return x.integral(*args, **kwds)
  File "sage/symbolic/expression.pyx", line 12275, in 
sage.symbolic.expression.Expression.integral 
(/usr/local/sage-8.0/src/build/cythonized/sage/symbolic/expression.cpp:69945)
  File 
"/usr/local/sage-8.0/local/lib/python2.7/site-packages/sage/symbolic/integration/integral.py",
 
line 795, in integrate
    return integrator(expression, v, a, b)
  File 
"/usr/local/sage-8.0/local/lib/python2.7/site-packages/sage/symbolic/integration/external.py",
 
line 56, in sympy_integrator
    return result._sage_()
  File 
"/usr/local/sage-8.0/local/lib/python2.7/site-packages/sympy/core/mul.py", 
line 1572, in _sage_
    s *= x._sage_()
  File 
"/usr/local/sage-8.0/local/lib/python2.7/site-packages/sympy/core/function.py", 
line 707, in _sage_
    func = getattr(sage, fname)
AttributeError: 'module' object has no attribute 'fresnels'

It seems that fresnels is defined in sympy but not in sagemath, Is it 
possible to correct these errors? Thanks, Enrique.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to