Browse files

Improve Min docs, #39

  • Loading branch information...
1 parent 49322ca commit 55bacd18557443c25842bf94f82fdbbb28ba9c1c @leto committed Feb 14, 2013
Showing with 6 additions and 2 deletions.
  1. +4 −1 pod/Min.pod
  2. +2 −1 t/Min.t
View
5 pod/Min.pod
@@ -41,7 +41,10 @@ Math::GSL::Min - 1-D Minimization
0, cos(0),
2*$M_PI, cos(2*$M_PI)
);
- gsl_min_fminimizer_iterate($m);
+ my $status = gsl_min_fminimizer_iterate($m);
+ my $min = gsl_min_fminimizer_x_minimum($m);
+ my $lower = gsl_min_fminimizer_x_lower($m);
+ my $upper = gsl_min_fminimizer_x_upper($m);
=head1 DESCRIPTION
View
3 t/Min.t
@@ -90,7 +90,8 @@ sub GSL_MIN_ITERATE : Tests {
0, cos(0),
2*$M_PI, cos(2*$M_PI)
));
- ok_status(gsl_min_fminimizer_iterate($mini));
+ my $status = gsl_min_fminimizer_iterate($mini);
+ ok_status($status);
}
Test::Class->runtests;

0 comments on commit 55bacd1

Please sign in to comment.