> There are two entries on the bug tracker related to this issue:
>
> http://trac.sagemath.org/sage_trac/ticket/2607
>
> http://trac.sagemath.org/sage_trac/ticket/5960
>
> I believe this would be a fairly easy fix for someone familiar with
> knowledge of the relevant scipy methods.
>
>   
Well ... okay.

I'm trying to use scipy.optimize.brute instead, as indicated in the bug 
report. I got the same kind of bahaviour

#! /usr/bin/sage -python
# -*- coding: utf8 -*-

from sage.all import *
import scipy.optimize

f = lambda x : (x+1)**2
print scipy.optimize.brute( f, (slice(-1,3),))         <---- (x+1)**2  works
g = lambda x : sin(x)
print scipy.optimize.brute( g, (slice(-1,3),))     <---- sin(x) crashes


I can wait for a fix; I'm not in a hurry.
For my purpose, a brute force computation of 200 values of the function 
in my interval will be sufficient.


Have a good night
Laurent

--~--~---------~--~----~------------~-------~--~----~
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