Debian Codegraph @

po/pl/archive/man3/expr.3tcl.po

raw
1 # Polish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Przemek Borys <[email protected]>, 1999-2000.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2025-02-16 05:40+0100\n"
9 "PO-Revision-Date: 2000-02-21 15:11+0100\n"
10 "Last-Translator: Przemek Borys <[email protected]>\n"
11 "Language-Team: Polish <[email protected]>\n"
12 "Language: pl\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
17 "|| n%100>=20) ? 1 : 2);\n"
18
19 #. type: TH
20 #: expr.3tcl:248
21 #, no-wrap
22 msgid "expr"
23 msgstr "expr"
24
25 #. type: TH
26 #: expr.3tcl:248
27 #, no-wrap
28 msgid "8.0"
29 msgstr "8.0"
30
31 #. type: TH
32 #: expr.3tcl:248
33 #, no-wrap
34 msgid "Tcl"
35 msgstr "Tcl"
36
37 #. type: TH
38 #: expr.3tcl:248
39 #, no-wrap
40 msgid "Built-in Tcl commands"
41 msgstr "Wbudowane komendy Tcl"
42
43 #. Note: do not modify the .SH NAME line immediately below!
44 #. type: SH
45 #: expr.3tcl:251
46 #, no-wrap
47 msgid "NAME"
48 msgstr "NAZWA"
49
50 #. type: Plain text
51 #: expr.3tcl:253
52 msgid "expr - Calculate expression"
53 msgstr "expr - Oblicz wyrażenie"
54
55 #. type: SH
56 #: expr.3tcl:253
57 #, no-wrap
58 msgid "SYNOPSIS"
59 msgstr "SKŁADNIA"
60
61 #. type: Plain text
62 #: expr.3tcl:255
63 msgid "B<expr >I<arg >?I<arg arg ...>?"
64 msgstr "B<expr >I<arg >?I<arg arg ...>?"
65
66 #. type: SH
67 #: expr.3tcl:257
68 #, no-wrap
69 msgid "DESCRIPTION"
70 msgstr "OPIS"
71
72 #. type: Plain text
73 #: expr.3tcl:265
74 msgid ""
75 "Concatenates the successive I<arg> parameters (adding spaces between them) "
76 "and evaluates the result as a Tcl expression, returning a value. The legal "
77 "Tcl expressions are a subset of the operators legal in C expressions, and "
78 "have the same meaning and precedence as the corresponding C operators. "
79 "Expressions almost always produce numeric results (integer or floating "
80 "point). For example, the expression"
81 msgstr ""
82 "Łączy kolejne parametry I<arg> (dodając między nimi spacje) i analizuje wynik "
83 "jako wyrażenie Tcl, zwracając wartość. Dozwolone wyrażenia Tcl są podzbiorem "
84 "operatorów dozwolonych w wyrażeniach C i mają takie samo znaczenie i "
85 "pierwszeństwo, jak odpowiadające im operatory C. Wyrażenia dają prawie "
86 "zawsze wyniki numeryczne (całkowite, lub zmiennoprzecinkowe). Np. wyrażenie"
87
88 #. type: Plain text
89 #: expr.3tcl:267
90 msgid "B<expr 8.2 + 6>"
91 msgstr "B<expr 8.2 + 6>"
92
93 #. type: Plain text
94 #: expr.3tcl:272
95 msgid ""
96 "goes into 14.2. Tcl expressions differ from C expressions in that the "
97 "operands are specified differently. In addition, Tcl expressions support non-"
98 "numeric operands and string comparisons."
99 msgstr ""
100 "przechodzi w 14.2. Wyrażenia Tcl różnią się od wyrażeń C tym, że operandy są "
101 "podawane w inny sposób. Poza tym, wyrażenia Tcl obsługują operandy "
102 "nienumeryczne oraz porównania łańcuchów."
103
104 #. type: SH
105 #: expr.3tcl:272
106 #, no-wrap
107 msgid "OPERANDS"
108 msgstr "OPERANDY"
109
110 #. type: Plain text
111 #: expr.3tcl:291
112 msgid ""
113 "A Tcl expression consists of a combination of operands, operators, and "
114 "parentheses. Whitespace may be used between operands and operators; it is "
115 "ignored. Where possible, operands are interpreted as integer values. Integer "
116 "values ​​may be specified in decimal (the normal case), octal (if the first "
117 "character of the operand is B<0>), or hexadecimal (if the first characters of "
118 "the operand are B<0x>). If the operand is not in one of the above integer "
119 "formats, it is treated as a floating-point number if possible. Floating-point "
120 "variables may be specified in any of the ways supported by an ANSI-compliant "
121 "C compiler (except that the suffixes B<f>, B<F>, B<l>, and B<L> will not be "
122 "allowed in most installations). For example, the following numbers are all "
123 "valid floating-point numbers: 2.1, 3., 6e4, 7.91e+16. If no numeric "
124 "interpretation is possible, the operand is left as a string (but then only a "
125 "restricted set of operators can be used)."
126 msgstr ""
127 "Wyrażenie Tcl składa się z kombinacji operandów, operatorów i nawiasów. "
128 "Między operandami i operatorami można używać białych spacji; są one "
129 "ignorowane. Tam gdzie mozliwe, operandy są interpretowane jako wartości "
130 "całkowite. Wartości całkowite można podawać dziesiętnie (normalny wypadek), "
131 "ósemkowo (jeśli pierwszym znakiem operandu jest B<0>) lub szesnastkowo (jeśli "
132 "pierwszymi znakami operandu są B<0x>). Jeśli operand nie jest w żadnym z "
133 "powyszszych formatów całkowitych, to o ile jest to możliwe, jest traktowany "
134 "jako liczba zmiennoprzecinkowa. Zmienne zmiennoprzecinkowe mogą być podawane "
135 "w dowolny ze sposobów, obsługiwanych przez zgodny z ANSI kompilator C (poza "
136 "tym, że przyrostki B<f>, B<F>, B<l> i B<L> w większości instalacji nie będą "
137 "dozwolone). Na przykład, wszystkie następujące liczby są poprawnymi liczbami "
138 "zmiennoprzecinkowymi: 2.1, 3., 6e4, 7.91e+16. Jesli nie jest możliwa "
139 "interpretacja numeryczna, to operand jest pozostawiany jako łańcuch (wtedy "
140 "jednak można stosować tylko ograniczony zestaw operatorów)."
141
142 #. type: Plain text
143 #: expr.3tcl:293
144 msgid "Operands can be specified in the following ways:"
145 msgstr "Operandy mogą być podawane w następujące sposoby:"
146
147 #. type: IP
148 #: expr.3tcl:293
149 #, no-wrap
150 msgid "[1]"
151 msgstr "[1]"
152
153 #. type: Plain text
154 #: expr.3tcl:295
155 msgid "As a numeric, integer, or floating point value."
156 msgstr "Jako wartość numeryczną, całkowitą albo zmiennoprzecinkową."
157
158 #. type: IP
159 #: expr.3tcl:295
160 #, no-wrap
161 msgid "[2]"
162 msgstr "[2]"
163
164 #. type: Plain text
165 #: expr.3tcl:298
166 msgid ""
167 "As a Tcl variable, using the standard B<$> notation. The value of the "
168 "variable will be used as the operand."
169 msgstr ""
170 "Jako zmienną Tcl, przy użyciu standardowej notacji B<$>. Wartość zmiennej "
171 "zostanie wykorzystana jako operand."
172
173 #. type: IP
174 #: expr.3tcl:298
175 #, no-wrap
176 msgid "[3]"
177 msgstr "[3]"
178
179 #. type: Plain text
180 #: expr.3tcl:302
181 msgid ""
182 "As a string enclosed in double quotes. The expression's processing will be "
183 "sensitive to slash, variable, and command substitutions, and will use the "
184 "result as an operand."
185 msgstr ""
186 "Jako łańcuch ujęty w podwójne cudzysłowy. Przetwarzanie wyrażenia będzie "
187 "wrażliwe na podstawienia ukośnikowe, zmiennych i komend, i użyje wyniku jako "
188 "operandu."
189
190 #. type: IP
191 #: expr.3tcl:302
192 #, no-wrap
193 msgid "[4]"
194 msgstr "[4]"
195
196 #. type: Plain text
197 #: expr.3tcl:305
198 msgid ""
199 "As a string enclosed in curly braces. The characters between the opening and "
200 "closing braces will be used as the operand without any substitution."
201 msgstr ""
202 "Jako łańcuch ujęty w nawiasy klamrowe. Znaki między klamrą otwierającą i "
203 "zamykającą zostaną użyte jako operand bez żadnego podstawiania."
204
205 #. type: IP
206 #: expr.3tcl:305
207 #, no-wrap
208 msgid "[5]"
209 msgstr "[5]"
210
211 #. type: Plain text
212 #: expr.3tcl:308
213 msgid ""
214 "As a Tcl command in square brackets. The command will be executed and its "
215 "result used as an operand."
216 msgstr ""
217 "Jako komenda Tcl w naiwasach kwadratowych. Komenda zostanie wykonana, a jej "
218 "wynik użyty jako operand."
219
220 #. type: IP
221 #: expr.3tcl:308
222 #, no-wrap
223 msgid "[6]"
224 msgstr "[6]"
225
226 #. type: Plain text
227 #: expr.3tcl:312
228 msgid ""
229 "As a mathematical function whose arguments have any of the above forms, such "
230 "as B<sin($x)>. See below for a list of defined functions."
231 msgstr ""
232 "Jako funkcja matematyczna, której argumenty mają dowolną z powyższych "
233 "postaci, taka jak B<sin($x)>. Zobacz niżej dla listy zdefiniowanych funkcji."
234
235 #. type: Plain text
236 #: expr.3tcl:319
237 msgid ""
238 "Where substitutions occur, they are performed by the expression statements. "
239 "However, another level of substitution may have already been performed by the "
240 "statement processor before the expression processor is invoked. As the "
241 "following discussion shows, it is usually best to enclose expressions in "
242 "braces, which prevents the processor from making substitutions to the "
243 "contents."
244 msgstr ""
245 "Tam gdzie zachodzą podstawienia, są one dokonywane przez instrukcje "
246 "wyrażenia. Jednak mógł też zostać już wykonany inny poziom podstawiania, "
247 "dokonywany przez przetwarzacza poleceń przed wywołaniem przetwarzacza "
248 "wyrażeń. Jak pokazuje poniższa dyskusja, zwykle najlepiej jest ujmować "
249 "wyrażenia w klamry, co zapobiega by przetwarzacz dokonał podstawień "
250 "zawartości."
251
252 #. type: Plain text
253 #: expr.3tcl:325
254 msgid ""
255 "For some examples of simple expressions, assume that the variable B<a> has "
256 "the value 3 and the variable B<b> has the value 6. Then, the command on the "
257 "left side of each line will produce the result shown on the right side."
258 msgstr ""
259 "Dla pewnych przykładów prostych wyrażeń, załóżmy że zmienna B<a> ma wartość "
260 "3, a zmienna B<b> wartość 6. Następnie, komenda po lewej stronie każdej z "
261 "linii da wynik, widoczny po prawej stronie."
262
263 #. type: ta
264 #: expr.3tcl:326
265 #, no-wrap
266 msgid "6c"
267 msgstr "6c"
268
269 #. type: Plain text
270 #: expr.3tcl:331
271 msgid ""
272 "B<expr 3.1 + $a\t6.1 expr 2 + \"$a.$b\"\t5.6 expr 4*[llength \"6 2\"]\t8 expr "
273 "{{word one} E<lt> \"word $a\"}\t0>"
274 msgstr ""
275 "B<expr 3.1 + $a\t6.1 expr 2 + \"$a.$b\"\t5.6 expr 4*[llength \"6 2\"]\t8 expr "
276 "{{word one} E<lt> \"word $a\"}\t0>"
277
278 #. type: SH
279 #: expr.3tcl:332
280 #, no-wrap
281 msgid "OPERATORS"
282 msgstr "OPERATORY"
283
284 #. type: Plain text
285 #: expr.3tcl:336
286 msgid ""
287 "Valid operators are listed below; they are grouped by decreasing precedence:"
288 msgstr ""
289 "Poniżej wymienione są prawidłowe operatory; są one zgrupowane według "
290 "malejącego priorytetu:"
291
292 #. type: TP
293 #: expr.3tcl:336
294 #, no-wrap
295 msgid "B<-\\0\\0+\\0\\0~\\0\\0!>"
296 msgstr "B<-\\0\\0+\\0\\0~\\0\\0!>"
297
298 #. type: Plain text
299 #: expr.3tcl:341
300 msgid ""
301 "Unary minus, unary plus, bitwise NOT, and logical NOT. None of these "
302 "operators can be applied to string operands, and bitwise NOT can only be "
303 "applied to integers."
304 msgstr ""
305 "Jednoargumentowy minus, jednoargumentowy plis, bitowy NOT i logiczny NOT. "
306 "Żaden z tych operatorów nie może być stosowany do operandów łańcuchowych, a "
307 "bitowy NOT może być stosowany tylko do liczb całkowitych."
308
309 #. type: TP
310 #: expr.3tcl:341
311 #, no-wrap
312 msgid "B<*\\0\\0/\\0\\0%>"
313 msgstr "B<*\\0\\0/\\0\\0%>"
314
315 #. type: Plain text
316 #: expr.3tcl:348
317 msgid ""
318 "Multiplication, division, remainder. None of these operators can be applied "
319 "to string operands, and remainder can only be applied to integers. The "
320 "remainder always has the sign of the divisor and its absolute value is always "
321 "less than the value of the divisor."
322 msgstr ""
323 "Mnożenie, dzielenie, reszta. Żaden z tych operatorów nie może być stosowany "
324 "do operandów łańcuchowych, a reszta może być stosowana tylko do liczb "
325 "całkowitych. Reszta ma zawsze znak dzielnika i jej wartość absolutna jest "
326 "zawsze mnijesza niż wartość dzielnika."
327
328 #. type: TP
329 #: expr.3tcl:348
330 #, no-wrap
331 msgid "B<+\\0\\0->"
332 msgstr "B<+\\0\\0->"
333
334 #. type: Plain text
335 #: expr.3tcl:351
336 msgid "Addition and subtraction. Valid for any numeric operands."
337 msgstr ""
338 "Dodawanie i odejmowanie. Prawidłowe dla dowolnych operandów numerycznych."
339
340 #. type: TP
341 #: expr.3tcl:351
342 #, no-wrap
343 msgid "B<E<lt>E<lt>\\0\\0E<gt>E<gt>>"
344 msgstr "B<E<lt>E<lt>\\0\\0E<gt>E<gt>>"
345
346 #. type: Plain text
347 #: expr.3tcl:355
348 msgid ""
349 "Shift left and right. Valid only for integer operands. Shifting right "
350 "propagates the sign bit."
351 msgstr ""
352 "Przesuwanie w lewo i w prawo. Prawidłowe tylko dla operandów całkowitych. "
353 "Przesuwanie w prawo propaguje bit znaku."
354
355 #. type: TP
356 #: expr.3tcl:355
357 #, no-wrap
358 msgid "B<E<lt>\\0\\0E<gt>\\0\\0E<lt>=\\0\\0E<gt>=>"
359 msgstr "B<E<lt>\\0\\0E<gt>\\0\\0E<lt>=\\0\\0E<gt>=>"
360
361 #. type: Plain text
362 #: expr.3tcl:361
363 msgid ""
364 "Logical less than, greater than, less than or equal to, greater than or equal "
365 "to. Each operator produces 1 if the condition is true, or 0 otherwise. The "
366 "operands can be either numeric or string values, in which case a string "
367 "comparison is performed."
368 msgstr ""
369 "Logiczny mniejszy, większy, mniejszy lub równy, większy lub równy. Każdy "
370 "operator daje 1 jeśli warunek jest spełniony lub 0 w przeciwnym wypadku. "
371 "Operandami mogą być zarówno wartości numeryczne, jak i łańcuchowe, w którym "
372 "wypadku dokonywane jest porównywanie łańcuchów."
373
374 #. type: TP
375 #: expr.3tcl:361
376 #, no-wrap
377 msgid "B<==\\0\\0!=>"
378 msgstr "B<==\\0\\0!=>"
379
380 #. type: Plain text
381 #: expr.3tcl:365
382 msgid ""
383 "Logical equality and inequality. Each operator produces a result of zero/one. "
384 "Valid for any operands."
385 msgstr ""
386 "Logiczna równość i nierówność. Każdy operator daje wynik zero/jeden. "
387 "Prawidłowe dla wszelkich operandów."
388
389 #. type: TP
390 #: expr.3tcl:365
391 #, no-wrap
392 msgid "B<&>"
393 msgstr "B<&>"
394
395 #. type: Plain text
396 #: expr.3tcl:368
397 msgid "Bitwise AND. Valid only for integer operands."
398 msgstr "Bitowy AND. Prawidłowy tylko dla operandów całkowitych."
399
400 #. type: TP
401 #: expr.3tcl:368
402 #, no-wrap
403 msgid "B<^>"
404 msgstr "B<^>"
405
406 #. type: Plain text
407 #: expr.3tcl:371
408 msgid "Bitwise XOR. Only valid for integer operands."
409 msgstr "Bitowy XOR. Prawidłowy tylko dla operandów całkowitych."
410
411 #. type: TP
412 #: expr.3tcl:371
413 #, no-wrap
414 msgid "B<|>"
415 msgstr "B<|>"
416
417 #. type: Plain text
418 #: expr.3tcl:374
419 msgid "Bitwise OR. Valid only for integer operands."
420 msgstr "Bitowy OR. Prawidłowy tylko dla operandów całkowitych."
421
422 #. type: TP
423 #: expr.3tcl:374
424 #, no-wrap
425 msgid "B<&&>"
426 msgstr "B<&&>"
427
428 #. type: Plain text
429 #: expr.3tcl:379
430 msgid ""
431 "Logical AND. Returns 1 if both operands are nonzero, or 0 otherwise. Valid "
432 "for logical and numeric operands."
433 msgstr ""
434 "Logiczny AND. Daje 1 jeśli obydwa operandy są niezerowe, lub 0 w przeciwnym "
435 "wypadku. Prawidłowe dla operandów logicznych i numerycznych."
436
437 #. type: TP
438 #: expr.3tcl:379
439 #, no-wrap
440 msgid "B<||>"
441 msgstr "B<||>"
442
443 #. type: Plain text
444 #: expr.3tcl:383
445 msgid ""
446 "Logical OR. Returns 0 if both operands are zero or 1 otherwise. Valid for "
447 "logical and numeric operands."
448 msgstr ""
449 "Logiczny OR. Daje 0 jeśli obydwa operandy są zerowe lub 1 w przeciwnym "
450 "wypadku. Prawidłowe dla operandów logicznych i numerycznych."
451
452 #. type: TP
453 #: expr.3tcl:383
454 #, no-wrap
455 msgid "I<x>B<?>I<y>B<:>I<z>"
456 msgstr "I<x>B<?>I<y>B<:>I<z>"
457
458 #. type: Plain text
459 #: expr.3tcl:389
460 msgid ""
461 "If-then-else, as in C. If I<x> evaluates to a nonzero value, the result is "
462 "the value of I<y>. Otherwise, the result is I<z>. The operand of I<x> must be "
463 "a numeric value."
464 msgstr ""
465 "Jeżeli-to-inaczej, jak w C. Jeśli I<x> rozwija się na wartość niezerową, to "
466 "wynikiem jest wartość I<y>. W przeciwnym wypadku wartością wynikową jest "
467 "I<z>. Operand I<x> musi mieć wartość numeryczną."
468
469 #. type: Plain text
470 #: expr.3tcl:393
471 msgid ""
472 "See the C manual for further details on the results produced by operators. "
473 "All binary operators group from left to right with the same precedence. For "
474 "example, the command"
475 msgstr ""
476 "Zobacz podręcznik C dla dalszych szczegółów o wynikach, dawanych przez "
477 "operatory. Wszystkie operatory binarne grupują się od lewej do prawej w tym "
478 "samym priorytecie. Np. komenda"
479
480 #. type: Plain text
481 #: expr.3tcl:395
482 msgid "B<expr 4*2 E<lt> 7>"
483 msgstr "B<expr 4*2 E<lt> 7>"
484
485 #. type: Plain text
486 #: expr.3tcl:397
487 msgid "gives 0."
488 msgstr "daje 0."
489
490 #. type: Plain text
491 #: expr.3tcl:401
492 msgid ""
493 "The operators B<&&>, B<||>, and B<?:> have ``lazy analysis'', just like in C, "
494 "meaning that the operands are not evaluated unless they are needed to "
495 "determine the result. For example, in the command"
496 msgstr ""
497 "Operatory B<&&>, B<||> i B<?:> mają ``leniwą analizę'', zupełnie jak w C, co "
498 "znaczy, że operandy nie są analizowane jeśli nie ma takiej potrzeby do "
499 "określenia wyniku. Np. w komendzie"
500
501 #. type: Plain text
502 #: expr.3tcl:403
503 msgid "B<expr {$v ? [a] : [b]}>"
504 msgstr "B<expr {$v ? [a] : [b]}>"
505
506 #. type: Plain text
507 #: expr.3tcl:409
508 msgid ""
509 "only one of B<[a]> or B<[b]> will be evaluated, depending on the value of "
510 "B<$v>. Note, however, that this is only true if the entire expression is "
511 "enclosed in curly braces; otherwise, the Tcl parser will parse both B<[a]> "
512 "and B<[b]> before invoking the B<expr> command."
513 msgstr ""
514 "analizowane będzie tylko jedno z B<[a]> lub B<[b]>, zależnie od wartości "
515 "B<$v>. Zauważ jednak, że jest to prawdziwe tylko jeśli całe wyrażenie jest "
516 "ujęte w nawiasy klamrowe; w przeciwnym wypadku przetwarzacz Tcl przemieli "
517 "zarówno B<[a]> jak i B<[b]> jeszcze przed wywołaniem komendy B<expr>."
518
519 #. type: SH
520 #: expr.3tcl:409
521 #, no-wrap
522 msgid "MATHEMATICAL FUNCTIONS"
523 msgstr "FUNKCJE MATEMATYCZNE"
524
525 #. type: Plain text
526 #: expr.3tcl:412
527 msgid "Tcl supports the following mathematical expression functions:"
528 msgstr "Tcl obsługuje następujące funkcje matematyczne wyrażeń:"
529
530 #. type: tbl table
531 #: expr.3tcl:414
532 #, no-wrap
533 msgid "B<acos>"
534 msgstr "B<acos>"
535
536 #. type: tbl table
537 #: expr.3tcl:414
538 #, no-wrap
539 msgid "B<cos>"
540 msgstr "B<cos>"
541
542 #. type: tbl table
543 #: expr.3tcl:414
544 #, no-wrap
545 msgid "B<hypot>"
546 msgstr "B<hypot>"
547
548 #. type: tbl table
549 #: expr.3tcl:414
550 #, no-wrap
551 msgid "B<sinh>"
552 msgstr "B<sinh>"
553
554 #. type: tbl table
555 #: expr.3tcl:415
556 #, no-wrap
557 msgid "B<asin>"
558 msgstr "B<asin>"
559
560 #. type: tbl table
561 #: expr.3tcl:415
562 #, no-wrap
563 msgid "B<cosh>"
564 msgstr "B<cosh>"
565
566 #. type: tbl table
567 #: expr.3tcl:415
568 #, no-wrap
569 msgid "B<log>"
570 msgstr "B<log>"
571
572 #. type: tbl table
573 #: expr.3tcl:415
574 #, no-wrap
575 msgid "B<sqrt>"
576 msgstr "B<sqrt>"
577
578 #. type: tbl table
579 #: expr.3tcl:416
580 #, no-wrap
581 msgid "B<atan>"
582 msgstr "B<atan>"
583
584 #. type: tbl table
585 #: expr.3tcl:416
586 #, no-wrap
587 msgid "B<exp>"
588 msgstr "B<exp>"
589
590 #. type: tbl table
591 #: expr.3tcl:416
592 #, no-wrap
593 msgid "B<log10>"
594 msgstr "B<log10>"
595
596 #. type: tbl table
597 #: expr.3tcl:416
598 #, no-wrap
599 msgid "B<tan>"
600 msgstr "B<tan>"
601
602 #. type: tbl table
603 #: expr.3tcl:417
604 #, no-wrap
605 msgid "B<atan2>"
606 msgstr "B<atan2>"
607
608 #. type: tbl table
609 #: expr.3tcl:417
610 #, no-wrap
611 msgid "B<floor>"
612 msgstr "B<floor>"
613
614 #. type: tbl table
615 #: expr.3tcl:417
616 #, no-wrap
617 msgid "B<pow>"
618 msgstr "B<pow>"
619
620 #. type: tbl table
621 #: expr.3tcl:417
622 #, no-wrap
623 msgid "B<tanh>"
624 msgstr "B<tanh>"
625
626 #. type: tbl table
627 #: expr.3tcl:418
628 #, no-wrap
629 msgid "B<ceil>"
630 msgstr "B<ceil>"
631
632 #. type: tbl table
633 #: expr.3tcl:418
634 #, no-wrap
635 msgid "B<fmod>"
636 msgstr "B<fmod>"
637
638 #. type: tbl table
639 #: expr.3tcl:418
640 #, no-wrap
641 msgid "B<sin>"
642 msgstr "B<sin>"
643
644 #. type: Plain text
645 #: expr.3tcl:424
646 msgid ""
647 "Each of these functions calls a math library function of the same name. Tcl "
648 "also implements the following functions for converting between integers, "
649 "floating-point numbers, and drawing random numbers:"
650 msgstr ""
651 "Każda z tych funkcji woła funkcję biblioteki matematycznej o tej samej "
652 "nazwie. Tcl ponadto implemntuje następujące funkcje dla konwersji między "
653 "liczbami całkowitymi, zmiennoprzecinkowymi i losowania liczb losowych:"
654
655 #. type: TP
656 #: expr.3tcl:424
657 #, no-wrap
658 msgid "B<abs(>I<arg>B<)>"
659 msgstr "B<abs(>I<arg>B<)>"
660
661 #. type: Plain text
662 #: expr.3tcl:428
663 msgid ""
664 "Returns the modulus of I<arg>. I<Arg> can be an integer or a floating point "
665 "number; the result is returned in the same form."
666 msgstr ""
667 "Zwraca wartość modułu I<arg>. I<Arg> może być liczbą całkowitą, lub "
668 "zmiennoprzecinkową; wynik jest zwracany w tej samej postaci."
669
670 #. type: TP
671 #: expr.3tcl:428
672 #, no-wrap
673 msgid "B<double(>I<arg>B<)>"
674 msgstr "B<double(>I<arg>B<)>"
675
676 #. type: Plain text
677 #: expr.3tcl:433
678 msgid ""
679 "If I<arg> is a floating-point number, I<arg> is returned. Otherwise, I<arg> "
680 "is converted to floating-point form and returned."
681 msgstr ""
682 "Jeśli I<arg> jest liczbą zmiennoprzecinkową, zwracane jest I<arg>. W "
683 "przeciwnym wypadku I<arg> jest konwertowany na postać zmiennoprzecinkową i "
684 "zwracany w tej postaci."
685
686 #. type: TP
687 #: expr.3tcl:433
688 #, no-wrap
689 msgid "B<int(>I<arg>B<)>"
690 msgstr "B<int(>I<arg>B<)>"
691
692 #. type: Plain text
693 #: expr.3tcl:436
694 msgid "As above, but convert to an integer."
695 msgstr "Jak wyżej, ale zamiana na liczbę całkowitą."
696
697 #. type: TP
698 #: expr.3tcl:436
699 #, no-wrap
700 msgid "B<rand()>"
701 msgstr "B<rand()>"
702
703 #. type: Plain text
704 #: expr.3tcl:440
705 msgid ""
706 "Returns a floating point number between zero and 1. The seed comes from the "
707 "machine's internal clock, or may be set manually with the srand function."
708 msgstr ""
709 "Zwraca liczbę zmiennoprzecinkową w zakresie od zera do 1. Nasienie pochodzi z "
710 "wewnętrznego zegara maszyny, lub może być ustawiane ręcznie funkcją srand."
711
712 #. type: TP
713 #: expr.3tcl:440
714 #, no-wrap
715 msgid "B<round(>I<arg>B<)>"
716 msgstr "B<round(>I<arg>B<)>"
717
718 #. type: Plain text
719 #: expr.3tcl:445
720 msgid ""
721 "If I<arg> is integer, I<arg> is returned. Otherwise, I<arg> is converted to "
722 "integer form by rounding."
723 msgstr ""
724 "Jeśli I<arg> jest całkowite, zwracane jest I<arg>. W przeciwnym wypadku "
725 "I<arg> jest konwertowane na postać całkowitą poprzez zaokrąglanie."
726
727 #. type: TP
728 #: expr.3tcl:445
729 #, no-wrap
730 msgid "B<srand(>I<arg>B<)>"
731 msgstr "B<srand(>I<arg>B<)>"
732
733 #. type: Plain text
734 #: expr.3tcl:450
735 msgid ""
736 "The parameter I<arg>, which must be an integer, is used to reset the random "
737 "number generator seed. It returns the first random number for that seed. Each "
738 "interpreter has its own seed."
739 msgstr ""
740 "Parametr I<arg>, który musi być liczbą całkowitą, służy do resetowania "
741 "nasienia generatora liczb losowych. Zwraca pierwszą liczbę losową dla tego "
742 "nasienia. Każdy interpreter ma swoje własne nasienie."
743
744 #. type: Plain text
745 #: expr.3tcl:453
746 msgid ""
747 "In addition to these predefined functions, applications can define other "
748 "functions using B<Tcl_CreateMathFunc>()."
749 msgstr ""
750 "W dodatku do tych predefiniowanych funkcji, aplikacje mogą definiować inne "
751 "funkcje, korzystając z B<Tcl_CreateMathFunc>()."
752
753 #. type: SH
754 #: expr.3tcl:453
755 #, no-wrap
756 msgid "TYPES, OVERFLOW AND PRECISION"
757 msgstr "TYPY, PRZEPEŁNIENIE I PRECYZJA"
758
759 #. type: Plain text
760 #: expr.3tcl:463
761 msgid ""
762 "All internal integer calculations are done on the C I<long> type, and all "
763 "floating-point calculations are done on the I<double> type. When converting a "
764 "string to a floating-point number, an exponential overflow is detected, which "
765 "causes a Tcl error. For string to integer conversions, overflow detection "
766 "depends on the behavior of certain C library functions, so it is unlikely to "
767 "be reliable."
768 msgstr ""
769 "Wszystkie obliczenia wewnętrzne na liczbach całkowitych są dokonywane w typie "
770 "I<long> z C, a wszystkie obliczenia zmiennoprzecinkowe na typie I<double>. "
771 "Podczas konwersji łańcucha na liczbę zmiennoprzecinkową, wykrywane jest "
772 "przepełnienie eksponentne, co powoduje błąd Tcl. Dla konwersji łańcucha na "
773 "liczbę całkowitą, wykrywanie przepełnienia zależy od zachowania pewnych "
774 "funkcji biblioteki C, więc raczej nie można na tym polegać."
775
776 #. type: Plain text
777 #: expr.3tcl:470
778 msgid ""
779 "Conversion between integer, floating point, and string representations of "
780 "operands is performed automatically where needed. For arithmetic "
781 "computations, integer variables are used until a floating point number is "
782 "encountered, at which point floating point numbers are used instead. For "
783 "example,"
784 msgstr ""
785 "Konwersja między reprezentacjami całkowitymi, zmiennoprzecinkowymi i "
786 "łańcuchowymi operandów jest wykonywana automatycznie tam gdzie potrzeba. Dla "
787 "obliczeń arytmetycznych zmienne całkowite są używane tak długo, aż nie pojawi "
788 "się liczba zmiennoprzecinkowa i wtedy zaczyna się używanie liczb "
789 "zmiennoprzecinkowych. Na przykład,"
790
791 #. type: Plain text
792 #: expr.3tcl:472
793 msgid "B<expr 5 / 4>"
794 msgstr "B<expr 5 / 4>"
795
796 #. type: Plain text
797 #: expr.3tcl:474
798 msgid "returns 1, while"
799 msgstr "zwraca 1, podczas gdy"
800
801 #. type: Plain text
802 #: expr.3tcl:477
803 msgid "B<expr 5 / 4.0> B<expr 5 / ( [string length \"abcd\"] + 0.0 )>"
804 msgstr "B<expr 5 / 4.0> B<expr 5 / ( [string length \"abcd\"] + 0.0 )>"
805
806 #. type: Plain text
807 #: expr.3tcl:481
808 msgid ""
809 "returns 1.25. Floating point values ​​are always returned with ``B<.>'' or "
810 "B<e>, so they don't look like integers. For example,"
811 msgstr ""
812 "zwraca 1.25. Wartości zmiennoprzecinkowe są zawsze zwracane z ``B<.>'' lub "
813 "B<e>, więc nie wyglądają jak liczby całkowite. Na przykład,"
814
815 #. type: Plain text
816 #: expr.3tcl:483
817 msgid "B<expr 20.0/5.0>"
818 msgstr "B<expr 20.0/5.0>"
819
820 #. type: Plain text
821 #: expr.3tcl:485
822 msgid "returns B<4.0>, not B<4>."
823 msgstr "zwraca B<4.0>, nie B<4>."
824
825 #. type: SH
826 #: expr.3tcl:486
827 #, no-wrap
828 msgid "CHAIN ​​OPERATIONS"
829 msgstr "OPERACJE ŁAŃCUCHOWE"
830
831 #. type: Plain text
832 #: expr.3tcl:492
833 msgid ""
834 "If one of the comparison operands is a string and the other is a numeric "
835 "value, the numeric operand is converted using the B<%d> or B<%g> format of "
836 "the C function I<sprintf>(3) back to a string. For example, the commands"
837 msgstr ""
838 "Jeśli jeden z operandów porównania jest łańcuchem, a drugi ma wartość "
839 "numeryczną, to operand numeryczny jest konwertowany z użyciem formatu B<%d> "
840 "lub B<%g> funkcji I<sprintf>(3) języka C z powrotem na łańcuch. Na przykład "
841 "komendy"
842
843 #. type: Plain text
844 #: expr.3tcl:495
845 msgid "B<expr {\"0x03\" E<gt> \"2\"}> B<expr {\"0y\" E<lt> \"0x12\"}>"
846 msgstr "B<expr {\"0x03\" E<gt> \"2\"}> B<expr {\"0y\" E<lt> \"0x12\"}>"
847
848 #. type: Plain text
849 #: expr.3tcl:503
850 msgid ""
851 "return 1. The first comparison is done in an integer comparison, and the "
852 "second is done in a string comparison, after converting the second operand to "
853 "the string B<18>. Because Tcl tends to treat values ​​as numbers whenever "
854 "possible, using the B<==> and similar operators is not a good idea if you "
855 "really want a string comparison; it's better to use the B<string compare> "
856 "command."
857 msgstr ""
858 "zwracają 1. Pierwsze porównanie jest dokonywane w porównaniu całkowitym, a "
859 "drugie w porównaniu łańcuchowym, po przekonwertowaniu drugiego operandu na "
860 "łańcuch B<18>. Ponieważ Tcl ma tendencje do traktowania wartości tam gdzie "
861 "możliwe jako liczby, to używanie operatorów B<==> i podobnych nie jest dobrym "
862 "pomysłem, jeśli naprawdę chcesz porównania łańcuchowego; lepiej użyć komendy "
863 "B<string compare>."
864
865 #. type: SH
866 #: expr.3tcl:504
867 #, no-wrap
868 msgid "PERFORMANCE CONSIDERATIONS"
869 msgstr "ROZWAŻANIA O WYDAJNOŚCI"
870
871 #. type: Plain text
872 #: expr.3tcl:510
873 msgid ""
874 "If you want the most speed and the least memory usage, enclose your "
875 "expressions in curly braces. This allows the Tcl bitcode compiler to generate "
876 "the best possible code."
877 msgstr ""
878 "Jeśli chcesz jak największej szybkości i najmniejszego zajmowania pamięci, "
879 "ujmuj wyrażenia w klamry. Umożliwia to kompilatorowi kodu bitowego Tcl "
880 "wygenerowanie jak najlepszego kodu."
881
882 #. type: Plain text
883 #: expr.3tcl:514
884 msgid ""
885 "As mentioned above, two substitutions are made in expressions: once by the "
886 "Tcl parser, once by the B<expr> command. For example, the commands"
887 msgstr ""
888 "Jak wspomniano wyżej, w wyrażeniach dokonuje się dwóch podstawień: raz przez "
889 "przetwarzacz Tcl, raz przez komendę B<expr>. Na przykład, komendy"
890
891 #. type: Plain text
892 #: expr.3tcl:518
893 msgid "B<set a 3> B<set b {$a + 2}> B<expr $b*4>"
894 msgstr "B<set a 3> B<set b {$a + 2}> B<expr $b*4>"
895
896 #. type: Plain text
897 #: expr.3tcl:523
898 msgid ""
899 "return 11, not a multiple of 4. This is because the Tcl parser first "
900 "substitutes B<$a + 2> for the variable B<b>, and then the B<expr> command "
901 "processes the expression B<$a + 2*4>."
902 msgstr ""
903 "zwracają 11, a nie wielokrotność 4. Jest tak dlatego, że przetwarzacz Tcl "
904 "najpierw podstawia za B<$a + 2> zmienną B<b>, a następnie komenda B<expr> "
905 "przetwarza wyrażanie B<$a + 2*4>."
906
907 #. type: Plain text
908 #: expr.3tcl:532
909 msgid ""
910 "Most expressions do not require a second round of substitutions. They are "
911 "either enclosed in braces, or their variable and command substitution process "
912 "produces numbers and strings that do not require substitutions as such. "
913 "However, because unbraced expressions require two rounds of substitutions, "
914 "the bitcode compiler must emit additional instructions to handle this "
915 "situation. The most expensive code generated is for unbraced expressions that "
916 "contain command substitutions. These expressions must be implemented by "
917 "generating new code each time the expression is executed."
918 msgstr ""
919 "Większość wyrażeń nie wymaga drugiej kolejki podstawień. Są one albo ujmowane "
920 "w klamry, albo ich proces podstawiania zmiennych i komend daje liczby i "
921 "łańcuchy, nie wymagające podstawień jako takich. Jednak z uwagi na to, że "
922 "nieuklamrowione wyrażenia wymagają dwóch rund podstawień, kompilator kodu "
923 "bitowego musi emitować dodatkowe instrukcje obsługi takiej sytuacji. "
924 "Najkosztowniejszy kod generowany jest dla nieuklamrowionych wyrażeń, które "
925 "zawierają podstawienia komend. Wyrażenia te muszą być implementowane przez "
926 "generowanie nowego kodu za każdym wykonaniem wyrażenia."
927
928 #. type: SH
929 #: expr.3tcl:534
930 #, no-wrap
931 msgid "KEYWORDS"
932 msgstr "SŁOWA KLUCZOWE"
933
934 #. type: Plain text
935 #: expr.3tcl:535
936 msgid "arithmetic, logical, comparison, expression, fuzzy comparison"
937 msgstr "arytmetyka, logiczny, porównanie, wyrażenie, porównanie rozmyte"