Debian Codegraph @

po/ko/man1/bc.1.po

raw
1 # Korean translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 msgid ""
5 msgstr ""
6 "Project-Id-Version: manpages-l10n\n"
7 "POT-Creation-Date: 2026-02-27 18:41+0100\n"
8 "PO-Revision-Date: 2000-04-21 08:57+0900\n"
9 "Last-Translator: Unknown <>\n"
10 "Language-Team: Korean <[email protected]>\n"
11 "Language: ko\n"
12 "MIME-Version: 1.0\n"
13 "Content-Type: text/plain; charset=UTF-8\n"
14 "Content-Transfer-Encoding: 8bit\n"
15 "Plural-Forms: nplurals=1; plural=0;\n"
16
17 #. type: TH
18 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
19 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
20 #, no-wrap
21 msgid "bc"
22 msgstr "bc"
23
24 #. type: TH
25 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
26 #, no-wrap
27 msgid "2025-01-10"
28 msgstr "2025년 1월 10일"
29
30 #. type: TH
31 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
32 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
33 #, no-wrap
34 msgid "GNU Project"
35 msgstr ""
36
37 #. type: SH
38 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
39 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
40 #, no-wrap
41 msgid "NAME"
42 msgstr "이름"
43
44 #. type: Plain text
45 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
46 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
47 msgid "bc - An arbitrary precision calculator language"
48 msgstr "bc - 무한 정확도 계산기 언어"
49
50 #. type: SH
51 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
52 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
53 #, no-wrap
54 msgid "SYNTAX"
55 msgstr "문법"
56
57 #. type: Plain text
58 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
59 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
60 #, fuzzy
61 msgid "B<bc> [ B<-hlwsqv> ] [long-options] [ I< file ...> ]"
62 msgstr "B<bc> [ B<-lws> ] [ I< 화일 ...> ]"
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "DESCRIPTION"
69 msgstr "설명"
70
71 #. type: Plain text
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 msgid ""
75 "B<bc> is a language that supports arbitrary precision numbers with "
76 "interactive execution of statements. There are some similarities in the "
77 "syntax to the C programming language. A standard math library is available "
78 "by command line option. If requested, the math library is defined before "
79 "processing any files. B<bc> starts by processing code from all the files "
80 "listed on the command line in the order listed. After all files have been "
81 "processed, B<bc> reads from the standard input. All code is executed as it "
82 "is read. (If a file contains a command to halt the processor, B<bc> will "
83 "never read from the standard input.)"
84 msgstr ""
85 "B<bc> 는 대화형으로 문장을 실행하는 무한 정확도의 숫자를 지원하는 언어이며 약"
86 "간 C 언어와 비슷한 문법을 가지고 있다. 명령행 옵션을 주면 표준 수학 라이브러"
87 "리를 사용할 수 있다. 옵션을 주면 화일들을 처리하기에 앞서 수학 라이브러리가 "
88 "정의된다. B<bc> 는 우선 명령에서 주어진 화일 순서대로 처리한다. 화일을 모"
89 "두 처리한 후 B<bc> 는 표준 입력을 읽는다. 모든 코드는 읽는 즉시 실행된다. "
90 "( 만약 화일 내의 코드에 처리를 중지하라는 명령이 있다면 B<bc>는 표준입력에서 "
91 "읽지 않을 것이다. )"
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 msgid ""
97 "This version of B<bc> contains several extensions beyond traditional B<bc> "
98 "implementations and the POSIX draft standard. Command line options can "
99 "cause these extensions to print a warning or to be rejected. This document "
100 "describes the language accepted by this processor. Extensions will be "
101 "identified as such."
102 msgstr ""
103 "B<bc> 현재 버전에서는 전통적인 B<bc> 기능과 POSIX 표준 이외의 확장 기능을 포"
104 "함하고 있다. 명령행 옵션을 주면 확장 기능에 대한 경고 메세지를 보여주고 처리"
105 "를 무시하게 할 수 있다. 이 문서에서는 GNU 버전의 처리기에서 사용하는 언어를 "
106 "설명한다. 확장 기능도 같이 설명한다."
107
108 #. type: SS
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 #, no-wrap
112 msgid "OPTIONS"
113 msgstr "옵션"
114
115 #. type: IP
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 #, no-wrap
119 msgid "-h, --help"
120 msgstr "-h, --help"
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 #, fuzzy
126 #| msgid "Print a help message and exit."
127 msgid "Print the usage and exit."
128 msgstr "도움말 메시지를 출력하고 나갑니다."
129
130 #. type: IP
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 #, no-wrap
134 msgid "-i, --interactive"
135 msgstr ""
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 msgid "Force interactive mode."
141 msgstr ""
142
143 #. type: IP
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 #, fuzzy, no-wrap
147 #| msgid "--mathlib"
148 msgid "-l, --mathlib"
149 msgstr "--mathlib"
150
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 msgid "Define the standard math library."
155 msgstr "표준 수학 라이브러리를 정의한다."
156
157 #. type: IP
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 #, fuzzy, no-wrap
161 #| msgid "--warn"
162 msgid "-w, --warn"
163 msgstr "--warn"
164
165 #. type: Plain text
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 msgid "Give warnings for extensions to POSIX B<bc>."
169 msgstr "POSIX B<bc>에 대한 확장기능에 대하여 경고 메세지를 보여준다."
170
171 #. type: IP
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 #, fuzzy, no-wrap
175 #| msgid "--standard"
176 msgid "-s, --standard"
177 msgstr "--standard"
178
179 #. type: Plain text
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 msgid "Process exactly the POSIX B<bc> language."
183 msgstr "POSIX B<bc> 언어로만 작동하게 한다."
184
185 #. type: IP
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 #, no-wrap
189 msgid "-q, --quiet"
190 msgstr "-q, --quiet"
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid "Do not print the normal GNU bc welcome."
196 msgstr ""
197
198 #. type: IP
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 #, fuzzy, no-wrap
202 #| msgid "B<-V, --version>"
203 msgid "-v, --version"
204 msgstr "B<-V, --version>"
205
206 #. type: Plain text
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 msgid "Print the version number and copyright and quit."
210 msgstr ""
211
212 #. type: SS
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 #, no-wrap
216 msgid "NUMBERS"
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 #, fuzzy
223 #| msgid ""
224 #| "The most basic element in B<bc> is the number. Numbers are arbitrary "
225 #| "precision numbers. This precision is both in the integer part and the "
226 #| "fractional part. All numbers are represented internally in decimal and "
227 #| "all computation is done in decimal. (This version truncates results from "
228 #| "divide and multiply operations.) There are two attributes of numbers, "
229 #| "the length and the scale. The length is the total number of significant "
230 #| "decimal digits in a number and the scale is the total number of decimal "
231 #| "digits after the decimal point. For example:"
232 msgid ""
233 "The most basic element in B<bc> is the number. Numbers are arbitrary "
234 "precision numbers. This precision is both in the integer part and the "
235 "fractional part. All numbers are represented internally in decimal and all "
236 "computation is done in decimal. (This version truncates results from divide "
237 "and multiply operations.) There are two attributes of numbers, the length "
238 "and the scale. The length is the total number of decimal digits used by "
239 "B<bc> to represent a number and the scale is the total number of decimal "
240 "digits after the decimal point. For example:"
241 msgstr ""
242 "B<bc>에서 가장 기본적인 요소는 바로 숫자이다. 숫자는 임의 자리의 정확도를 갖"
243 "는 숫자이다. 정확도란 정수 부분과 분수 부분을 모두 포함한다. 모든 숫자는 내"
244 "부적으로 10 진수 처리하며 10 진수로 계산이 이뤄진다. (이번 버전에서는 나누"
245 "기, 곱하기의 결과에 대하여 버림을 한다 ) 숫자에는 두 가지 구성요소가 있는데 "
246 "길이(length)와 스케일(scale)이 바로 그것이 다. 길이는 숫자의 유효 숫자 갯수이"
247 "며 스케일은 소수점 이하의 자리수를 말한다. 예를 들자면:"
248
249 #. type: Plain text
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid ""
254 " .000001 has a length of 6 and scale of 6.\n"
255 " 1935.000 has a length of 7 and a scale of 3.\n"
256 msgstr ""
257 " .000001 은 길이 6, 스케일 6 이다.\n"
258 " 1935.000 은 길이 7, 스케일 3 이다.\n"
259
260 #. type: SS
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, no-wrap
264 msgid "VARIABLES"
265 msgstr "변수"
266
267 #. type: Plain text
268 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
269 #, fuzzy
270 msgid ""
271 "Numbers are stored in two types of variables, simple variables and arrays. "
272 "Both simple variables and array variables are named. Names begin with a "
273 "letter followed by any number of letters, digits and underscores. All "
274 "letters must be lower case. (Full alphanumeric names are an extension. In "
275 "POSIX B<bc> all names are a single lower case letter.) The type of variable "
276 "is clear by the context because all array variable names will be followed by "
277 "brackets ([])."
278 msgstr ""
279 "숫자는 두 가지 형태의 변수, 일반 변수 또는 배열에 저장된다. 둘 다 모두 이름"
280 "을 가진다. 이름은 문자 다음에 문자, 숫자, 언더스코어(_)를 쓰며 길이에는 제한"
281 "이 없다. arrays. Both simple variables and array variables are named. "
282 "Names begin with a letter followed by any number of letters, digits and "
283 "underscores. All letters must be lower case. (Full alpha-numeric names are "
284 "an extension. In POSIX B<bc> all names are a single lower case letter.) The "
285 "type of variable is clear by the context because all array variable names "
286 "will be followed by brackets ([])."
287
288 #. type: Plain text
289 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
290 #: opensuse-tumbleweed
291 msgid ""
292 "There are four special variables, B<scale, ibase, obase,> and B<last>. "
293 "B<scale> defines how some operations use digits after the decimal point. "
294 "The default value of B<scale> is 0. B<ibase> and B<obase> define the "
295 "conversion base for input and output numbers. The default for both input "
296 "and output is base 10. B<last> (an extension) is a variable that has the "
297 "value of the last printed number. These will be discussed in further detail "
298 "where appropriate. All of these variables may have values assigned to them "
299 "as well as used in expressions."
300 msgstr ""
301
302 #. type: SS
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 #, no-wrap
306 msgid "COMMENTS"
307 msgstr "주석(COMMENTS)"
308
309 #. type: Plain text
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 msgid ""
313 "Comments in B<bc> start with the characters B</*> and end with the "
314 "characters B<*/>. Comments may start anywhere and appear as a single space "
315 "in the input. (This causes comments to delimit other input items. For "
316 "example, a comment can not be found in the middle of a variable name.) "
317 "Comments include any newlines (end of line) between the start and the end of "
318 "the comment."
319 msgstr ""
320
321 #. type: Plain text
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 msgid ""
325 "To support the use of scripts for B<bc>, a single line comment has been "
326 "added as an extension. A single line comment starts at a B<#> character and "
327 "continues to the next end of the line. The end of line character is not "
328 "part of the comment and is processed normally."
329 msgstr ""
330
331 #. type: SS
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 #, no-wrap
335 msgid "EXPRESSIONS"
336 msgstr ""
337
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 msgid ""
342 "The numbers are manipulated by expressions and statements. Since the "
343 "language was designed to be interactive, statements and expressions are "
344 "executed as soon as possible. There is no \"main\" program. Instead, code "
345 "is executed as it is encountered. (Functions, discussed in detail later, "
346 "are defined when encountered.)"
347 msgstr ""
348
349 #. type: Plain text
350 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
351 msgid ""
352 "A simple expression is just a constant. B<bc> converts constants into "
353 "internal decimal numbers using the current input base, specified by the "
354 "variable B<ibase>. (There is an exception in functions.) The valid values "
355 "for B<ibase> are 2 through 36. (Bases greater than 16 are an extension.) "
356 "Assigning a value outside this range to B<ibase> will result in a value of 2 "
357 "or 36. Input numbers may contain the characters 0\\(en9 and A\\(enZ. "
358 "(Note: They must be capitals. Lower case letters are variable names.) "
359 "Single digit numbers always have the value of the digit regardless of the "
360 "value of B<ibase>. (i.e.\\& A = 10.) For multi-digit numbers, B<bc> changes "
361 "all input digits greater or equal to ibase to the value of B<ibase>-1. This "
362 "makes the number B<ZZZ> always be the largest 3 digit number of the input "
363 "base."
364 msgstr ""
365
366 #. type: Plain text
367 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
368 msgid ""
369 "Full expressions are similar to many other high level languages. Since "
370 "there is only one kind of number, there are no rules for mixing types. "
371 "Instead, there are rules on the scale of expressions. Every expression has "
372 "a scale. This is derived from the scale of original numbers, the operation "
373 "performed and in many cases, the value of the variable B<scale>. Valid "
374 "values of the variable B<scale> are 0 to the maximum number representable by "
375 "a C integer."
376 msgstr ""
377
378 #. type: Plain text
379 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
380 msgid ""
381 "In the following descriptions of valid expressions, \"expr\" refers to a "
382 "complete expression and \"var\" refers to a simple or an array variable. A "
383 "simple variable is just a"
384 msgstr ""
385
386 #. type: Plain text
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 msgid "I<name>"
390 msgstr ""
391
392 #. type: Plain text
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 msgid "and an array variable is specified as"
396 msgstr ""
397
398 #. #-#-#-#-# archlinux: bc.1.pot (PACKAGE VERSION) #-#-#-#-#
399 #. type: Plain text
400 #. #-#-#-#-# debian-trixie: bc.1.pot (PACKAGE VERSION) #-#-#-#-#
401 #. \fIname\fR[\fIexpr\fR]
402 #. type: Plain text
403 #. #-#-#-#-# debian-unstable: bc.1.pot (PACKAGE VERSION) #-#-#-#-#
404 #. \fIname\fR[\fIexpr\fR]
405 #. type: Plain text
406 #. #-#-#-#-# fedora-44: bc.1.pot (PACKAGE VERSION) #-#-#-#-#
407 #. type: Plain text
408 #. #-#-#-#-# fedora-rawhide: bc.1.pot (PACKAGE VERSION) #-#-#-#-#
409 #. type: Plain text
410 #. #-#-#-#-# mageia-cauldron: bc.1.pot (PACKAGE VERSION) #-#-#-#-#
411 #. type: Plain text
412 #. #-#-#-#-# opensuse-leap-16-1: bc.1.pot (PACKAGE VERSION) #-#-#-#-#
413 #. type: Plain text
414 #. #-#-#-#-# opensuse-tumbleweed: bc.1.pot (PACKAGE VERSION) #-#-#-#-#
415 #. type: Plain text
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 msgid "I<name>[I<expr>]"
419 msgstr ""
420
421 #. type: Plain text
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 msgid ""
425 "Unless specifically mentioned the scale of the result is the maximum scale "
426 "of the expressions involved."
427 msgstr ""
428
429 #. type: IP
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "- expr"
434 msgstr ""
435
436 #. type: Plain text
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 msgid "The result is the negation of the expression."
440 msgstr ""
441
442 #. type: IP
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "++ var"
447 msgstr ""
448
449 #. type: Plain text
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 msgid ""
453 "The variable is incremented by one and the new value is the result of the "
454 "expression."
455 msgstr ""
456
457 #. type: IP
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 #, no-wrap
461 msgid "-- var"
462 msgstr ""
463
464 #. type: Plain text
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 msgid ""
468 "The variable is decremented by one and the new value is the result of the "
469 "expression."
470 msgstr ""
471
472 #. type: IP
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 #, no-wrap
476 msgid "var ++"
477 msgstr ""
478
479 #. type: Plain text
480 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
481 msgid ""
482 "The result of the expression is the value of the variable and then the "
483 "variable is incremented by one."
484 msgstr ""
485
486 #. type: IP
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 #, no-wrap
490 msgid "var --"
491 msgstr ""
492
493 #. type: Plain text
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 msgid ""
497 "The result of the expression is the value of the variable and then the "
498 "variable is decremented by one."
499 msgstr ""
500
501 #. type: IP
502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
504 #, no-wrap
505 msgid "expr + expr"
506 msgstr ""
507
508 #. type: Plain text
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 msgid "The result of the expression is the sum of the two expressions."
512 msgstr ""
513
514 #. type: IP
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 #, no-wrap
518 msgid "expr - expr"
519 msgstr ""
520
521 #. type: Plain text
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 msgid "The result of the expression is the difference of the two expressions."
525 msgstr ""
526
527 #. type: IP
528 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
529 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
530 #, no-wrap
531 msgid "expr * expr"
532 msgstr ""
533
534 #. type: Plain text
535 #: archlinux debian-trixie debian-unstable mageia-cauldron opensuse-leap-16-1
536 #: opensuse-tumbleweed
537 msgid "The result of the expression is the product of the two expressions."
538 msgstr ""
539
540 #. type: IP
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 #, no-wrap
544 msgid "expr / expr"
545 msgstr ""
546
547 #. type: Plain text
548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
550 msgid ""
551 "The result of the expression is the quotient of the two expressions. The "
552 "scale of the result is the value of the variable B<scale>."
553 msgstr ""
554
555 #. type: IP
556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
558 #, no-wrap
559 msgid "expr % expr"
560 msgstr ""
561
562 #. type: Plain text
563 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
564 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
565 msgid ""
566 "The result of the expression is the \"remainder\" and it is computed in the "
567 "following way. To compute a%b, first a/b is computed to B<scale> digits. "
568 "That result is used to compute a-(a/b)*b to the scale of the maximum of "
569 "B<scale>+scale(b) and scale(a). If B<scale> is set to zero and both "
570 "expressions are integers this expression is the integer remainder function."
571 msgstr ""
572
573 #. type: IP
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 #, no-wrap
577 msgid "expr ^ expr"
578 msgstr ""
579
580 #. type: Plain text
581 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
582 msgid ""
583 "The result of the expression is the value of the first raised to the second. "
584 "The second expression must be an integer. (If the second expression is not "
585 "an integer, a warning is generated and the expression is truncated to get an "
586 "integer value.) The scale of the result is B<scale> if the exponent is "
587 "negative. If the exponent is positive the scale of the result is the "
588 "minimum of the scale of the first expression times the value of the exponent "
589 "and the maximum of B<scale> and the scale of the first expression. (e.g.\\& "
590 "scale(a^b) = min(scale(a)*b, max( B<scale,> scale(a))).) It should be "
591 "noted that expr^0 will always return the value of 1."
592 msgstr ""
593
594 #. type: IP
595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
597 #, no-wrap
598 msgid "( expr )"
599 msgstr ""
600
601 #. type: Plain text
602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
604 msgid ""
605 "This alters the standard precedence to force the evaluation of the "
606 "expression."
607 msgstr ""
608
609 #. type: IP
610 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
611 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
612 #, no-wrap
613 msgid "var = expr"
614 msgstr ""
615
616 #. type: Plain text
617 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
618 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
619 msgid "The variable is assigned the value of the expression."
620 msgstr ""
621
622 #. type: IP
623 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
624 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
625 #, no-wrap
626 msgid "var E<lt>opE<gt>= expr"
627 msgstr ""
628
629 #. type: Plain text
630 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
631 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
632 msgid ""
633 "This is equivalent to \"var = var E<lt>opE<gt> expr\" with the exception "
634 "that the \"var\" part is evaluated only once. This can make a difference if "
635 "\"var\" is an array."
636 msgstr ""
637
638 #. type: Plain text
639 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
640 msgid ""
641 "Relational expressions are a special kind of expression that always evaluate "
642 "to 0 or 1, 0 if the relation is false and 1 if the relation is true. These "
643 "may appear in any valid expression. (POSIX bc requires that relational "
644 "expressions are used only in if, while, and for statements and that only one "
645 "relational test may be done in them.) The relational operators are"
646 msgstr ""
647
648 #. type: IP
649 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
650 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
651 #, no-wrap
652 msgid "expr1 E<lt> expr2"
653 msgstr ""
654
655 #. type: Plain text
656 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
657 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
658 msgid "The result is 1 if expr1 is strictly less than expr2."
659 msgstr ""
660
661 #. type: IP
662 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
663 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
664 #, no-wrap
665 msgid "expr1 E<lt>= expr2"
666 msgstr ""
667
668 #. type: Plain text
669 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
670 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
671 msgid "The result is 1 if expr1 is less than or equal to expr2."
672 msgstr ""
673
674 #. type: IP
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 #, no-wrap
678 msgid "expr1 E<gt> expr2"
679 msgstr ""
680
681 #. type: Plain text
682 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
683 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
684 msgid "The result is 1 if expr1 is strictly greater than expr2."
685 msgstr ""
686
687 #. type: IP
688 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
689 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
690 #, no-wrap
691 msgid "expr1 E<gt>= expr2"
692 msgstr ""
693
694 #. type: Plain text
695 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
696 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
697 msgid "The result is 1 if expr1 is greater than or equal to expr2."
698 msgstr ""
699
700 #. type: IP
701 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
702 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
703 #, no-wrap
704 msgid "expr1 == expr2"
705 msgstr ""
706
707 #. type: Plain text
708 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
709 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
710 msgid "The result is 1 if expr1 is equal to expr2."
711 msgstr ""
712
713 #. type: IP
714 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
715 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
716 #, no-wrap
717 msgid "expr1 != expr2"
718 msgstr ""
719
720 #. type: Plain text
721 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
722 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
723 msgid "The result is 1 if expr1 is not equal to expr2."
724 msgstr ""
725
726 #. type: Plain text
727 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
728 msgid ""
729 "Boolean operations are also valid. (POSIX B<bc> does NOT have boolean "
730 "operations). The result of all boolean operations are 0 and 1 (for false and "
731 "true) as in relational expressions. The boolean operators are:"
732 msgstr ""
733
734 #. type: IP
735 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
736 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
737 #, no-wrap
738 msgid "!expr"
739 msgstr ""
740
741 #. type: Plain text
742 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
743 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
744 msgid "The result is 1 if expr is 0."
745 msgstr ""
746
747 #. type: IP
748 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
749 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
750 #, no-wrap
751 msgid "expr && expr"
752 msgstr ""
753
754 #. type: Plain text
755 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
756 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
757 msgid "The result is 1 if both expressions are non-zero."
758 msgstr ""
759
760 #. type: IP
761 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
762 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
763 #, no-wrap
764 msgid "expr || expr"
765 msgstr ""
766
767 #. type: Plain text
768 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
769 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
770 msgid "The result is 1 if either expression is non-zero."
771 msgstr ""
772
773 #. type: Plain text
774 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
775 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
776 msgid "The expression precedence is as follows: (lowest to highest)"
777 msgstr ""
778
779 #. type: Plain text
780 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
781 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
782 #, no-wrap
783 msgid ""
784 "|| operator, left associative\n"
785 "&& operator, left associative\n"
786 "! operator, nonassociative\n"
787 "Relational operators, left associative\n"
788 "Assignment operator, right associative\n"
789 "+ and - operators, left associative\n"
790 "*, / and % operators, left associative\n"
791 "^ operator, right associative\n"
792 "unary - operator, nonassociative\n"
793 "++ and -- operators, nonassociative\n"
794 msgstr ""
795
796 #. type: Plain text
797 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
798 #: opensuse-tumbleweed
799 msgid ""
800 "This precedence was chosen so that POSIX compliant B<bc> programs will run "
801 "correctly. This will cause the use of the relational and logical operators "
802 "to have some unusual behavior when used with assignment expressions. "
803 "Consider the expression:"
804 msgstr ""
805
806 #. type: Plain text
807 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
808 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
809 msgid "a = 3 E<lt> 5"
810 msgstr "a = 3 E<lt> 5"
811
812 #. type: Plain text
813 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
814 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
815 msgid ""
816 "Most C programmers would assume this would assign the result of \"3 E<lt> "
817 "5\" (the value 1) to the variable \"a\". What this does in B<bc> is assign "
818 "the value 3 to the variable \"a\" and then compare 3 to 5. It is best to "
819 "use parenthesis when using relational and logical operators with the "
820 "assignment operators."
821 msgstr ""
822
823 #. type: Plain text
824 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
825 #: opensuse-tumbleweed
826 msgid ""
827 "There are a few more special expressions that are provided in B<bc>. These "
828 "have to do with user defined functions and standard functions. They all "
829 "appear as \"I<name>B<(>I<parameters>B<)>\". See the section on functions "
830 "for user defined functions. The standard functions are:"
831 msgstr ""
832
833 #. type: IP
834 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
835 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
836 #, no-wrap
837 msgid "length ( expression )"
838 msgstr ""
839
840 #. type: Plain text
841 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
842 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
843 msgid ""
844 "The value of the length function is the number of significant digits in the "
845 "expression."
846 msgstr ""
847
848 #. type: IP
849 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
850 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
851 #, no-wrap
852 msgid "read ( )"
853 msgstr "read ( )"
854
855 #. type: Plain text
856 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
857 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
858 msgid ""
859 "The read function (an extension) will read a number from the standard input, "
860 "regardless of where the function occurs. Beware, this can cause problems "
861 "with the mixing of data and program in the standard input. The best use for "
862 "this function is in a previously written program that needs input from the "
863 "user, but never allows program code to be input from the user. The value of "
864 "the read function is the number read from the standard input using the "
865 "current value of the variable B<ibase> for the conversion base."
866 msgstr ""
867
868 #. type: IP
869 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
870 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
871 #, no-wrap
872 msgid "scale ( expression )"
873 msgstr ""
874
875 #. type: Plain text
876 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
877 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
878 msgid ""
879 "The value of the scale function is the number of digits after the decimal "
880 "point in the expression."
881 msgstr ""
882
883 #. type: IP
884 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
885 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
886 #, no-wrap
887 msgid "sqrt ( expression )"
888 msgstr ""
889
890 #. type: Plain text
891 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
892 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
893 msgid ""
894 "The value of the sqrt function is the square root of the expression. If the "
895 "expression is negative, a run time error is generated."
896 msgstr ""
897
898 #. type: SS
899 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
900 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
901 #, no-wrap
902 msgid "STATEMENTS"
903 msgstr ""
904
905 #. type: Plain text
906 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
907 msgid ""
908 "Statements (as in most algebraic languages) provide the sequencing of "
909 "expression evaluation. In B<bc> statements are executed \"as soon as "
910 "possible\". Execution happens when a newline in encountered and there is "
911 "one or more complete statements. Due to this immediate execution, newlines "
912 "are very important in B<bc>. In fact, both a semicolon and a newline are "
913 "used as statement separators. An improperly placed newline will cause a "
914 "syntax error. Because newlines are statement separators, it is possible to "
915 "hide a newline by using the backslash character. The sequence "
916 "\"\\eE<lt>nlE<gt>\", where E<lt>nlE<gt> is the newline appears to B<bc> as "
917 "whitespace instead of a newline. A statement list is a series of statements "
918 "separated by semicolons and newlines. The following is a list of B<bc> "
919 "statements and what they do: (Things enclosed in brackets ([]) are optional "
920 "parts of the statement.)"
921 msgstr ""
922
923 #. type: IP
924 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
925 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
926 #, no-wrap
927 msgid "expression"
928 msgstr ""
929
930 #. type: Plain text
931 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
932 msgid ""
933 "This statement does one of two things. If the expression starts with "
934 "\"E<lt>variableE<gt> E<lt>assignmentE<gt> ...\", it is considered to be an "
935 "assignment statement. If the expression is not an assignment statement, the "
936 "expression is evaluated and printed to the output. After the number is "
937 "printed, a newline is printed. For example, \"a=1\" is an assignment "
938 "statement and \"(a=1)\" is an expression that has an embedded assignment. "
939 "All numbers that are printed are printed in the base specified by the "
940 "variable B<obase>. The valid values for B<obase> are 2 through "
941 "BC_BASE_MAX. (See the section LIMITS.) For bases 2 through 16, the usual "
942 "method of writing numbers is used. For bases greater than 16, B<bc> uses a "
943 "multi-character digit method of printing the numbers where each higher base "
944 "digit is printed as a base 10 number. The multi-character digits are "
945 "separated by spaces. Each digit contains the number of characters required "
946 "to represent the base ten value of \"obase-1\". Since numbers are of "
947 "arbitrary precision, some numbers may not be printable on a single output "
948 "line. These long numbers will be split across lines using the \"\\e\" as "
949 "the last character on a line. The maximum number of characters printed per "
950 "line is 70. Due to the interactive nature of B<bc>, printing a number "
951 "causes the side effect of assigning the printed value to the special "
952 "variable B<last>. This allows the user to recover the last value printed "
953 "without having to retype the expression that printed the number. Assigning "
954 "to B<last> is valid and will overwrite the last printed value with the "
955 "assigned value. The newly assigned value will remain until the next number "
956 "is printed or another value is assigned to B<last>. (Some installations may "
957 "allow the use of a single period (.) which is not part of a number as a "
958 "short hand notation for B<last>.)"
959 msgstr ""
960
961 #. type: IP
962 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
963 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
964 #, no-wrap
965 msgid "string"
966 msgstr ""
967
968 #. type: Plain text
969 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
970 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
971 msgid ""
972 "The string is printed to the output. Strings start with a double quote "
973 "character and contain all characters until the next double quote character. "
974 "All characters are take literally, including any newline. No newline "
975 "character is printed after the string."
976 msgstr ""
977
978 #. type: IP
979 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
980 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
981 #, no-wrap
982 msgid "B<print> list"
983 msgstr ""
984
985 #. type: Plain text
986 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
987 #: opensuse-tumbleweed
988 msgid ""
989 "The print statement (an extension) provides another method of output. The "
990 "\"list\" is a list of strings and expressions separated by commas. Each "
991 "string or expression is printed in the order of the list. No terminating "
992 "newline is printed. Expressions are evaluated and their value is printed "
993 "and assigned to the variable B<last>. Strings in the print statement are "
994 "printed to the output and may contain special characters. Special "
995 "characters start with the backslash character (\\e). The special characters "
996 "recognized by B<bc> are \"a\" (alert or bell), \"b\" (backspace), \"f\" "
997 "(form feed), \"n\" (newline), \"r\" (carriage return), \"q\" (double quote), "
998 "\"t\" (tab), and \"\\e\" (backslash). Any other character following the "
999 "backslash will be ignored."
1000 msgstr ""
1001
1002 #. type: IP
1003 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1004 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1005 #, no-wrap
1006 msgid "{ statement_list }"
1007 msgstr ""
1008
1009 #. type: Plain text
1010 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1011 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1012 msgid ""
1013 "This is the compound statement. It allows multiple statements to be grouped "
1014 "together for execution."
1015 msgstr ""
1016
1017 #. type: IP
1018 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1019 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1020 #, no-wrap
1021 msgid "B<if> ( expression ) statement1 [B<else> statement2]"
1022 msgstr ""
1023
1024 #. type: Plain text
1025 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1026 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1027 msgid ""
1028 "The if statement evaluates the expression and executes statement1 or "
1029 "statement2 depending on the value of the expression. If the expression is "
1030 "non-zero, statement1 is executed. If statement2 is present and the value of "
1031 "the expression is 0, then statement2 is executed. (The else clause is an "
1032 "extension.)"
1033 msgstr ""
1034
1035 #. type: IP
1036 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1037 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1038 #, no-wrap
1039 msgid "B<while> ( expression ) statement"
1040 msgstr ""
1041
1042 #. type: Plain text
1043 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1044 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1045 msgid ""
1046 "The while statement will execute the statement while the expression is non-"
1047 "zero. It evaluates the expression before each execution of the statement. "
1048 "Termination of the loop is caused by a zero expression value or the "
1049 "execution of a break statement."
1050 msgstr ""
1051
1052 #. type: IP
1053 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1054 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1055 #, no-wrap
1056 msgid "B<for> ( [expression1] ; [expression2] ; [expression3] ) statement"
1057 msgstr ""
1058
1059 #. type: Plain text
1060 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
1061 #: opensuse-tumbleweed
1062 msgid ""
1063 "The for statement controls repeated execution of the statement. Expression1 "
1064 "is evaluated before the loop. Expression2 is evaluated before each "
1065 "execution of the statement. If it is non-zero, the statement is evaluated. "
1066 "If it is zero, the loop is terminated. After each execution of the "
1067 "statement, expression3 is evaluated before the reevaluation of expression2. "
1068 "If expression1 or expression3 are missing, nothing is evaluated at the point "
1069 "they would be evaluated. If expression2 is missing, it is the same as "
1070 "substituting the value 1 for expression2. (The optional expressions are an "
1071 "extension. POSIX B<bc> requires all three expressions.) The following is "
1072 "equivalent code for the for statement:"
1073 msgstr ""
1074
1075 #. type: Plain text
1076 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1077 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1078 #, no-wrap
1079 msgid ""
1080 "expression1;\n"
1081 "while (expression2) {\n"
1082 " statement;\n"
1083 " expression3;\n"
1084 "}\n"
1085 msgstr ""
1086
1087 #. type: IP
1088 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1089 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1090 #, no-wrap
1091 msgid "B<break>"
1092 msgstr ""
1093
1094 #. type: Plain text
1095 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1096 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1097 msgid ""
1098 "This statement causes a forced exit of the most recent enclosing while "
1099 "statement or for statement."
1100 msgstr ""
1101
1102 #. type: IP
1103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1105 #, no-wrap
1106 msgid "B<continue>"
1107 msgstr "B<continue>"
1108
1109 #. type: Plain text
1110 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
1111 #: opensuse-tumbleweed
1112 msgid ""
1113 "The continue statement (an extension) causes the most recent enclosing for "
1114 "statement to start the next iteration."
1115 msgstr ""
1116
1117 #. type: IP
1118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1120 #, no-wrap
1121 msgid "B<halt>"
1122 msgstr "B<halt>"
1123
1124 #. type: Plain text
1125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1127 msgid ""
1128 "The halt statement (an extension) is an executed statement that causes the "
1129 "B<bc> processor to quit only when it is executed. For example, \"if (0 == "
1130 "1) halt\" will not cause B<bc> to terminate because the halt is not executed."
1131 msgstr ""
1132
1133 #. type: IP
1134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1136 #, no-wrap
1137 msgid "B<return>"
1138 msgstr "B<return>"
1139
1140 #. type: Plain text
1141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1143 msgid "Return the value 0 from a function. (See the section on functions.)"
1144 msgstr ""
1145
1146 #. type: IP
1147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1149 #, no-wrap
1150 msgid "B<return> ( expression )"
1151 msgstr ""
1152
1153 #. type: Plain text
1154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1156 msgid ""
1157 "Return the value of the expression from a function. (See the section on "
1158 "functions.) As an extension, the parenthesis are not required."
1159 msgstr ""
1160
1161 #. type: SS
1162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1164 #, no-wrap
1165 msgid "PSEUDO STATEMENTS"
1166 msgstr ""
1167
1168 #. type: Plain text
1169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1171 msgid ""
1172 "These statements are not statements in the traditional sense. They are not "
1173 "executed statements. Their function is performed at \"compile\" time."
1174 msgstr ""
1175
1176 #. type: IP
1177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1179 #, no-wrap
1180 msgid "B<limits>"
1181 msgstr "B<limits>"
1182
1183 #. type: Plain text
1184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1186 msgid ""
1187 "Print the local limits enforced by the local version of B<bc>. This is an "
1188 "extension."
1189 msgstr ""
1190
1191 #. type: IP
1192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1194 #, no-wrap
1195 msgid "B<quit>"
1196 msgstr "B<quit>"
1197
1198 #. type: Plain text
1199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1201 msgid ""
1202 "When the quit statement is read, the B<bc> processor is terminated, "
1203 "regardless of where the quit statement is found. For example, \"if (0 == 1) "
1204 "quit\" will cause B<bc> to terminate."
1205 msgstr ""
1206
1207 #. type: IP
1208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1210 #, no-wrap
1211 msgid "B<warranty>"
1212 msgstr "B<warranty>"
1213
1214 #. type: Plain text
1215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1217 msgid "Print a longer warranty notice. This is an extension."
1218 msgstr ""
1219
1220 #. type: SS
1221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1223 #, no-wrap
1224 msgid "FUNCTIONS"
1225 msgstr "함수(FUNCTIONS)"
1226
1227 #. type: Plain text
1228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1230 msgid ""
1231 "Functions provide a method of defining a computation that can be executed "
1232 "later. Functions in B<bc> always compute a value and return it to the "
1233 "caller. Function definitions are \"dynamic\" in the sense that a function "
1234 "is undefined until a definition is encountered in the input. That "
1235 "definition is then used until another definition function for the same name "
1236 "is encountered. The new definition then replaces the older definition. A "
1237 "function is defined as follows:"
1238 msgstr ""
1239
1240 #. type: Plain text
1241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1243 #, no-wrap
1244 msgid ""
1245 "B<define >I<name >B<( >I<parameters >B<) { >I<newline\n"
1246 " auto_list statement_list >B<}>\n"
1247 msgstr ""
1248
1249 #. type: Plain text
1250 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
1251 #: opensuse-tumbleweed
1252 msgid ""
1253 "A function call is just an expression of the form "
1254 "\"I<name>B<(>I<parameters>B<)>\"."
1255 msgstr ""
1256
1257 #. type: Plain text
1258 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
1259 #: opensuse-tumbleweed
1260 msgid ""
1261 "Parameters are numbers or arrays (an extension). In the function "
1262 "definition, zero or more parameters are defined by listing their names "
1263 "separated by commas. All parameters are call by value parameters. Arrays "
1264 "are specified in the parameter definition by the notation \"I<name>B<[]>\". "
1265 "In the function call, actual parameters are full expressions for number "
1266 "parameters. The same notation is used for passing arrays as for defining "
1267 "array parameters. The named array is passed by value to the function. "
1268 "Since function definitions are dynamic, parameter numbers and types are "
1269 "checked when a function is called. Any mismatch in number or types of "
1270 "parameters will cause a runtime error. A runtime error will also occur for "
1271 "the call to an undefined function."
1272 msgstr ""
1273
1274 #. type: Plain text
1275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1277 msgid ""
1278 "The I<auto_list> is an optional list of variables that are for \"local\" "
1279 "use. The syntax of the auto list (if present) is \"B<auto >I<name>, ... ;"
1280 "\". (The semicolon is optional.) Each I<name> is the name of an auto "
1281 "variable. Arrays may be specified by using the same notation as used in "
1282 "parameters. These variables have their values pushed onto a stack at the "
1283 "start of the function. The variables are then initialized to zero and used "
1284 "throughout the execution of the function. At function exit, these variables "
1285 "are popped so that the original value (at the time of the function call) of "
1286 "these variables are restored. The parameters are really auto variables that "
1287 "are initialized to a value provided in the function call. Auto variables "
1288 "are different than traditional local variables because if function A calls "
1289 "function B, B may access function A's auto variables by just using the same "
1290 "name, unless function B has called them auto variables. Due to the fact "
1291 "that auto variables and parameters are pushed onto a stack, B<bc> supports "
1292 "recursive functions."
1293 msgstr ""
1294
1295 #. type: Plain text
1296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1298 msgid ""
1299 "The function body is a list of B<bc> statements. Again, statements are "
1300 "separated by semicolons or newlines. Return statements cause the "
1301 "termination of a function and the return of a value. There are two versions "
1302 "of the return statement. The first form, \"B<return>\", returns the value 0 "
1303 "to the calling expression. The second form, \"B<return ( >I<expression "
1304 ">B<)>\", computes the value of the expression and returns that value to the "
1305 "calling expression. There is an implied \"B<return (0)>\" at the end of "
1306 "every function. This allows a function to terminate and return 0 without an "
1307 "explicit return statement."
1308 msgstr ""
1309
1310 #. type: Plain text
1311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1313 msgid ""
1314 "Functions also change the usage of the variable B<ibase>. All constants in "
1315 "the function body will be converted using the value of B<ibase> at the time "
1316 "of the function call. Changes of B<ibase> will be ignored during the "
1317 "execution of the function except for the standard function B<read>, which "
1318 "will always use the current value of B<ibase> for conversion of numbers."
1319 msgstr ""
1320
1321 #. type: Plain text
1322 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
1323 msgid ""
1324 "Several extensions have been added to functions. First, the format of the "
1325 "definition has been slightly relaxed. The standard requires the opening "
1326 "brace be on the same line as the B<define> keyword and all other parts must "
1327 "be on following lines. This version of B<bc> will allow any number of "
1328 "newlines before and after the opening brace of the function. For example, "
1329 "the following definitions are valid."
1330 msgstr ""
1331
1332 #. type: Plain text
1333 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
1334 #, fuzzy, no-wrap
1335 #| msgid ""
1336 #| "CW<\n"
1337 #| "define f (x) {\n"
1338 #| " if (x E<lt>= 1) return (1);\n"
1339 #| " return (f(x-1) * x);\n"
1340 #| "}>\n"
1341 #| "\n"
1342 msgid ""
1343 "\\f(CR\n"
1344 "define d (n) { return (2*n); }\n"
1345 "define d (n)\n"
1346 " { return (2*n); }\\fR\n"
1347 msgstr ""
1348 "CW<\n"
1349 "define f (x) {\n"
1350 " if (x E<lt>= 1) return (1);\n"
1351 " return (f(x-1) * x);\n"
1352 "}>\n"
1353 "\n"
1354
1355 #. type: Plain text
1356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1357 #: mageia-cauldron opensuse-tumbleweed
1358 msgid ""
1359 "Functions may be defined as B<void>. A void function returns no value and "
1360 "thus may not be used in any place that needs a value. A void function does "
1361 "not produce any output when called by itself on an input line. The key word "
1362 "B<void> is placed between the key word B<define> and the function name. For "
1363 "example, consider the following session."
1364 msgstr ""
1365
1366 #. type: Plain text
1367 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
1368 #, no-wrap
1369 msgid ""
1370 "\\f(CR\n"
1371 "define py (y) { print \"---E<gt>\", y, \"E<lt>---\", \"\\en\"; }\n"
1372 "define void px (x) { print \"---E<gt>\", x, \"E<lt>---\", \"\\en\"; }\n"
1373 "py(1)\n"
1374 "---E<gt>1E<lt>---\n"
1375 "0\n"
1376 "px(1)\n"
1377 "---E<gt>1E<lt>---\\fR\n"
1378 msgstr ""
1379
1380 #. type: Plain text
1381 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
1382 msgid ""
1383 "\\f(CRSince B<py> is not a void function, the call of B<py(1)> prints the "
1384 "desired output and then prints a second line that is the value of the "
1385 "function. Since the value of a function that is not given an explicit "
1386 "return statement is zero, the zero is printed. For B<px(1)>, no zero is "
1387 "printed because the function is a void function."
1388 msgstr ""
1389
1390 #. type: Plain text
1391 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
1392 #: opensuse-tumbleweed
1393 msgid ""
1394 "Also, call by variable for arrays was added. To declare a call by variable "
1395 "array, the declaration of the array parameter in the function definition "
1396 "looks like \"I<*name>B<[]>\". The call to the function remains the same as "
1397 "call by value arrays."
1398 msgstr ""
1399
1400 #. type: SS
1401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1403 #, no-wrap
1404 msgid "MATH LIBRARY"
1405 msgstr ""
1406
1407 #. type: Plain text
1408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1410 msgid ""
1411 "If B<bc> is invoked with the B<-l> option, a math library is preloaded and "
1412 "the default scale is set to 20. The math functions will calculate their "
1413 "results to the scale set at the time of their call. The math library "
1414 "defines the following functions:"
1415 msgstr ""
1416
1417 #. type: IP
1418 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
1419 #: opensuse-tumbleweed
1420 #, no-wrap
1421 msgid "s (I<x>)"
1422 msgstr "s (I<x>)"
1423
1424 #. type: Plain text
1425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1427 msgid "The sine of x, x is in radians."
1428 msgstr ""
1429
1430 #. type: IP
1431 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
1432 #: opensuse-tumbleweed
1433 #, no-wrap
1434 msgid "c (I<x>)"
1435 msgstr "c (I<x>)"
1436
1437 #. type: Plain text
1438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1440 msgid "The cosine of x, x is in radians."
1441 msgstr ""
1442
1443 #. type: IP
1444 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
1445 #: opensuse-tumbleweed
1446 #, no-wrap
1447 msgid "a (I<x>)"
1448 msgstr "a (I<x>)"
1449
1450 #. type: Plain text
1451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1453 msgid "The arctangent of x, arctangent returns radians."
1454 msgstr ""
1455
1456 #. type: IP
1457 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
1458 #: opensuse-tumbleweed
1459 #, no-wrap
1460 msgid "l (I<x>)"
1461 msgstr "l (I<x>)"
1462
1463 #. type: Plain text
1464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1466 msgid "The natural logarithm of x."
1467 msgstr ""
1468
1469 #. type: IP
1470 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
1471 #: opensuse-tumbleweed
1472 #, no-wrap
1473 msgid "e (I<x>)"
1474 msgstr "e (I<x>)"
1475
1476 #. type: Plain text
1477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1479 msgid "The exponential function of raising e to the value x."
1480 msgstr ""
1481
1482 #. type: IP
1483 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
1484 #: opensuse-tumbleweed
1485 #, no-wrap
1486 msgid "j (I<n,x>)"
1487 msgstr "j (I<n,x>)"
1488
1489 #. type: Plain text
1490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1492 msgid "The Bessel function of integer order n of x."
1493 msgstr ""
1494
1495 #. type: SS
1496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1498 #, no-wrap
1499 msgid "EXAMPLES"
1500 msgstr "폐제"
1501
1502 #. type: Plain text
1503 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1504 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1505 msgid ""
1506 "In /bin/sh, the following will assign the value of \"pi\" to the shell "
1507 "variable B<pi>."
1508 msgstr ""
1509
1510 #. type: Plain text
1511 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
1512 #, fuzzy
1513 #| msgid "CW< pi=$(echo \"scale=10; 4*a(1)\" | bc -l)>"
1514 msgid "\\f(CR pi=$(echo \"scale=10; 4*a(1)\" | bc -l)\\fR"
1515 msgstr "CW< pi=$(echo \"scale=10; 4*a(1)\" | bc -l)>"
1516
1517 #. type: Plain text
1518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1520 msgid ""
1521 "The following is the definition of the exponential function used in the math "
1522 "library. This function is written in POSIX B<bc>."
1523 msgstr ""
1524
1525 #. type: Plain text
1526 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
1527 #, fuzzy, no-wrap
1528 #| msgid ""
1529 #| "CW<\n"
1530 #| "scale = 20>\n"
1531 msgid ""
1532 "\\f(CR\n"
1533 "scale = 20\\fR\n"
1534 msgstr ""
1535 "CW<\n"
1536 "scale = 20>\n"
1537
1538 #. type: Plain text
1539 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
1540 #, no-wrap
1541 msgid ""
1542 "\\f(CR/* Uses the fact that e^x = (e^(x/2))^2\n"
1543 " When x is small enough, we use the series:\n"
1544 " e^x = 1 + x + x^2/2! + x^3/3! + ...\n"
1545 "*/\\fR\n"
1546 msgstr ""
1547
1548 #. type: Plain text
1549 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
1550 #, fuzzy, no-wrap
1551 #| msgid ""
1552 #| "CW<define e(x) {\n"
1553 #| " auto a, d, e, f, i, m, v, z>\n"
1554 msgid ""
1555 "\\f(CRdefine e(x) {\n"
1556 " auto a, d, e, f, i, m, v, z\\fR\n"
1557 msgstr ""
1558 "CW<define e(x) {\n"
1559 " auto a, d, e, f, i, m, v, z>\n"
1560
1561 #. type: Plain text
1562 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
1563 #, no-wrap
1564 msgid ""
1565 "\\f(CR /* Check the sign of x. */\n"
1566 " if (xE<lt>0) {\n"
1567 " m = 1\n"
1568 " x = -x\n"
1569 " }\\fR\n"
1570 msgstr ""
1571
1572 #. type: Plain text
1573 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
1574 #, no-wrap
1575 msgid ""
1576 "\\f(CR /* Precondition x. */\n"
1577 " z = scale;\n"
1578 " scale = 4 + z + .44*x;\n"
1579 " while (x E<gt> 1) {\n"
1580 " f += 1;\n"
1581 " x /= 2;\n"
1582 " }\\fR\n"
1583 msgstr ""
1584
1585 #. type: Plain text
1586 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
1587 #, no-wrap
1588 msgid ""
1589 "\\f(CR /* Initialize the variables. */\n"
1590 " v = 1+x\n"
1591 " a = x\n"
1592 " d = 1\\fR\n"
1593 msgstr ""
1594
1595 #. type: Plain text
1596 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
1597 #, fuzzy, no-wrap
1598 #| msgid ""
1599 #| "CW< for (i=2; 1; i++) {\n"
1600 #| " e = (a *= x) / (d *= i)\n"
1601 #| " if (e == 0) {\n"
1602 #| " if (fE<gt>0) while (f--) v = v*v;\n"
1603 #| " scale = z\n"
1604 #| " if (m) return (1/v);\n"
1605 #| " return (v/1);\n"
1606 #| " }\n"
1607 #| " v += e\n"
1608 #| " }\n"
1609 #| "}>\n"
1610 #| "\n"
1611 msgid ""
1612 "\\f(CR for (i=2; 1; i++) {\n"
1613 " e = (a *= x) / (d *= i)\n"
1614 " if (e == 0) {\n"
1615 " if (fE<gt>0) while (f--) v = v*v;\n"
1616 " scale = z\n"
1617 " if (m) return (1/v);\n"
1618 " return (v/1);\n"
1619 " }\n"
1620 " v += e\n"
1621 " }\n"
1622 "}\\fR\n"
1623 msgstr ""
1624 "CW< for (i=2; 1; i++) {\n"
1625 " e = (a *= x) / (d *= i)\n"
1626 " if (e == 0) {\n"
1627 " if (fE<gt>0) while (f--) v = v*v;\n"
1628 " scale = z\n"
1629 " if (m) return (1/v);\n"
1630 " return (v/1);\n"
1631 " }\n"
1632 " v += e\n"
1633 " }\n"
1634 "}>\n"
1635 "\n"
1636
1637 #. type: Plain text
1638 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1639 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1640 msgid ""
1641 "The following is code that uses the extended features of B<bc> to implement "
1642 "a simple program for calculating checkbook balances. This program is best "
1643 "kept in a file so that it can be used many times without having to retype it "
1644 "at every use."
1645 msgstr ""
1646
1647 #. type: Plain text
1648 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
1649 #, no-wrap
1650 msgid ""
1651 "\\f(CR\n"
1652 "scale=2\n"
1653 "print \"\\enCheck book program!\\en\"\n"
1654 "print \" Remember, deposits are negative transactions.\\en\"\n"
1655 "print \" Exit by a 0 transaction.\\en\\en\"\\fR\n"
1656 msgstr ""
1657
1658 #. type: Plain text
1659 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
1660 #, no-wrap
1661 msgid ""
1662 "\\f(CRprint \"Initial balance? \"; bal = read()\n"
1663 "bal /= 1\n"
1664 "print \"\\en\"\n"
1665 "while (1) {\n"
1666 " \"current balance = \"; bal\n"
1667 " \"transaction? \"; trans = read()\n"
1668 " if (trans == 0) break;\n"
1669 " bal -= trans\n"
1670 " bal /= 1\n"
1671 "}\n"
1672 "quit\\fR\n"
1673 msgstr ""
1674
1675 #. type: Plain text
1676 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1677 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1678 msgid "The following is the definition of the recursive factorial function."
1679 msgstr ""
1680
1681 #. type: Plain text
1682 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
1683 #, fuzzy, no-wrap
1684 #| msgid ""
1685 #| "CW<\n"
1686 #| "define f (x) {\n"
1687 #| " if (x E<lt>= 1) return (1);\n"
1688 #| " return (f(x-1) * x);\n"
1689 #| "}>\n"
1690 #| "\n"
1691 msgid ""
1692 "\\f(CR\n"
1693 "define f (x) {\n"
1694 " if (x E<lt>= 1) return (1);\n"
1695 " return (f(x-1) * x);\n"
1696 "}\\fR\n"
1697 msgstr ""
1698 "CW<\n"
1699 "define f (x) {\n"
1700 " if (x E<lt>= 1) return (1);\n"
1701 " return (f(x-1) * x);\n"
1702 "}>\n"
1703 "\n"
1704
1705 #. type: SS
1706 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1707 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1708 #, no-wrap
1709 msgid "READLINE AND LIBEDIT OPTIONS"
1710 msgstr ""
1711
1712 #. type: Plain text
1713 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
1714 #: opensuse-tumbleweed
1715 msgid ""
1716 "GNU B<bc> can be compiled (via a configure option) to use the GNU "
1717 "B<readline> input editor library or the BSD B<libedit> library. This allows "
1718 "the user to do editing of lines before sending them to B<bc>. It also "
1719 "allows for a history of previous lines typed. When this option is selected, "
1720 "B<bc> has one more special variable. This special variable, B<history> is "
1721 "the number of lines of history retained. For B<readline>, a value of -1 "
1722 "means that an unlimited number of history lines are retained. Setting the "
1723 "value of B<history> to a positive number restricts the number of history "
1724 "lines to the number given. The value of 0 disables the history feature. "
1725 "The default value is 100. For more information, read the user manuals for "
1726 "the GNU B<readline>, B<history> and BSD B<libedit> libraries. One can not "
1727 "enable both B<readline> and B<libedit> at the same time."
1728 msgstr ""
1729
1730 #. type: SS
1731 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1732 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1733 #, no-wrap
1734 msgid "DIFFERENCES"
1735 msgstr ""
1736
1737 #. type: Plain text
1738 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
1739 msgid ""
1740 "This version of B<bc> was implemented from the POSIX P1003.2/D11 draft and "
1741 "contains several differences and extensions relative to the draft and "
1742 "traditional implementations. It is not implemented in the traditional way "
1743 "using B<dc>(1). This version is a single process which parses and runs a "
1744 "byte code translation of the program. There is an \"undocumented\" option (-"
1745 "c) that causes the program to output the byte code to the standard output "
1746 "instead of running it. It was mainly used for debugging the parser and "
1747 "preparing the math library."
1748 msgstr ""
1749
1750 #. type: Plain text
1751 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1752 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1753 msgid ""
1754 "A major source of differences is extensions, where a feature is extended to "
1755 "add more functionality and additions, where new features are added. The "
1756 "following is the list of differences and extensions."
1757 msgstr ""
1758
1759 #. type: IP
1760 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1761 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1762 #, no-wrap
1763 msgid "LANG environment"
1764 msgstr ""
1765
1766 #. type: Plain text
1767 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1768 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1769 msgid ""
1770 "This version does not conform to the POSIX standard in the processing of the "
1771 "LANG environment variable and all environment variables starting with LC_."
1772 msgstr ""
1773
1774 #. type: IP
1775 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1776 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1777 #, no-wrap
1778 msgid "names"
1779 msgstr ""
1780
1781 #. type: Plain text
1782 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1783 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1784 msgid ""
1785 "Traditional and POSIX B<bc> have single letter names for functions, "
1786 "variables and arrays. They have been extended to be multi-character names "
1787 "that start with a letter and may contain letters, numbers and the underscore "
1788 "character."
1789 msgstr ""
1790
1791 #. type: IP
1792 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1793 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1794 #, no-wrap
1795 msgid "Strings"
1796 msgstr ""
1797
1798 #. type: Plain text
1799 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1800 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1801 msgid ""
1802 "Strings are not allowed to contain NUL characters. POSIX says all "
1803 "characters must be included in strings."
1804 msgstr ""
1805
1806 #. type: IP
1807 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1808 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1809 #, no-wrap
1810 msgid "last"
1811 msgstr ""
1812
1813 #. type: Plain text
1814 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
1815 #: opensuse-tumbleweed
1816 msgid ""
1817 "POSIX B<bc> does not have a B<last> variable. Some implementations of B<bc> "
1818 "use the period (.) in a similar way."
1819 msgstr ""
1820
1821 #. type: IP
1822 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1823 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1824 #, no-wrap
1825 msgid "comparisons"
1826 msgstr ""
1827
1828 #. type: Plain text
1829 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1830 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1831 msgid ""
1832 "POSIX B<bc> allows comparisons only in the if statement, the while "
1833 "statement, and the second expression of the for statement. Also, only one "
1834 "relational operation is allowed in each of those statements."
1835 msgstr ""
1836
1837 #. type: IP
1838 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1839 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1840 #, no-wrap
1841 msgid "if statement, else clause"
1842 msgstr ""
1843
1844 #. type: Plain text
1845 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1846 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1847 msgid "POSIX B<bc> does not have an else clause."
1848 msgstr ""
1849
1850 #. type: IP
1851 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1852 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1853 #, no-wrap
1854 msgid "for statement"
1855 msgstr ""
1856
1857 #. type: Plain text
1858 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1859 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1860 msgid ""
1861 "POSIX B<bc> requires all expressions to be present in the for statement."
1862 msgstr ""
1863
1864 #. type: IP
1865 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1866 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1867 #, no-wrap
1868 msgid "&&, ||, !"
1869 msgstr "&&, ||, !"
1870
1871 #. type: Plain text
1872 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1873 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1874 msgid "POSIX B<bc> does not have the logical operators."
1875 msgstr ""
1876
1877 #. type: IP
1878 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1879 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1880 #, no-wrap
1881 msgid "read function"
1882 msgstr ""
1883
1884 #. type: Plain text
1885 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1886 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1887 msgid "POSIX B<bc> does not have a read function."
1888 msgstr ""
1889
1890 #. type: IP
1891 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1892 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1893 #, no-wrap
1894 msgid "print statement"
1895 msgstr ""
1896
1897 #. type: Plain text
1898 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
1899 #: opensuse-tumbleweed
1900 msgid "POSIX B<bc> does not have a print statement ."
1901 msgstr ""
1902
1903 #. type: IP
1904 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1905 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1906 #, no-wrap
1907 msgid "continue statement"
1908 msgstr ""
1909
1910 #. type: Plain text
1911 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1912 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1913 msgid "POSIX B<bc> does not have a continue statement."
1914 msgstr ""
1915
1916 #. type: IP
1917 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1918 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1919 #, no-wrap
1920 msgid "return statement"
1921 msgstr ""
1922
1923 #. type: Plain text
1924 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1925 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1926 msgid "POSIX B<bc> requires parentheses around the return expression."
1927 msgstr ""
1928
1929 #. type: IP
1930 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1931 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1932 #, no-wrap
1933 msgid "array parameters"
1934 msgstr ""
1935
1936 #. type: Plain text
1937 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1938 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1939 msgid ""
1940 "POSIX B<bc> does not (currently) support array parameters in full. The "
1941 "POSIX grammar allows for arrays in function definitions, but does not "
1942 "provide a method to specify an array as an actual parameter. (This is most "
1943 "likely an oversight in the grammar.) Traditional implementations of B<bc> "
1944 "have only call by value array parameters."
1945 msgstr ""
1946
1947 #. type: IP
1948 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1949 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1950 #, no-wrap
1951 msgid "function format"
1952 msgstr ""
1953
1954 #. type: Plain text
1955 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1956 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1957 msgid ""
1958 "POSIX B<bc> requires the opening brace on the same line as the B<define> key "
1959 "word and the B<auto> statement on the next line."
1960 msgstr ""
1961
1962 #. type: IP
1963 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1964 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1965 #, no-wrap
1966 msgid "=+, =-, =*, =/, =%, =^"
1967 msgstr "=+, =-, =*, =/, =%, =^"
1968
1969 #. type: Plain text
1970 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1971 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1972 msgid ""
1973 "POSIX B<bc> does not require these \"old style\" assignment operators to be "
1974 "defined. This version may allow these \"old style\" assignments. Use the "
1975 "limits statement to see if the installed version supports them. If it does "
1976 "support the \"old style\" assignment operators, the statement \"a =- 1\" "
1977 "will decrement B<a> by 1 instead of setting B<a> to the value -1."
1978 msgstr ""
1979
1980 #. type: IP
1981 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1982 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1983 #, no-wrap
1984 msgid "spaces in numbers"
1985 msgstr ""
1986
1987 #. type: Plain text
1988 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1989 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1990 msgid ""
1991 "Other implementations of B<bc> allow spaces in numbers. For example, \"x=1 "
1992 "3\" would assign the value 13 to the variable x. The same statement would "
1993 "cause a syntax error in this version of B<bc>."
1994 msgstr ""
1995
1996 #. type: IP
1997 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1998 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1999 #, no-wrap
2000 msgid "errors and execution"
2001 msgstr ""
2002
2003 #. type: Plain text
2004 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2005 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2006 msgid ""
2007 "This implementation varies from other implementations in terms of what code "
2008 "will be executed when syntax and other errors are found in the program. If "
2009 "a syntax error is found in a function definition, error recovery tries to "
2010 "find the beginning of a statement and continue to parse the function. Once "
2011 "a syntax error is found in the function, the function will not be callable "
2012 "and becomes undefined. Syntax errors in the interactive execution code will "
2013 "invalidate the current execution block. The execution block is terminated "
2014 "by an end of line that appears after a complete sequence of statements. For "
2015 "example,"
2016 msgstr ""
2017
2018 #. type: Plain text
2019 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2020 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2021 #, no-wrap
2022 msgid ""
2023 "a = 1\n"
2024 "b = 2\n"
2025 msgstr ""
2026
2027 #. type: Plain text
2028 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2029 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2030 msgid "has two execution blocks and"
2031 msgstr ""
2032
2033 #. type: Plain text
2034 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2035 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2036 #, no-wrap
2037 msgid ""
2038 "{ a = 1\n"
2039 " b = 2 }\n"
2040 msgstr ""
2041 "{ a = 1\n"
2042 " b = 2 }\n"
2043
2044 #. type: Plain text
2045 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2046 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2047 msgid ""
2048 "has one execution block. Any runtime error will terminate the execution of "
2049 "the current execution block. A runtime warning will not terminate the "
2050 "current execution block."
2051 msgstr ""
2052
2053 #. type: IP
2054 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2055 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2056 #, no-wrap
2057 msgid "Interrupts"
2058 msgstr ""
2059
2060 #. type: Plain text
2061 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2062 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2063 msgid ""
2064 "During an interactive session, the SIGINT signal (usually generated by the "
2065 "control-C character from the terminal) will cause execution of the current "
2066 "execution block to be interrupted. It will display a \"runtime\" error "
2067 "indicating which function was interrupted. After all runtime structures "
2068 "have been cleaned up, a message will be printed to notify the user that "
2069 "B<bc> is ready for more input. All previously defined functions remain "
2070 "defined and the value of all non-auto variables are the value at the point "
2071 "of interruption. All auto variables and function parameters are removed "
2072 "during the clean up process. During a non-interactive session, the SIGINT "
2073 "signal will terminate the entire run of B<bc>."
2074 msgstr ""
2075
2076 #. type: SS
2077 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2078 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2079 #, no-wrap
2080 msgid "LIMITS"
2081 msgstr ""
2082
2083 #. type: Plain text
2084 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2085 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2086 msgid ""
2087 "The following are the limits currently in place for this B<bc> processor. "
2088 "Some of them may have been changed by an installation. Use the limits "
2089 "statement to see the actual values."
2090 msgstr ""
2091
2092 #. type: IP
2093 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2094 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2095 #, no-wrap
2096 msgid "BC_BASE_MAX"
2097 msgstr "BC_BASE_MAX"
2098
2099 #. type: Plain text
2100 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-tumbleweed
2101 msgid ""
2102 "The maximum output base is at least 10^9. The maximum input base is 16."
2103 msgstr ""
2104
2105 #. type: IP
2106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2108 #, no-wrap
2109 msgid "BC_DIM_MAX"
2110 msgstr "BC_DIM_MAX"
2111
2112 #. type: Plain text
2113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2115 msgid ""
2116 "This is currently an arbitrary limit of 65535 as distributed. Your "
2117 "installation may be different."
2118 msgstr ""
2119
2120 #. type: IP
2121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2123 #, no-wrap
2124 msgid "BC_SCALE_MAX"
2125 msgstr "BC_SCALE_MAX"
2126
2127 #. type: Plain text
2128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2130 msgid ""
2131 "The number of digits after the decimal point is limited to INT_MAX digits. "
2132 "Also, the number of digits before the decimal point is limited to INT_MAX "
2133 "digits."
2134 msgstr ""
2135
2136 #. type: IP
2137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2139 #, no-wrap
2140 msgid "BC_STRING_MAX"
2141 msgstr "BC_STRING_MAX"
2142
2143 #. type: Plain text
2144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2146 msgid ""
2147 "The limit on the number of characters in a string is INT_MAX characters."
2148 msgstr ""
2149
2150 #. type: IP
2151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2153 #, no-wrap
2154 msgid "exponent"
2155 msgstr ""
2156
2157 #. type: Plain text
2158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2160 msgid ""
2161 "The value of the exponent in the raise operation (^) is limited to LONG_MAX."
2162 msgstr ""
2163
2164 #. type: IP
2165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2167 #, no-wrap
2168 msgid "variable names"
2169 msgstr ""
2170
2171 #. type: Plain text
2172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2174 msgid ""
2175 "The current limit on the number of unique names is 32767 for each of simple "
2176 "variables, arrays and functions."
2177 msgstr ""
2178
2179 #. type: SH
2180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2182 #, no-wrap
2183 msgid "ENVIRONMENT VARIABLES"
2184 msgstr "환경 변수"
2185
2186 #. type: Plain text
2187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2189 msgid "The following environment variables are processed by B<bc>:"
2190 msgstr ""
2191
2192 #. type: IP
2193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2195 #, no-wrap
2196 msgid "POSIXLY_CORRECT"
2197 msgstr "POSIXLY_CORRECT"
2198
2199 #. type: Plain text
2200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2202 msgid "This is the same as the B<-s> option."
2203 msgstr ""
2204
2205 #. type: IP
2206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2208 #, no-wrap
2209 msgid "BC_ENV_ARGS"
2210 msgstr "BC_ENV_ARGS"
2211
2212 #. type: Plain text
2213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2215 msgid ""
2216 "This is another mechanism to get arguments to B<bc>. The format is the same "
2217 "as the command line arguments. These arguments are processed first, so any "
2218 "files listed in the environment arguments are processed before any command "
2219 "line argument files. This allows the user to set up \"standard\" options "
2220 "and files to be processed at every invocation of B<bc>. The files in the "
2221 "environment variables would typically contain function definitions for "
2222 "functions the user wants defined every time B<bc> is run."
2223 msgstr ""
2224
2225 #. type: IP
2226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2228 #, no-wrap
2229 msgid "BC_LINE_LENGTH"
2230 msgstr "BC_LINE_LENGTH"
2231
2232 #. type: Plain text
2233 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
2234 #: opensuse-tumbleweed
2235 msgid ""
2236 "This should be an integer specifying the number of characters in an output "
2237 "line for numbers. This includes the backslash and newline characters for "
2238 "long numbers. As an extension, the value of zero disables the multi-line "
2239 "feature. Any other value of this variable that is less than 3 sets the line "
2240 "length to 70."
2241 msgstr ""
2242
2243 #. type: SH
2244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2246 #, no-wrap
2247 msgid "DIAGNOSTICS"
2248 msgstr "진단"
2249
2250 #. type: Plain text
2251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2253 msgid ""
2254 "If any file on the command line can not be opened, B<bc> will report that "
2255 "the file is unavailable and terminate. Also, there are compile and run time "
2256 "diagnostics that should be self-explanatory."
2257 msgstr ""
2258
2259 #. type: SH
2260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2262 #, no-wrap
2263 msgid "BUGS"
2264 msgstr "버그"
2265
2266 #. type: Plain text
2267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2269 msgid "Error recovery is not very good yet."
2270 msgstr ""
2271
2272 #. type: Plain text
2273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2275 msgid ""
2276 "Email bug reports to B<[email protected]>. Be sure to include the word ``bc'' "
2277 "somewhere in the ``Subject:'' field."
2278 msgstr ""
2279
2280 #. type: SH
2281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2283 #, no-wrap
2284 msgid "AUTHOR"
2285 msgstr "저자"
2286
2287 #. type: Plain text
2288 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
2289 #: opensuse-tumbleweed
2290 #, fuzzy, no-wrap
2291 #| msgid ""
2292 #| "Philip A. Nelson\n"
2293 #| "[email protected]\n"
2294 msgid ""
2295 "Philip A. Nelson\n"
2296 "[email protected]\n"
2297 msgstr ""
2298 "Philip A. Nelson\n"
2299 "[email protected]\n"
2300
2301 #. type: SH
2302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2304 #, no-wrap
2305 msgid "ACKNOWLEDGEMENTS"
2306 msgstr "감사"
2307
2308 #. type: Plain text
2309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2311 msgid ""
2312 "The author would like to thank Steve Sommars ([email protected]) for his "
2313 "extensive help in testing the implementation. Many great suggestions were "
2314 "given. This is a much better product due to his involvement."
2315 msgstr ""
2316
2317 #. type: TH
2318 #: debian-trixie debian-unstable opensuse-leap-16-1
2319 #, no-wrap
2320 msgid "2006-06-11"
2321 msgstr "2006년 6월 11일"
2322
2323 #. type: Plain text
2324 #: debian-trixie debian-unstable
2325 #, fuzzy
2326 msgid ""
2327 "Numbers are stored in two types of variables, simple variables and arrays. "
2328 "Both simple variables and array variables are named. Names begin with a "
2329 "letter followed by any number of letters, digits and underscores. All "
2330 "letters must be lower case. (Full alpha-numeric names are an extension. In "
2331 "POSIX B<bc> all names are a single lower case letter.) The type of variable "
2332 "is clear by the context because all array variable names will be followed by "
2333 "brackets ([])."
2334 msgstr ""
2335 "숫자는 두 가지 형태의 변수, 일반 변수 또는 배열에 저장된다. 둘 다 모두 이름"
2336 "을 가진다. 이름은 문자 다음에 문자, 숫자, 언더스코어(_)를 쓰며 길이에는 제한"
2337 "이 없다. arrays. Both simple variables and array variables are named. "
2338 "Names begin with a letter followed by any number of letters, digits and "
2339 "underscores. All letters must be lower case. (Full alpha-numeric names are "
2340 "an extension. In POSIX B<bc> all names are a single lower case letter.) The "
2341 "type of variable is clear by the context because all array variable names "
2342 "will be followed by brackets ([])."
2343
2344 #. type: Plain text
2345 #: debian-trixie debian-unstable
2346 msgid ""
2347 "There are four special variables, B<scale, ibase, obase,> and B<last>. "
2348 "B<scale> defines how some operations use digits after the decimal point. "
2349 "The default value of B<scale> is 0. B<ibase> and B<obase> define the "
2350 "conversion base for input and output numbers. The default for both input "
2351 "and output is base 10. B<last> (an extension) is a variable that has the "
2352 "value of the last printed number. These will be discussed in further detail "
2353 "where appropriate. All of these variables may have values assigned to them "
2354 "as well as used in expressions."
2355 msgstr ""
2356
2357 #. type: Plain text
2358 #: debian-trixie debian-unstable
2359 msgid ""
2360 "A simple expression is just a constant. B<bc> converts constants into "
2361 "internal decimal numbers using the current input base, specified by the "
2362 "variable B<ibase>. (There is an exception in functions.) The legal values "
2363 "of B<ibase> are 2 through 36. (Bases greater than 16 are an extension.) "
2364 "Assigning a value outside this range to B<ibase> will result in a value of 2 "
2365 "or 36. Input numbers may contain the characters 0\\(en9 and A\\(enZ. (Note: "
2366 "They must be capitals. Lower case letters are variable names.) Single "
2367 "digit numbers always have the value of the digit regardless of the value of "
2368 "B<ibase>. (i.e. A = 10.) For multi-digit numbers, B<bc> changes all input "
2369 "digits greater or equal to ibase to the value of B<ibase>-1. This makes the "
2370 "number B<ZZZ> always be the largest 3 digit number of the input base."
2371 msgstr ""
2372
2373 #. type: Plain text
2374 #: debian-trixie debian-unstable opensuse-leap-16-1
2375 msgid ""
2376 "Full expressions are similar to many other high level languages. Since "
2377 "there is only one kind of number, there are no rules for mixing types. "
2378 "Instead, there are rules on the scale of expressions. Every expression has "
2379 "a scale. This is derived from the scale of original numbers, the operation "
2380 "performed and in many cases, the value of the variable B<scale>. Legal "
2381 "values of the variable B<scale> are 0 to the maximum number representable by "
2382 "a C integer."
2383 msgstr ""
2384
2385 #. type: Plain text
2386 #: debian-trixie debian-unstable opensuse-leap-16-1
2387 msgid ""
2388 "In the following descriptions of legal expressions, \"expr\" refers to a "
2389 "complete expression and \"var\" refers to a simple or an array variable. A "
2390 "simple variable is just a"
2391 msgstr ""
2392
2393 #. type: Plain text
2394 #: debian-trixie debian-unstable opensuse-leap-16-1
2395 #, no-wrap
2396 msgid ""
2397 " The result of the expression is the value of\n"
2398 "the variable and then the variable is incremented by one.\n"
2399 msgstr ""
2400
2401 #. type: Plain text
2402 #: debian-trixie debian-unstable
2403 msgid ""
2404 "The result of the expression is the value of the first raised to the "
2405 "second. The second expression must be an integer. (If the second "
2406 "expression is not an integer, a warning is generated and the expression is "
2407 "truncated to get an integer value.) The scale of the result is B<scale> if "
2408 "the exponent is negative. If the exponent is positive the scale of the "
2409 "result is the minimum of the scale of the first expression times the value "
2410 "of the exponent and the maximum of B<scale> and the scale of the first "
2411 "expression. (e.g.\\& scale(a^b) = min(scale(a)*b, max( B<scale,> "
2412 "scale(a))).) It should be noted that expr^0 will always return the value of "
2413 "1."
2414 msgstr ""
2415
2416 #. type: Plain text
2417 #: debian-trixie debian-unstable opensuse-leap-16-1
2418 msgid ""
2419 "Relational expressions are a special kind of expression that always evaluate "
2420 "to 0 or 1, 0 if the relation is false and 1 if the relation is true. These "
2421 "may appear in any legal expression. (POSIX bc requires that relational "
2422 "expressions are used only in if, while, and for statements and that only one "
2423 "relational test may be done in them.) The relational operators are"
2424 msgstr ""
2425
2426 #. type: Plain text
2427 #: debian-trixie debian-unstable
2428 msgid ""
2429 "Boolean operations are also legal. (POSIX B<bc> does NOT have boolean "
2430 "operations). The result of all boolean operations are 0 and 1 (for false "
2431 "and true) as in relational expressions. The boolean operators are:"
2432 msgstr ""
2433
2434 #. type: Plain text
2435 #: debian-trixie debian-unstable
2436 msgid ""
2437 "This precedence was chosen so that POSIX compliant B<bc> programs will run "
2438 "correctly. This will cause the use of the relational and logical operators "
2439 "to have some unusual behavior when used with assignment expressions. "
2440 "Consider the expression:"
2441 msgstr ""
2442
2443 #. type: Plain text
2444 #: debian-trixie debian-unstable
2445 msgid ""
2446 "There are a few more special expressions that are provided in B<bc>. These "
2447 "have to do with user defined functions and standard functions. They all "
2448 "appear as \"\\,I<name\\/>B<(\\,>I<parameters\\/>B<)>\". See the section on "
2449 "functions for user defined functions. The standard functions are:"
2450 msgstr ""
2451
2452 #. type: Plain text
2453 #: debian-trixie debian-unstable
2454 msgid ""
2455 "Statements (as in most algebraic languages) provide the sequencing of "
2456 "expression evaluation. In B<bc> statements are executed \"as soon as "
2457 "possible.\" Execution happens when a newline in encountered and there is one "
2458 "or more complete statements. Due to this immediate execution, newlines are "
2459 "very important in B<bc>. In fact, both a semicolon and a newline are used "
2460 "as statement separators. An improperly placed newline will cause a syntax "
2461 "error. Because newlines are statement separators, it is possible to hide a "
2462 "newline by using the backslash character. The sequence \"\\eE<lt>nlE<gt>\", "
2463 "where E<lt>nlE<gt> is the newline appears to B<bc> as whitespace instead of "
2464 "a newline. A statement list is a series of statements separated by "
2465 "semicolons and newlines. The following is a list of B<bc> statements and "
2466 "what they do: (Things enclosed in brackets ([]) are optional parts of the "
2467 "statement.)"
2468 msgstr ""
2469
2470 #. type: Plain text
2471 #: debian-trixie debian-unstable
2472 msgid ""
2473 "This statement does one of two things. If the expression starts with "
2474 "\"E<lt>variableE<gt> E<lt>assignmentE<gt> ...\", it is considered to be an "
2475 "assignment statement. If the expression is not an assignment statement, the "
2476 "expression is evaluated and printed to the output. After the number is "
2477 "printed, a newline is printed. For example, \"a=1\" is an assignment "
2478 "statement and \"(a=1)\" is an expression that has an embedded assignment. "
2479 "All numbers that are printed are printed in the base specified by the "
2480 "variable B<obase>. The legal values for B< obase> are 2 through "
2481 "BC_BASE_MAX. (See the section LIMITS.) For bases 2 through 16, the usual "
2482 "method of writing numbers is used. For bases greater than 16, B<bc> uses a "
2483 "multi-character digit method of printing the numbers where each higher base "
2484 "digit is printed as a base 10 number. The multi-character digits are "
2485 "separated by spaces. Each digit contains the number of characters required "
2486 "to represent the base ten value of \"obase-1\". Since numbers are of "
2487 "arbitrary precision, some numbers may not be printable on a single output "
2488 "line. These long numbers will be split across lines using the \"\\e\" as "
2489 "the last character on a line. The maximum number of characters printed per "
2490 "line is 70. Due to the interactive nature of B<bc>, printing a number "
2491 "causes the side effect of assigning the printed value to the special "
2492 "variable B<last>. This allows the user to recover the last value printed "
2493 "without having to retype the expression that printed the number. Assigning "
2494 "to B<last> is legal and will overwrite the last printed value with the "
2495 "assigned value. The newly assigned value will remain until the next number "
2496 "is printed or another value is assigned to B<last>. (Some installations may "
2497 "allow the use of a single period (.\\&) which is not part of a number as a "
2498 "short hand notation for for B<last>.)"
2499 msgstr ""
2500
2501 #. type: Plain text
2502 #: debian-trixie debian-unstable
2503 msgid ""
2504 "The print statement (an extension) provides another method of output. The "
2505 "\"list\" is a list of strings and expressions separated by commas. Each "
2506 "string or expression is printed in the order of the list. No terminating "
2507 "newline is printed. Expressions are evaluated and their value is printed "
2508 "and assigned to the variable B<last>. Strings in the print statement are "
2509 "printed to the output and may contain special characters. Special "
2510 "characters start with the backslash character (\\e). The special characters "
2511 "recognized by B<bc> are \"a\" (alert or bell), \"b\" (backspace), \"f\" "
2512 "(form feed), \"n\" (newline), \"r\" (carriage return), \"q\" (double quote), "
2513 "\"t\" (tab), and \"\\e\" (backslash). Any other character following the "
2514 "backslash will be ignored."
2515 msgstr ""
2516
2517 #. type: Plain text
2518 #: debian-trixie debian-unstable
2519 msgid ""
2520 "The for statement controls repeated execution of the statement. Expression1 "
2521 "is evaluated before the loop. Expression2 is evaluated before each "
2522 "execution of the statement. If it is non-zero, the statement is evaluated. "
2523 "If it is zero, the loop is terminated. After each execution of the "
2524 "statement, expression3 is evaluated before the reevaluation of expression2. "
2525 "If expression1 or expression3 are missing, nothing is evaluated at the point "
2526 "they would be evaluated. If expression2 is missing, it is the same as "
2527 "substituting the value 1 for expression2. (The optional expressions are an "
2528 "extension. POSIX B<bc> requires all three expressions.) The following is "
2529 "equivalent code for the for statement:"
2530 msgstr ""
2531
2532 #. type: Plain text
2533 #: debian-trixie debian-unstable
2534 msgid ""
2535 "The continue statement (an extension) causes the most recent enclosing for "
2536 "statement to start the next iteration."
2537 msgstr ""
2538
2539 #. type: Plain text
2540 #: debian-trixie debian-unstable
2541 msgid ""
2542 "A function call is just an expression of the form \"\\,I<name\\/"
2543 ">B<(\\,>I<parameters\\/>B<)>\"."
2544 msgstr ""
2545
2546 #. type: Plain text
2547 #: debian-trixie debian-unstable
2548 msgid ""
2549 "Parameters are numbers or arrays (an extension). In the function "
2550 "definition, zero or more parameters are defined by listing their names "
2551 "separated by commas. All parameters are call by value parameters. Arrays "
2552 "are specified in the parameter definition by the notation \"\\,I<name\\/"
2553 ">B<[]>\". In the function call, actual parameters are full expressions for "
2554 "number parameters. The same notation is used for passing arrays as for "
2555 "defining array parameters. The named array is passed by value to the "
2556 "function. Since function definitions are dynamic, parameter numbers and "
2557 "types are checked when a function is called. Any mismatch in number or "
2558 "types of parameters will cause a runtime error. A runtime error will also "
2559 "occur for the call to an undefined function."
2560 msgstr ""
2561
2562 #. type: Plain text
2563 #: debian-trixie debian-unstable opensuse-leap-16-1
2564 msgid ""
2565 "Several extensions have been added to functions. First, the format of the "
2566 "definition has been slightly relaxed. The standard requires the opening "
2567 "brace be on the same line as the B<define> keyword and all other parts must "
2568 "be on following lines. This version of B<bc> will allow any number of "
2569 "newlines before and after the opening brace of the function. For example, "
2570 "the following definitions are legal."
2571 msgstr ""
2572
2573 #. type: Plain text
2574 #: debian-trixie debian-unstable opensuse-leap-16-1
2575 #, fuzzy, no-wrap
2576 #| msgid ""
2577 #| "CW<\n"
2578 #| "define f (x) {\n"
2579 #| " if (x E<lt>= 1) return (1);\n"
2580 #| " return (f(x-1) * x);\n"
2581 #| "}>\n"
2582 #| "\n"
2583 msgid ""
2584 "CW<\n"
2585 "define d (n) { return (2*n); }\n"
2586 "define d (n)\n"
2587 " { return (2*n); }>\n"
2588 "\n"
2589 msgstr ""
2590 "CW<\n"
2591 "define f (x) {>\n"
2592 "CW< if (x E<lt>= 1) return (1);>\n"
2593 "CW< return (f(x-1) * x);>\n"
2594 "CW<}>\n"
2595 "\n"
2596
2597 #. type: Plain text
2598 #: debian-trixie debian-unstable opensuse-leap-16-1
2599 #, no-wrap
2600 msgid ""
2601 "CW<\n"
2602 "define py (y) { print \"---E<gt>\", y, \"E<lt>---\", \"\\en\"; }\n"
2603 "define void px (x) { print \"---E<gt>\", x, \"E<lt>---\", \"\\en\"; }\n"
2604 "py(1)\n"
2605 "---E<gt>1E<lt>---\n"
2606 "0\n"
2607 "px(1)\n"
2608 "---E<gt>1E<lt>--->\n"
2609 "\n"
2610 msgstr ""
2611
2612 #. type: Plain text
2613 #: debian-trixie debian-unstable opensuse-leap-16-1
2614 msgid ""
2615 "Since B<py> is not a void function, the call of B<py(1)> prints the desired "
2616 "output and then prints a second line that is the value of the function. "
2617 "Since the value of a function that is not given an explicit return statement "
2618 "is zero, the zero is printed. For B<px(1)>, no zero is printed because the "
2619 "function is a void function."
2620 msgstr ""
2621
2622 #. type: Plain text
2623 #: debian-trixie debian-unstable
2624 msgid ""
2625 "Also, call by variable for arrays was added. To declare a call by variable "
2626 "array, the declaration of the array parameter in the function definition "
2627 "looks like \"\\,I<*name\\/>B<[]>\". The call to the function remains the "
2628 "same as call by value arrays."
2629 msgstr ""
2630
2631 #. type: IP
2632 #: debian-trixie debian-unstable
2633 #, no-wrap
2634 msgid "s (\\,I<x\\/>)"
2635 msgstr ""
2636
2637 #. type: IP
2638 #: debian-trixie debian-unstable
2639 #, no-wrap
2640 msgid "c (\\,I<x\\/>)"
2641 msgstr ""
2642
2643 #. type: IP
2644 #: debian-trixie debian-unstable
2645 #, no-wrap
2646 msgid "a (\\,I<x\\/>)"
2647 msgstr ""
2648
2649 #. type: IP
2650 #: debian-trixie debian-unstable
2651 #, no-wrap
2652 msgid "l (\\,I<x\\/>)"
2653 msgstr ""
2654
2655 #. type: IP
2656 #: debian-trixie debian-unstable
2657 #, no-wrap
2658 msgid "e (\\,I<x\\/>)"
2659 msgstr ""
2660
2661 #. type: IP
2662 #: debian-trixie debian-unstable
2663 #, fuzzy, no-wrap
2664 #| msgid "j (I<n,x>)"
2665 msgid "j (\\,I<n,x\\/>)"
2666 msgstr "j (I<n,x>)"
2667
2668 #. type: Plain text
2669 #: debian-trixie debian-unstable opensuse-leap-16-1
2670 msgid "CW< pi=$(echo \"scale=10; 4*a(1)\" | bc -l)>"
2671 msgstr "CW< pi=$(echo \"scale=10; 4*a(1)\" | bc -l)>"
2672
2673 #. type: Plain text
2674 #: debian-trixie debian-unstable opensuse-leap-16-1
2675 #, no-wrap
2676 msgid ""
2677 "CW<\n"
2678 "scale = 20>\n"
2679 msgstr ""
2680 "CW<\n"
2681 "scale = 20>\n"
2682
2683 #. type: Plain text
2684 #: debian-trixie debian-unstable opensuse-leap-16-1
2685 #, no-wrap
2686 msgid ""
2687 "CW</* Uses the fact that e^x = (e^(x/2))^2\n"
2688 " When x is small enough, we use the series:\n"
2689 " e^x = 1 + x + x^2/2! + x^3/3! + ...\n"
2690 "*/>\n"
2691 msgstr ""
2692
2693 #. type: Plain text
2694 #: debian-trixie debian-unstable opensuse-leap-16-1
2695 #, no-wrap
2696 msgid ""
2697 "CW<define e(x) {\n"
2698 " auto a, d, e, f, i, m, v, z>\n"
2699 msgstr ""
2700 "CW<define e(x) {>\n"
2701 "CW< auto a, d, e, f, i, m, v, z>\n"
2702
2703 #. type: Plain text
2704 #: debian-trixie debian-unstable
2705 #, no-wrap
2706 msgid ""
2707 "CW< /* Check the sign of x. */\n"
2708 " if (xE<lt>0) {\n"
2709 " m = 1\n"
2710 " x = -x\n"
2711 " }>\n"
2712 msgstr ""
2713
2714 #. type: Plain text
2715 #: debian-trixie debian-unstable opensuse-leap-16-1
2716 #, no-wrap
2717 msgid ""
2718 "CW< /* Precondition x. */\n"
2719 " z = scale;\n"
2720 " scale = 4 + z + .44*x;\n"
2721 " while (x E<gt> 1) {\n"
2722 " f += 1;\n"
2723 " x /= 2;\n"
2724 " }>\n"
2725 msgstr ""
2726
2727 #. type: Plain text
2728 #: debian-trixie debian-unstable opensuse-leap-16-1
2729 #, no-wrap
2730 msgid ""
2731 "CW< /* Initialize the variables. */\n"
2732 " v = 1+x\n"
2733 " a = x\n"
2734 " d = 1>\n"
2735 msgstr ""
2736
2737 #. type: Plain text
2738 #: debian-trixie debian-unstable opensuse-leap-16-1
2739 #, no-wrap
2740 msgid ""
2741 "CW< for (i=2; 1; i++) {\n"
2742 " e = (a *= x) / (d *= i)\n"
2743 " if (e == 0) {\n"
2744 " if (fE<gt>0) while (f--) v = v*v;\n"
2745 " scale = z\n"
2746 " if (m) return (1/v);\n"
2747 " return (v/1);\n"
2748 " }\n"
2749 " v += e\n"
2750 " }\n"
2751 "}>\n"
2752 "\n"
2753 msgstr ""
2754 "CW< for (i=2; 1; i++) {>\n"
2755 "CW< e = (a *= x) / (d *= i)>\n"
2756 "CW< if (e == 0) {>\n"
2757 "CW< if (fE<gt>0) while (f--) v = v*v;>\n"
2758 "CW< scale = z>\n"
2759 "CW< if (m) return (1/v);>\n"
2760 "CW< return (v/1);>\n"
2761 "CW< }>\n"
2762 "CW< v += e>\n"
2763 "CW< }>\n"
2764 "CW<}>\n"
2765 "\n"
2766
2767 #. type: Plain text
2768 #: debian-trixie debian-unstable opensuse-leap-16-1
2769 #, no-wrap
2770 msgid ""
2771 "CW<\n"
2772 "scale=2\n"
2773 "print \"\\enCheck book program!\\en\"\n"
2774 "print \" Remember, deposits are negative transactions.\\en\"\n"
2775 "print \" Exit by a 0 transaction.\\en\\en\">\n"
2776 msgstr ""
2777
2778 #. type: Plain text
2779 #: debian-trixie debian-unstable opensuse-leap-16-1
2780 #, no-wrap
2781 msgid ""
2782 "CW<print \"Initial balance? \"; bal = read()\n"
2783 "bal /= 1\n"
2784 "print \"\\en\"\n"
2785 "while (1) {\n"
2786 " \"current balance = \"; bal\n"
2787 " \"transaction? \"; trans = read()\n"
2788 " if (trans == 0) break;\n"
2789 " bal -= trans\n"
2790 " bal /= 1\n"
2791 "}\n"
2792 "quit>\n"
2793 "\n"
2794 msgstr ""
2795
2796 #. type: Plain text
2797 #: debian-trixie debian-unstable opensuse-leap-16-1
2798 #, no-wrap
2799 msgid ""
2800 "CW<\n"
2801 "define f (x) {\n"
2802 " if (x E<lt>= 1) return (1);\n"
2803 " return (f(x-1) * x);\n"
2804 "}>\n"
2805 "\n"
2806 msgstr ""
2807 "CW<\n"
2808 "define f (x) {>\n"
2809 "CW< if (x E<lt>= 1) return (1);i>\n"
2810 "CW< return (f(x-1) * x);>\n"
2811 "CW<}>\n"
2812 "\n"
2813
2814 #. type: Plain text
2815 #: debian-trixie debian-unstable
2816 msgid ""
2817 "GNU B<bc> can be compiled (via a configure option) to use the GNU "
2818 "B<readline> input editor library or the BSD B<libedit> library. This allows "
2819 "the user to do editing of lines before sending them to B<bc>. It also "
2820 "allows for a history of previous lines typed. When this option is selected, "
2821 "B<bc> has one more special variable. This special variable, B<history> is "
2822 "the number of lines of history retained. For B<readline>, a value of -1 "
2823 "means that an unlimited number of history lines are retained. Setting the "
2824 "value of B<history> to a positive number restricts the number of history "
2825 "lines to the number given. The value of 0 disables the history feature. "
2826 "The default value is 100. For more information, read the user manuals for "
2827 "the GNU B<readline>, B<history> and BSD B<libedit> libraries. One can not "
2828 "enable both B<readline> and B<libedit> at the same time."
2829 msgstr ""
2830
2831 #. type: Plain text
2832 #: debian-trixie debian-unstable opensuse-leap-16-1
2833 msgid ""
2834 "This version of B<bc> was implemented from the POSIX P1003.2/D11 draft and "
2835 "contains several differences and extensions relative to the draft and "
2836 "traditional implementations. It is not implemented in the traditional way "
2837 "using I<dc(1).> This version is a single process which parses and runs a "
2838 "byte code translation of the program. There is an \"undocumented\" option (-"
2839 "c) that causes the program to output the byte code to the standard output "
2840 "instead of running it. It was mainly used for debugging the parser and "
2841 "preparing the math library."
2842 msgstr ""
2843
2844 #. type: Plain text
2845 #: debian-trixie debian-unstable
2846 msgid ""
2847 "POSIX B<bc> does not have a B<last> variable. Some implementations of B<bc> "
2848 "use the period (.\\&) in a similar way."
2849 msgstr ""
2850
2851 #. type: Plain text
2852 #: debian-trixie debian-unstable
2853 msgid "POSIX B<bc> does not have a print statement."
2854 msgstr ""
2855
2856 #. type: Plain text
2857 #: debian-trixie debian-unstable opensuse-leap-16-1
2858 msgid ""
2859 "The maximum output base is currently set at 999. The maximum input base is "
2860 "16."
2861 msgstr ""
2862
2863 #. type: Plain text
2864 #: debian-trixie debian-unstable
2865 msgid ""
2866 "This should be an integer specifying the number of characters in an output "
2867 "line for numbers. This includes the backslash and newline characters for "
2868 "long numbers. As an extension, the value of zero disables the multi-line "
2869 "feature. Any other value of this variable that is less than 3 sets the line "
2870 "length to 70."
2871 msgstr ""
2872
2873 #. type: Plain text
2874 #: debian-trixie debian-unstable
2875 #, fuzzy, no-wrap
2876 #| msgid ""
2877 #| "Philip A. Nelson\n"
2878 #| "[email protected]\n"
2879 msgid ""
2880 "Philip A.\\& Nelson\n"
2881 "[email protected]\n"
2882 msgstr ""
2883 "Philip A. Nelson\n"
2884 "[email protected]\n"
2885
2886 #. type: Plain text
2887 #: fedora-44 fedora-rawhide
2888 msgid ""
2889 "The result of the expression is the product of the two expressions. If a "
2890 "and b are the scales of the two expressions, then the scale of the result "
2891 "is: min(a+b,max(scale,a,b))"
2892 msgstr ""
2893
2894 #. type: Plain text
2895 #: opensuse-leap-16-1
2896 #, fuzzy
2897 msgid ""
2898 "Numbers are stored in two types of variables, simple variables and arrays. "
2899 "Both simple variables and array variables are named. Names begin with a "
2900 "letter followed by any number of letters, digits and underscores. All "
2901 "letters must be lower case. (Full alpha-numeric names are an extension. In "
2902 "POSIX B<bc> all names are a single lower case letter.) The type of variable "
2903 "is clear by the context because all array variable names will be followed by "
2904 "brackets ([])."
2905 msgstr ""
2906 "숫자는 두 가지 형태의 변수, 일반 변수 또는 배열에 저장된다. 둘 다 모두 이름"
2907 "을 가진다. 이름은 문자 다음에 문자, 숫자, 언더스코어(_)를 쓰며 길이에는 제한"
2908 "이 없다. arrays. Both simple variables and array variables are named. "
2909 "Names begin with a letter followed by any number of letters, digits and "
2910 "underscores. All letters must be lower case. (Full alpha-numeric names are "
2911 "an extension. In POSIX B<bc> all names are a single lower case letter.) The "
2912 "type of variable is clear by the context because all array variable names "
2913 "will be followed by brackets ([])."
2914
2915 #. type: Plain text
2916 #: opensuse-leap-16-1
2917 msgid ""
2918 "A simple expression is just a constant. B<bc> converts constants into "
2919 "internal decimal numbers using the current input base, specified by the "
2920 "variable B<ibase>. (There is an exception in functions.) The legal values "
2921 "of B<ibase> are 2 through 36. (Bases greater than 16 are an extension.) "
2922 "Assigning a value outside this range to B<ibase> will result in a value of 2 "
2923 "or 36. Input numbers may contain the characters 0-9 and A-Z. (Note: They "
2924 "must be capitals. Lower case letters are variable names.) Single digit "
2925 "numbers always have the value of the digit regardless of the value of "
2926 "B<ibase>. (i.e. A = 10.) For multi-digit numbers, B<bc> changes all input "
2927 "digits greater or equal to ibase to the value of B<ibase>-1. This makes the "
2928 "number B<ZZZ> always be the largest 3 digit number of the input base."
2929 msgstr ""
2930
2931 #. type: Plain text
2932 #: opensuse-leap-16-1
2933 msgid ""
2934 "The result of the expression is the value of the first raised to the second. "
2935 "The second expression must be an integer. (If the second expression is not "
2936 "an integer, a warning is generated and the expression is truncated to get an "
2937 "integer value.) The scale of the result is B<scale> if the exponent is "
2938 "negative. If the exponent is positive the scale of the result is the "
2939 "minimum of the scale of the first expression times the value of the exponent "
2940 "and the maximum of B<scale> and the scale of the first expression. (e.g. "
2941 "scale(a^b) = min(scale(a)*b, max( B<scale,> scale(a))).) It should be "
2942 "noted that expr^0 will always return the value of 1."
2943 msgstr ""
2944
2945 #. type: Plain text
2946 #: opensuse-leap-16-1
2947 msgid ""
2948 "Boolean operations are also legal. (POSIX B<bc> does NOT have boolean "
2949 "operations). The result of all boolean operations are 0 and 1 (for false and "
2950 "true) as in relational expressions. The boolean operators are:"
2951 msgstr ""
2952
2953 #. type: Plain text
2954 #: opensuse-leap-16-1
2955 msgid ""
2956 "Statements (as in most algebraic languages) provide the sequencing of "
2957 "expression evaluation. In B<bc> statements are executed \"as soon as "
2958 "possible.\" Execution happens when a newline in encountered and there is one "
2959 "or more complete statements. Due to this immediate execution, newlines are "
2960 "very important in B<bc>. In fact, both a semicolon and a newline are used as "
2961 "statement separators. An improperly placed newline will cause a syntax "
2962 "error. Because newlines are statement separators, it is possible to hide a "
2963 "newline by using the backslash character. The sequence \"\\eE<lt>nlE<gt>\", "
2964 "where E<lt>nlE<gt> is the newline appears to B<bc> as whitespace instead of "
2965 "a newline. A statement list is a series of statements separated by "
2966 "semicolons and newlines. The following is a list of B<bc> statements and "
2967 "what they do: (Things enclosed in brackets ([]) are optional parts of the "
2968 "statement.)"
2969 msgstr ""
2970
2971 #. type: Plain text
2972 #: opensuse-leap-16-1
2973 msgid ""
2974 "This statement does one of two things. If the expression starts with "
2975 "\"E<lt>variableE<gt> E<lt>assignmentE<gt> ...\", it is considered to be an "
2976 "assignment statement. If the expression is not an assignment statement, the "
2977 "expression is evaluated and printed to the output. After the number is "
2978 "printed, a newline is printed. For example, \"a=1\" is an assignment "
2979 "statement and \"(a=1)\" is an expression that has an embedded assignment. "
2980 "All numbers that are printed are printed in the base specified by the "
2981 "variable B<obase>. The legal values for B< obase> are 2 through "
2982 "BC_BASE_MAX. (See the section LIMITS.) For bases 2 through 16, the usual "
2983 "method of writing numbers is used. For bases greater than 16, B<bc> uses a "
2984 "multi-character digit method of printing the numbers where each higher base "
2985 "digit is printed as a base 10 number. The multi-character digits are "
2986 "separated by spaces. Each digit contains the number of characters required "
2987 "to represent the base ten value of \"obase-1\". Since numbers are of "
2988 "arbitrary precision, some numbers may not be printable on a single output "
2989 "line. These long numbers will be split across lines using the \"\\e\" as "
2990 "the last character on a line. The maximum number of characters printed per "
2991 "line is 70. Due to the interactive nature of B<bc>, printing a number "
2992 "causes the side effect of assigning the printed value to the special "
2993 "variable B<last>. This allows the user to recover the last value printed "
2994 "without having to retype the expression that printed the number. Assigning "
2995 "to B<last> is legal and will overwrite the last printed value with the "
2996 "assigned value. The newly assigned value will remain until the next number "
2997 "is printed or another value is assigned to B<last>. (Some installations may "
2998 "allow the use of a single period (.) which is not part of a number as a "
2999 "short hand notation for for B<last>.)"
3000 msgstr ""
3001
3002 #. type: Plain text
3003 #: opensuse-leap-16-1
3004 msgid ""
3005 "Functions may be defined as B<void>. A void funtion returns no value and "
3006 "thus may not be used in any place that needs a value. A void function does "
3007 "not produce any output when called by itself on an input line. The key word "
3008 "B<void> is placed between the key word B<define> and the function name. For "
3009 "example, consider the following session."
3010 msgstr ""
3011
3012 #. type: Plain text
3013 #: opensuse-leap-16-1
3014 #, no-wrap
3015 msgid ""
3016 "CW< /* Check the sign of x. */\n"
3017 " if (xE<lt>0) {\n"
3018 " m = 1\n"
3019 " x = -x\n"
3020 " } >\n"
3021 msgstr ""