This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: What about setting chebyshev coefficients directly
- From: Achim Gädke <Achim dot Gaedke at physik dot tu-darmstadt dot de>
- To: Brian Gough <brian dot gough at network-theory dot co dot uk>,gsl-discuss <gsl-discuss at sources dot redhat dot com>
- Date: Tue, 28 Jan 2003 11:16:07 +0100
- Subject: Re: What about setting chebyshev coefficients directly
- References: <3E2F1A24.3000204@physik.tu-darmstadt.de> <15921.42077.200282.36012@hppav.local>
Brian Gough wrote:
=?ISO-8859-15?Q?Achim_G=E4dke?= writes:
> I'd like to describe a current-distribution by a chebishev-series,
> but like to manipulate the coeffitients directly, not by providing
> a function to approximate.
>
> Is there anything, that might cause trouble by including a simple
> function for that (I'll provide it...)
Should be fine.
The current interface is not ideal (cs->f[] is probably unnecessary
and could be replaced by an independent workspace, but better to leave
it now).
I will have to change the allocation from malloc to calloc in
gsl_cheb_alloc, in order to provide usefull initial values.
I wonder if I can use the feature gsl_check_ranges here, too. Is it a
local variable for gsl_vector/gsl_matrix or should it be global?
Achim