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