Permalink
Browse files

Update Min POD

  • Loading branch information...
1 parent 19678ec commit fbfb9b5fc731ecac25810b3550168549811797c0 @leto committed Oct 14, 2011
Showing with 12 additions and 7 deletions.
  1. +12 −7 pod/Min.pod
View
19 pod/Min.pod
@@ -26,13 +26,22 @@ __END__
=head1 NAME
-Math::GSL::Min - One-dimensional Minimization
+Math::GSL::Min - 1-D Minimization
=head1 SYNOPSIS
-This module is not yet implemented. Patches Welcome!
+ use Math::GSL::Min qw/:all/;
+ use Math::GSL::Const qw/$M_PI/;
-use Math::GSL::Min qw /:all/;
+ my $m = gsl_min_fminimizer_alloc($gsl_min_fminimizer_goldensection);
+
+ gsl_min_fminimizer_set_with_values($m,
+ sub { cos($_[0]) },
+ 3, cos(3),
+ 0, cos(0),
+ 2*$M_PI, cos(2*$M_PI)
+ );
+ gsl_min_fminimizer_iterate($m);
=head1 DESCRIPTION
@@ -91,9 +100,6 @@ This module also includes the following constants :
For more informations on the functions, we refer you to the GSL offcial
documentation: L<http://www.gnu.org/software/gsl/manual/html_node/>
- Tip : search on google: site:http://www.gnu.org/software/gsl/manual/html_node/ name_of_the_function_you_want
-
-
=head1 AUTHORS
Jonathan "Duke" Leto <jonathan@leto.net> and Thierry Moisan <thierry.moisan@gmail.com>
@@ -108,4 +114,3 @@ under the same terms as Perl itself.
=cut
%}
-

0 comments on commit fbfb9b5

Please sign in to comment.