[sage-support] Re: Segmentation fault with find_fit function

2009-11-04 Thread cchristy...@gmail.com
Thanks a lot ! It works now. On 4 nov, 13:18, Marshall Hampton wrote: > I changed your Kohl function to: > > def Kohl(t,b): >     return n(exp(-(exp(t*ln(10.0))/T_sol)**b)) > > and things worked on sagenb.  I don't completely understand what's > going on though, seems like a bug in find_fit in c

[sage-support] Re: Segmentation fault with find_fit function

2009-11-04 Thread Marshall Hampton
I changed your Kohl function to: def Kohl(t,b): return n(exp(-(exp(t*ln(10.0))/T_sol)**b)) and things worked on sagenb. I don't completely understand what's going on though, seems like a bug in find_fit in converting things to numpy types. While it shouldn't have to be this way, I have fo

[sage-support] Re: Segmentation fault with find_fit function

2009-11-04 Thread Burcin Erocal
On Wed, 4 Nov 2009 03:30:24 -0800 (PST) "cchristy...@gmail.com" wrote: > B_sol=find_fit(f1_data, Kohl, parameters = [Beta], variables = [t], > initial_guess = [0.3], solution_dict = True)[Beta] > > where Kohl is a python function : > > var("Beta") > def Kohl(t,Beta): >return n(exp(-(exp(t*

[sage-support] Re: Segmentation fault with find_fit function

2009-11-04 Thread cchristy...@gmail.com
That's strange, the page published #924 isn't mine any more.. Here is mine : http://www.sagenb.org/home/pub/931/ If it disappears again, the problem comes from this line : B_sol=find_fit(f1_data, Kohl, parameters = [Beta], variables = [t], initial_guess = [0.3], solution_dict = True)[Beta] whe

[sage-support] Re: Segmentation fault with find_fit function

2009-11-04 Thread Burcin Erocal
Hi, On Tue, 3 Nov 2009 12:42:47 -0800 (PST) "cchristy...@gmail.com" wrote: > Since I have compiled the new version of sage, 'Sage Version 4.1.2, > Release Date: 2009-10-14' , the find_fit function of my programs don't > want to work any more. > > The error message is : > /sage/sage/local/bin/s