mathieu functions do not want to work
[Math-GSL.git] / pod / Errno.pod
blobad0b6e78693d4496f6da97e9401c013f44919602
1 %perlcode %{ 
2 @EXPORT_OK = qw/
3                 gsl_error gsl_stream_printf gsl_strerror gsl_set_error_handler 
4                 gsl_set_error_handler_off gsl_set_stream_handler gsl_set_stream 
5                 $GSL_SUCCESS $GSL_FAILURE $GSL_CONTINUE $GSL_EDOM 
6                 $GSL_ERANGE $GSL_EFAULT $GSL_EINVAL $GSL_EFAILED 
7                 $GSL_EFACTOR $GSL_ESANITY $GSL_ENOMEM $GSL_EBADFUNC 
8                 $GSL_ERUNAWAY $GSL_EMAXITER $GSL_EZERODIV $GSL_EBADTOL 
9                 $GSL_ETOL $GSL_EUNDRFLW $GSL_EOVRFLW $GSL_ELOSS 
10                 $GSL_EROUND $GSL_EBADLEN $GSL_ENOTSQR $GSL_ESING 
11                 $GSL_EDIVERGE $GSL_EUNSUP $GSL_EUNIMPL $GSL_ECACHE 
12                 $GSL_ETABLE $GSL_ENOPROG $GSL_ENOPROGJ $GSL_ETOLF 
13                 $GSL_ETOLX $GSL_ETOLG $GSL_EOF 
14             /;
15 %EXPORT_TAGS = ( all => \@EXPORT_OK );
17 =head1 NAME
19 Math::GSL::Errno - Error Handling
21 =cut
23 =head1 SYNOPSIS
25     use Math::GSL::Errno qw/:all/;
26     gsl_set_error_handler_off();
28     print gsl_strerror($GSL_EDOM) . "\n";
30 =head1 STATUS CODES
32 =over 4
34 =item * $GSL_SUCCESS 
36 Success
38 =item * $GSL_FAILURE 
40 General Failure
42 =item * $GSL_CONTINUE 
44 Iteration has not converged
46 =item * $GSL_EDOM
48 Domain error; used by mathematical functions when an argument value does not fall into the domain over which the function is defined (like EDOM in the C library)
50 =item * $GSL_ERANGE
52 Range error; used by mathematical functions when the result value is not representable because of overflow or underflow (like ERANGE in the C library) 
54 =item * $GSL_EFAULT
56 Invalid Pointer
58 =item * $GSL_EINVAL
60 Invalid argument. This is used to indicate various kinds of problems with passing the wrong argument to a library function (like EINVAL in the C library).Invalid argument. This is used to indicate various kinds of problems with passing the wrong argument to a library function (like EINVAL in the C library). 
62 =item * $GSL_EFAILED
64 Generic Failure
66 =item * $GSL_EFACTOR
68 Factorization Failed
70 =item * $GSL_ESANITY
72 Sanity Check Failed
74 =item * $GSL_ENOMEM
76 No memory available. The system cannot allocate more virtual memory because its capacity is full (like ENOMEM in the C library). This error is reported when a GSL routine encounters problems when trying to allocate memory with malloc.
78 =item * $GSL_EBADFUNC
80 Problem with user-supplied function
82 =item * $GSL_ERUNAWAY
84 Iterative process is our of control
86 =item * $GSL_EMAXITER
88 Exceeded max number of iterations
90 =item * $GSL_EZERODIV
92 Division by zero
94 =item * $GSL_EBADTOL
96 Invalid user-specified tolerance
98 =item * $GSL_ETOL
100 Failed to reach the specified tolerance
102 =item * $GSL_EUNDRFLW
104 Underflow
106 =item * $GSL_EOVRFLW
108 Overflow
110 =item * $GSL_ELOSS
112 Loss of accuracy
114 =item * $GSL_EROUND
116 Failed due to roundoff error
118 =item * $GSL_EBADLEN
120 Matrix/vector lengths not compatible
122 =item * $GSL_ENOTSQR
124 Not a square matrix
126 =item * $GSL_ESING
128 Singularity Detected
130 =item * $GSL_EDIVERGE
132 Integral/Series is divergent
134 =item * $GSL_EUNSUP
136 Not supported by hardware
138 =item * $GSL_EUNIMPL
140 Not implemented
142 =item * $GSL_ECACHE
144 Cache limit exceeded
146 =item * $GSL_ETABLE
148 Table limit exceeded
150 =item * $GSL_ENOPROG
152 Iteration not converging
154 =item * $GSL_ENOPROGJ
156 Jacobian not improving solution
158 =item * $GSL_ETOLF
160 Cannot reach tolerance in F
162 =item * $GSL_ETOLX
164 Cannot reach tolerance in X
166 =item * $GSL_ETOLG
168 Cannot reach tolerance in Gradient
170 =item * $GSL_EOF
172 End of file
174 =back
176 =head1 FUNCTIONS
178 =over
180 =item * gsl_error
182 =item * gsl_stream_printf
184 =item * gsl_strerror($gsl_errno) - This function returns a pointer to a string describing the error code gsl_errno. For example, print ("error: gsl_strerror ($status)\n"); would print an error message like error: output range error for a status value of GSL_ERANGE.
186 =item * gsl_set_error_handler 
188 =item * gsl_set_error_handler_off() - This function turns off the error handler by defining an error handler which does nothing. This will cause the program to continue after any error, so the return values from any library routines must be checked. This is the recommended behavior for production programs. The previous handler is returned (so that you can restore it later).
190 =item * gsl_set_stream_handler
192 =item * gsl_set_stream 
194 =back
196 =cut