Hi, this is to cancel/correct my bug report.
What I meant was, while calling the macro one should use
GSL_FN_EVAL(&F, x)
instead of 
GSL_FN_EVAL(F, x)

maybe this is trivial for most people, but I got confused. So I'll let the 
maintainers
judge if further clarification in the manual is necessary.

Regards,
Ivan Liu

On 9/12/05, Ivan Liu <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> found an error in GSL maual section "One-dimensional Root 
> Finding>Providing the function to solve":
> 
> >  The function f(x) can be evaluated using the following macro, 
> > 
> > #define GSL_FN_EVAL(F,x) 
> >     (*((F)->function))(x,(F)->params)
> > 
> >  
> the first arguement should be &F, so that it reads
> 
> #define GSL_FN_EVAL(&F,x)
> 
> I guess it's the same for other GSL_FN macros
> 
> Regards,
> Ivan Liu
>
_______________________________________________
Bug-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gsl

Reply via email to