Math::GSL::Chebyshev(3pm) User Contributed Perl Documentation Math::GSL::Chebyshev(3pm)

Math::GSL::Chebyshev - Univariate Chebyshev Series Approximation

    use Math::GSL::Chebyshev qw/:all/;
    my $cheb             = gsl_cheb_alloc(40);
    my $function         = sub { sin(cos($_[0])) };
    gsl_cheb_init($cheb, $function, 0, 10);
    my $x                = gsl_cheb_eval($cheb, 5.5 );
    my ($status,$y,$err) = gsl_cheb_eval_err($cheb, 7.5 );
    gsl_cheb_free($cheb);

For more information on the functions, we refer you to the GSL official documentation: <http://www.gnu.org/software/gsl/manual/html_node/>

Jonathan "Duke" Leto <jonathan@leto.net> and Thierry Moisan <thierry.moisan@gmail.com>

Copyright (C) 2008-2024 Jonathan "Duke" Leto and Thierry Moisan

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2024-10-15 perl v5.40.0