Debian Codegraph @

templates/man7/math_error.7.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:30+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "math_error"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2025-05-17"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "math_error - detecting errors from mathematical functions"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "SYNOPSIS"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
61 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
62 #, no-wrap
63 msgid ""
64 "B<#include E<lt>math.hE<gt>>\n"
65 "B<#include E<lt>errno.hE<gt>>\n"
66 "B<#include E<lt>fenv.hE<gt>>\n"
67 msgstr ""
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 #, no-wrap
73 msgid "DESCRIPTION"
74 msgstr ""
75
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 msgid ""
80 "When an error occurs, most library functions indicate this fact by returning "
81 "a special value (e.g., -1 or NULL). Because they typically return a "
82 "floating-point number, the mathematical functions declared in "
83 "I<E<lt>math.hE<gt>> indicate an error using other mechanisms. There are two "
84 "error-reporting mechanisms: the older one sets I<errno>; the newer one uses "
85 "the floating-point exception mechanism (the use of B<feclearexcept>(3) and "
86 "B<fetestexcept>(3), as outlined below) described in B<fenv>(3)."
87 msgstr ""
88
89 #. type: Plain text
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 msgid ""
93 "A portable program that needs to check for an error from a mathematical "
94 "function should set I<errno> to zero, and make the following call"
95 msgstr ""
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 #, no-wrap
101 msgid "feclearexcept(FE_ALL_EXCEPT);\n"
102 msgstr ""
103
104 #. type: Plain text
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 msgid "before calling a mathematical function."
108 msgstr ""
109
110 #. type: Plain text
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 msgid ""
114 "Upon return from the mathematical function, if I<errno> is nonzero, or the "
115 "following call (see B<fenv>(3)) returns nonzero"
116 msgstr ""
117
118 #. type: Plain text
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 #, no-wrap
122 msgid ""
123 "fetestexcept(FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW |\n"
124 " FE_UNDERFLOW);\n"
125 msgstr ""
126
127 #. enum
128 #. {
129 #. FE_INVALID = 0x01,
130 #. __FE_DENORM = 0x02,
131 #. FE_DIVBYZERO = 0x04,
132 #. FE_OVERFLOW = 0x08,
133 #. FE_UNDERFLOW = 0x10,
134 #. FE_INEXACT = 0x20
135 #. };
136 #. type: Plain text
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 msgid "then an error occurred in the mathematical function."
140 msgstr ""
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 msgid ""
146 "The error conditions that can occur for mathematical functions are described "
147 "below."
148 msgstr ""
149
150 #. type: SS
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 #, no-wrap
154 msgid "Domain error"
155 msgstr ""
156
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 msgid ""
161 "A I<domain error> occurs when a mathematical function is supplied with an "
162 "argument whose value falls outside the domain for which the function is "
163 "defined (e.g., giving a negative argument to B<log>(3)). When a domain "
164 "error occurs, math functions commonly return a NaN (though some functions "
165 "return a different value in this case); I<errno> is set to B<EDOM>, and an "
166 "\"invalid\" (B<FE_INVALID>) floating-point exception is raised."
167 msgstr ""
168
169 #. type: SS
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 #, no-wrap
173 msgid "Pole error"
174 msgstr ""
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid ""
180 "A I<pole error> occurs when the mathematical result of a function is an "
181 "exact infinity (e.g., the logarithm of 0 is negative infinity). When a pole "
182 "error occurs, the function returns the (signed) value B<HUGE_VAL>, "
183 "B<HUGE_VALF>, or B<HUGE_VALL>, depending on whether the function result type "
184 "is I<double>, I<float>, or I<long double>. The sign of the result is that "
185 "which is mathematically correct for the function. I<errno> is set to "
186 "B<ERANGE>, and a \"divide-by-zero\" (B<FE_DIVBYZERO>) floating-point "
187 "exception is raised."
188 msgstr ""
189
190 #. type: SS
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 #, no-wrap
194 msgid "Range error"
195 msgstr ""
196
197 #. type: Plain text
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 msgid ""
201 "A I<range error> occurs when the magnitude of the function result means that "
202 "it cannot be represented in the result type of the function. The return "
203 "value of the function depends on whether the range error was an overflow or "
204 "an underflow."
205 msgstr ""
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 msgid ""
211 "A floating result I<overflows> if the result is finite, but is too large to "
212 "represented in the result type. When an overflow occurs, the function "
213 "returns the value B<HUGE_VAL>, B<HUGE_VALF>, or B<HUGE_VALL>, depending on "
214 "whether the function result type is I<double>, I<float>, or I<long double>. "
215 "I<errno> is set to B<ERANGE>, and an \"overflow\" (B<FE_OVERFLOW>) floating-"
216 "point exception is raised."
217 msgstr ""
218
219 #. type: Plain text
220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
222 msgid ""
223 "A floating result I<underflows> if the result is too small to be represented "
224 "in the result type. If an underflow occurs, a mathematical function "
225 "typically returns 0.0 (C99 says a function shall return \"an implementation-"
226 "defined value whose magnitude is no greater than the smallest normalized "
227 "positive number in the specified type\"). I<errno> may be set to B<ERANGE>, "
228 "and an \"underflow\" (B<FE_UNDERFLOW>) floating-point exception may be "
229 "raised."
230 msgstr ""
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 msgid ""
236 "Some functions deliver a range error if the supplied argument value, or the "
237 "correct function result, would be I<subnormal>. A subnormal value is one "
238 "that is nonzero, but with a magnitude that is so small that it can't be "
239 "presented in normalized form (i.e., with a 1 in the most significant bit of "
240 "the significand). The representation of a subnormal number will contain one "
241 "or more leading zeros in the significand."
242 msgstr ""
243
244 #. type: SH
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 #, no-wrap
248 msgid "NOTES"
249 msgstr ""
250
251 #. See CONFORMANCE in the glibc 2.8 (and earlier) source.
252 #. type: Plain text
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 msgid ""
256 "The I<math_errhandling> identifier specified by C99 and POSIX.1 is not "
257 "supported by glibc. This identifier is supposed to indicate which of the "
258 "two error-notification mechanisms (I<errno>, exceptions retrievable via "
259 "B<fetestexcept>(3)) is in use. The standards require that at least one be "
260 "in use, but permit both to be available. The current (glibc 2.8) situation "
261 "under glibc is messy. Most (but not all) functions raise exceptions on "
262 "errors. Some also set I<errno>. A few functions set I<errno>, but don't "
263 "raise an exception. A very few functions do neither. See the individual "
264 "manual pages for details."
265 msgstr ""
266
267 #. http://www.securecoding.cert.org/confluence/display/seccode/FLP32-C.+Prevent+or+detect+domain+and+range+errors+in+math+functions
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 msgid ""
272 "To avoid the complexities of using I<errno> and B<fetestexcept>(3) for "
273 "error checking, it is often advised that one should instead check for bad "
274 "argument values before each call. For example, the following code ensures "
275 "that B<log>(3)'s argument is not a NaN and is not zero (a pole error) or "
276 "less than zero (a domain error):"
277 msgstr ""
278
279 #. type: Plain text
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid ""
284 "double x, r;\n"
285 "\\&\n"
286 "if (isnan(x) || islessequal(x, 0)) {\n"
287 " /* Deal with NaN / pole error / domain error */\n"
288 "}\n"
289 "\\&\n"
290 "r = log(x);\n"
291 msgstr ""
292
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 msgid ""
297 "The discussion on this page does not apply to the complex mathematical "
298 "functions (i.e., those declared by I<E<lt>complex.hE<gt>>), which in general "
299 "are not required to return errors by C99 and POSIX.1."
300 msgstr ""
301
302 #. type: Plain text
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 msgid ""
306 "The B<gcc>(1) I<-fno-math-errno> option causes the executable to employ "
307 "implementations of some mathematical functions that are faster than the "
308 "standard implementations, but do not set I<errno> on error. (The B<gcc>(1) "
309 "I<-ffast-math> option also enables I<-fno-math-errno>.) An error can still "
310 "be tested for using B<fetestexcept>(3)."
311 msgstr ""
312
313 #. type: SH
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, no-wrap
317 msgid "SEE ALSO"
318 msgstr ""
319
320 #. type: Plain text
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 msgid ""
324 "B<gcc>(1), B<errno>(3), B<fenv>(3), B<fpclassify>(3), B<INFINITY>(3), "
325 "B<isgreater>(3), B<matherr>(3), B<nan>(3)"
326 msgstr ""
327
328 #. type: Plain text
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 msgid "I<info libc>"
332 msgstr ""
333
334 #. type: TH
335 #: debian-trixie fedora-44 fedora-rawhide
336 #, no-wrap
337 msgid "2024-05-02"
338 msgstr ""
339
340 #. type: TH
341 #: debian-trixie
342 #, no-wrap
343 msgid "Linux man-pages 6.9.1"
344 msgstr ""
345
346 #. type: TH
347 #: fedora-44 fedora-rawhide
348 #, no-wrap
349 msgid "Linux man-pages 6.13"
350 msgstr ""
351
352 #. type: TH
353 #: mageia-cauldron
354 #, no-wrap
355 msgid "Linux man-pages 6.17"
356 msgstr ""
357
358 #. type: TH
359 #: opensuse-leap-16-1 opensuse-tumbleweed
360 #, no-wrap
361 msgid "Linux man-pages (unreleased)"
362 msgstr ""