Yup, that's what I tried.
If you want, I can post the fmin alternative that I used instead. The
only issue is, that I had to use python functions for the model
equation, rather than a symbolic expression.

Joal Heagney

On Mar 13, 3:57 am, YannLC <yannlaiglecha...@gmail.com> wrote:
> I guess that's about it:
>
> sage: data = [(0,0),(1,0),(2,13),(3,28),(4,48),(5,89),(6,107),(7,168),
> (8,188),(9,209)]
> sage: var('K,a,r,t,t0,v')
> (K, a, r, t, t0, v)
> sage: model(t) = K/(1 + a*exp(r * (t - t0)))^(1/v)
> sage: find_fit(data, model)
> [K == 84.999999972210745, a == 126.84970317061706, r ==
> -183.75725583987102, t0 == -124.8433024602822, v ==
> 105.35677984548882]
>
> On Mar 12, 6:50 pm, Nick Alexander <ncalexan...@gmail.com> wrote:
>
>
>
> > Could you give a (very!) short sage session demonstrating this?
>
> > Nick

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

Reply via email to