@@ -58,6 +58,15 @@ msgid ""
58
58
"axis we look at the sign of the imaginary part, while for a branch cut along "
59
59
"the imaginary axis we look at the sign of the real part."
60
60
msgstr ""
61
+ "Para funções que envolvem cortes de ramificação, temos o problema de decidir "
62
+ "como definir essas funções no próprio corte. Seguindo o artigo de Kahan "
63
+ "intitulado \" Branch cuts for complex elementary functions\" (em tradução "
64
+ "livre, \" Cortes de ramificação para funções elementares complexas\" ), bem "
65
+ "como o Anexo G do C99 e padrões C posteriores, usamos o sinal de zero para "
66
+ "distinguir um lado do outro no corte de ramificação: para um corte de "
67
+ "ramificação ao longo (uma porção) do eixo real olhamos para o sinal da parte "
68
+ "imaginária, enquanto para um corte de ramificação ao longo do eixo "
69
+ "imaginário olhamos para o sinal da parte real."
61
70
62
71
#: ../../library/cmath.rst:26
63
72
msgid ""
@@ -66,23 +75,32 @@ msgid ""
66
75
"though it lies *below* the branch cut, and so gives a result on the negative "
67
76
"imaginary axis::"
68
77
msgstr ""
78
+ "Por exemplo, a função :func:`cmath.sqrt` tem um corte de ramificação ao "
79
+ "longo do eixo real negativo. Um argumento de ``complex(-2.0, -0.0)`` é "
80
+ "tratado como se estivesse *abaixo* do corte de ramificação, e assim dá um "
81
+ "resultado no eixo imaginário negativo::"
69
82
70
83
#: ../../library/cmath.rst:34
71
84
msgid ""
72
85
"But an argument of ``complex(-2.0, 0.0)`` is treated as though it lies above "
73
86
"the branch cut::"
74
87
msgstr ""
88
+ "Mas um argumento de ``complex(-2.0, 0.0)`` é tratado como se estivesse acima "
89
+ "do corte de ramificação::"
75
90
76
91
#: ../../library/cmath.rst:42
77
92
msgid "Conversions to and from polar coordinates"
78
- msgstr ""
93
+ msgstr "Conversões de e para coordenadas polares "
79
94
80
95
#: ../../library/cmath.rst:44
81
96
msgid ""
82
97
"A Python complex number ``z`` is stored internally using *rectangular* or "
83
98
"*Cartesian* coordinates. It is completely determined by its *real part* ``z."
84
99
"real`` and its *imaginary part* ``z.imag``."
85
100
msgstr ""
101
+ "Um número complexo Python ``z`` é armazenado internamente usando coordenadas "
102
+ "*retangulares* ou *cartesianas*. É completamente determinado por sua *parte "
103
+ "real* ``z.real`` e sua *parte imaginária* ``z.imag``."
86
104
87
105
#: ../../library/cmath.rst:48
88
106
msgid ""
@@ -93,12 +111,19 @@ msgid ""
93
111
"radians, from the positive x-axis to the line segment that joins the origin "
94
112
"to *z*."
95
113
msgstr ""
114
+ "*Coordenadas polares* fornecem uma forma alternativa de representar um "
115
+ "número complexo. Em coordenadas polares, um número complexo *z* é definido "
116
+ "pelo módulo *r* e pelo ângulo de fase *phi*. O módulo *r* é a distância de "
117
+ "*z* à origem, enquanto a fase *phi* é o ângulo anti-horário, medido em "
118
+ "radianos, do eixo x positivo ao segmento de reta que une a origem a *z*."
96
119
97
120
#: ../../library/cmath.rst:55
98
121
msgid ""
99
122
"The following functions can be used to convert from the native rectangular "
100
123
"coordinates to polar coordinates and back."
101
124
msgstr ""
125
+ "As funções a seguir podem ser usadas para converter coordenadas retangulares "
126
+ "nativas em coordenadas polares e vice-versa."
102
127
103
128
#: ../../library/cmath.rst:60
104
129
msgid ""
@@ -108,26 +133,39 @@ msgid ""
108
133
"along the negative real axis. The sign of the result is the same as the "
109
134
"sign of ``x.imag``, even when ``x.imag`` is zero::"
110
135
msgstr ""
136
+ "Retorna a fase de *x* (também conhecido como *argumento* de *x*), como um "
137
+ "ponto flutuante. ``phase(x)`` é equivalente a ``math.atan2(x.imag, x."
138
+ "real)``. O resultado está no intervalo [-\\ *π*, *π*], e o corte de "
139
+ "ramificação para esta operação está ao longo do eixo real negativo. O sinal "
140
+ "do resultado é igual ao sinal de ``x.imag``, mesmo quando ``x.imag`` é zero::"
111
141
112
142
#: ../../library/cmath.rst:74
113
143
msgid ""
114
144
"The modulus (absolute value) of a complex number *x* can be computed using "
115
145
"the built-in :func:`abs` function. There is no separate :mod:`cmath` module "
116
146
"function for this operation."
117
147
msgstr ""
148
+ "O módulo (valor absoluto) de um número complexo *x* pode ser calculado "
149
+ "usando a função embutida :func:`abs`. Não há função do módulo :mod:`cmath` "
150
+ "separada para esta operação."
118
151
119
152
#: ../../library/cmath.rst:81
120
153
msgid ""
121
154
"Return the representation of *x* in polar coordinates. Returns a pair ``(r, "
122
155
"phi)`` where *r* is the modulus of *x* and phi is the phase of *x*. "
123
156
"``polar(x)`` is equivalent to ``(abs(x), phase(x))``."
124
157
msgstr ""
158
+ "Retorna a representação de *x* em coordenadas polares. Retorna um par ``(r, "
159
+ "phi)`` onde *r* é o módulo de *x* e phi é a fase de *x*. ``polar(x)`` é "
160
+ "equivalente a ``(abs(x), phase(x))``."
125
161
126
162
#: ../../library/cmath.rst:89
127
163
msgid ""
128
164
"Return the complex number *x* with polar coordinates *r* and *phi*. "
129
165
"Equivalent to ``complex(r * math.cos(phi), r * math.sin(phi))``."
130
166
msgstr ""
167
+ "Retorna o número complexo *x* com coordenadas polares *r* e *phi*. "
168
+ "Equivalente a ``complex(r * math.cos(phi), r * math.sin(phi))``."
131
169
132
170
#: ../../library/cmath.rst:94
133
171
msgid "Power and logarithmic functions"
@@ -138,24 +176,32 @@ msgid ""
138
176
"Return *e* raised to the power *x*, where *e* is the base of natural "
139
177
"logarithms."
140
178
msgstr ""
179
+ "Retorna *e* elevado à potência *x*, onde *e* é a base de logaritmos naturais."
141
180
142
181
#: ../../library/cmath.rst:104
143
182
msgid ""
144
183
"Returns the logarithm of *x* to the given *base*. If the *base* is not "
145
184
"specified, returns the natural logarithm of *x*. There is one branch cut, "
146
185
"from 0 along the negative real axis to -∞."
147
186
msgstr ""
187
+ "Retorna o logaritmo de *x* para a *base* fornecida. Se a *base* não for "
188
+ "especificada, retorna o logaritmo natural de *x*. Há um corte de "
189
+ "ramificação, de 0 ao longo do eixo real negativo até -∞."
148
190
149
191
#: ../../library/cmath.rst:111
150
192
msgid ""
151
193
"Return the base-10 logarithm of *x*. This has the same branch cut as :func:"
152
194
"`log`."
153
195
msgstr ""
196
+ "Retorna o logaritmo de base 10 de *x*. Este tem o mesmo corte de ramificação "
197
+ "que :func:`log`."
154
198
155
199
#: ../../library/cmath.rst:117
156
200
msgid ""
157
201
"Return the square root of *x*. This has the same branch cut as :func:`log`."
158
202
msgstr ""
203
+ "Retorna a raiz quadrada de *x*. Este tem o mesmo corte de ramificação que :"
204
+ "func:`log`."
159
205
160
206
#: ../../library/cmath.rst:121
161
207
msgid "Trigonometric functions"
@@ -167,30 +213,38 @@ msgid ""
167
213
"from 1 along the real axis to ∞. The other extends left from -1 along the "
168
214
"real axis to -∞."
169
215
msgstr ""
216
+ "Retorna o arco cosseno de *x*. Existem dois cortes de ramificação: um se "
217
+ "estende desde 1 ao longo do eixo real até ∞. O outro se estende para a "
218
+ "esquerda de -1 ao longo do eixo real até -∞."
170
219
171
220
#: ../../library/cmath.rst:132
172
221
msgid ""
173
222
"Return the arc sine of *x*. This has the same branch cuts as :func:`acos`."
174
223
msgstr ""
224
+ "Retorna o arco seno de *x*. Tem os mesmos cortes de ramificação que :func:"
225
+ "`acos`."
175
226
176
227
#: ../../library/cmath.rst:137
177
228
msgid ""
178
229
"Return the arc tangent of *x*. There are two branch cuts: One extends from "
179
230
"``1j`` along the imaginary axis to ``∞j``. The other extends from ``-1j`` "
180
231
"along the imaginary axis to ``-∞j``."
181
232
msgstr ""
233
+ "Retorna o arco tangente de *x*. Existem dois cortes de ramificação: Um se "
234
+ "estende de ``1j`` ao longo do eixo imaginário até ``∞j``. O outro se estende "
235
+ "de ``-1j`` ao longo do eixo imaginário até ``-∞j``."
182
236
183
237
#: ../../library/cmath.rst:144
184
238
msgid "Return the cosine of *x*."
185
- msgstr ""
239
+ msgstr "Retorna o cosseno de *x*. "
186
240
187
241
#: ../../library/cmath.rst:149
188
242
msgid "Return the sine of *x*."
189
- msgstr "Devolve o seno de *x*."
243
+ msgstr "Retorna o seno de *x*."
190
244
191
245
#: ../../library/cmath.rst:154
192
246
msgid "Return the tangent of *x*."
193
- msgstr ""
247
+ msgstr "Retorna a tangente de *x*. "
194
248
195
249
#: ../../library/cmath.rst:158
196
250
msgid "Hyperbolic functions"
@@ -201,20 +255,28 @@ msgid ""
201
255
"Return the inverse hyperbolic cosine of *x*. There is one branch cut, "
202
256
"extending left from 1 along the real axis to -∞."
203
257
msgstr ""
258
+ "Retorna o cosseno hiperbólico inverso de *x*. Há um corte de ramificação, "
259
+ "estendendo-se para a esquerda de 1 ao longo do eixo real até -∞."
204
260
205
261
#: ../../library/cmath.rst:168
206
262
msgid ""
207
263
"Return the inverse hyperbolic sine of *x*. There are two branch cuts: One "
208
264
"extends from ``1j`` along the imaginary axis to ``∞j``. The other extends "
209
265
"from ``-1j`` along the imaginary axis to ``-∞j``."
210
266
msgstr ""
267
+ "Retorna o seno hiperbólico inverso de *x*. Existem dois cortes de "
268
+ "ramificação: Um se estende de ``1j`` ao longo do eixo imaginário até ``∞j``. "
269
+ "O outro se estende de ``-1j`` ao longo do eixo imaginário até ``-∞j``."
211
270
212
271
#: ../../library/cmath.rst:175
213
272
msgid ""
214
273
"Return the inverse hyperbolic tangent of *x*. There are two branch cuts: One "
215
274
"extends from ``1`` along the real axis to ``∞``. The other extends from "
216
275
"``-1`` along the real axis to ``-∞``."
217
276
msgstr ""
277
+ "Retorna a tangente hiperbólica inversa de *x*. Existem dois cortes de "
278
+ "ramificação: Um se estende de ``1`` ao longo do eixo real até ``∞``. O outro "
279
+ "se estende de ``-1`` ao longo do eixo real até ``-∞``."
218
280
219
281
#: ../../library/cmath.rst:182
220
282
msgid "Return the hyperbolic cosine of *x*."
@@ -230,25 +292,31 @@ msgstr "Retorna a tangente hiperbólica de *x*."
230
292
231
293
#: ../../library/cmath.rst:196
232
294
msgid "Classification functions"
233
- msgstr ""
295
+ msgstr "Funções de classificação "
234
296
235
297
#: ../../library/cmath.rst:200
236
298
msgid ""
237
299
"Return ``True`` if both the real and imaginary parts of *x* are finite, and "
238
300
"``False`` otherwise."
239
301
msgstr ""
302
+ "Retorna ``True`` se ambas as partes real e imaginária de *x* forem finitas, "
303
+ "e ``False`` caso contrário."
240
304
241
305
#: ../../library/cmath.rst:208
242
306
msgid ""
243
307
"Return ``True`` if either the real or the imaginary part of *x* is an "
244
308
"infinity, and ``False`` otherwise."
245
309
msgstr ""
310
+ "Retorna ``True`` se ou a parte real ou a imaginária de *x* for infinito, e "
311
+ "``False`` caso contrário."
246
312
247
313
#: ../../library/cmath.rst:214
248
314
msgid ""
249
315
"Return ``True`` if either the real or the imaginary part of *x* is a NaN, "
250
316
"and ``False`` otherwise."
251
317
msgstr ""
318
+ "Retorna ``True`` se ou a parte real ou a imaginária de *x* for NaN, e "
319
+ "``False`` caso contrário."
252
320
253
321
#: ../../library/cmath.rst:220
254
322
msgid ""
@@ -275,7 +343,7 @@ msgid ""
275
343
"within about 9 decimal digits. *rel_tol* must be greater than zero."
276
344
msgstr ""
277
345
"*rel_tol* é a tolerância relativa -- é a diferença máxima permitida entre "
278
- "*a* e *b*, em relação ao maior valor absoluto de *a* e *b*. Por exemplo, "
346
+ "*a* e *b*, em relação ao maior valor absoluto de *a* ou *b*. Por exemplo, "
279
347
"para definir uma tolerância de 5%, passe ``rel_tol=0.05``. A tolerância "
280
348
"padrão é ``1e-09``, o que garante que os dois valores sejam iguais em cerca "
281
349
"de 9 dígitos decimais. *rel_tol* deve ser maior que zero."
@@ -318,37 +386,43 @@ msgstr "Constantes"
318
386
319
387
#: ../../library/cmath.rst:255
320
388
msgid "The mathematical constant *π*, as a float."
321
- msgstr ""
389
+ msgstr "A constante matemática *π*, como um ponto flutuante. "
322
390
323
391
#: ../../library/cmath.rst:260
324
392
msgid "The mathematical constant *e*, as a float."
325
- msgstr ""
393
+ msgstr "A constante matemática *e*, como um ponto flutuante. "
326
394
327
395
#: ../../library/cmath.rst:265
328
396
msgid "The mathematical constant *τ*, as a float."
329
- msgstr ""
397
+ msgstr "A constante matemática *τ*, como um ponto flutuante. "
330
398
331
399
#: ../../library/cmath.rst:272
332
400
msgid "Floating-point positive infinity. Equivalent to ``float('inf')``."
333
- msgstr ""
401
+ msgstr "Infinito positivo de ponto flutuante. Equivalente a ``float('inf')``. "
334
402
335
403
#: ../../library/cmath.rst:279
336
404
msgid ""
337
405
"Complex number with zero real part and positive infinity imaginary part. "
338
406
"Equivalent to ``complex(0.0, float('inf'))``."
339
407
msgstr ""
408
+ "Número complexo com parte real zero e parte imaginária infinita positiva. "
409
+ "Equivalente a ``complex(0.0, float('inf'))``."
340
410
341
411
#: ../../library/cmath.rst:287
342
412
msgid ""
343
413
"A floating-point \" not a number\" (NaN) value. Equivalent to "
344
414
"``float('nan')``."
345
415
msgstr ""
416
+ "Um valor de ponto flutuante \" não um número\" (NaN). Equivalente a "
417
+ "``float('nan')``."
346
418
347
419
#: ../../library/cmath.rst:295
348
420
msgid ""
349
421
"Complex number with zero real part and NaN imaginary part. Equivalent to "
350
422
"``complex(0.0, float('nan'))``."
351
423
msgstr ""
424
+ "Número complexo com parte real zero e parte imaginária NaN. Equivalente a "
425
+ "``complex(0.0, float('nan'))``."
352
426
353
427
#: ../../library/cmath.rst:303
354
428
msgid ""
@@ -361,6 +435,13 @@ msgid ""
361
435
"as a real number (in which case the complex number has an imaginary part of "
362
436
"zero)."
363
437
msgstr ""
438
+ "Observe que a seleção de funções é semelhante, mas não idêntica, àquela no "
439
+ "módulo :mod:`math`. A razão para ter dois módulos é que alguns usuários não "
440
+ "estão interessados em números complexos e talvez nem saibam o que são. Eles "
441
+ "preferem que ``math.sqrt(-1)`` gere uma exceção do que retorne um número "
442
+ "complexo. Observe também que as funções definidas em :mod:`cmath` sempre "
443
+ "retornam um número complexo, mesmo que a resposta possa ser expressa como um "
444
+ "número real (nesse caso o número complexo tem uma parte imaginária de zero)."
364
445
365
446
#: ../../library/cmath.rst:311
366
447
msgid ""
@@ -372,13 +453,23 @@ msgid ""
372
453
"choice of branch cuts for numerical purposes, a good reference should be the "
373
454
"following:"
374
455
msgstr ""
456
+ "Uma nota sobre cortes de ramificação: são curvas ao longo das quais a função "
457
+ "dada não é contínua. Eles são um recurso necessário de muitas funções "
458
+ "complexas. Presume-se que se você precisar calcular com funções complexas, "
459
+ "você entenderá sobre cortes de ramificação. Consulte quase qualquer livro "
460
+ "(não muito elementar) sobre variáveis complexas para obter esclarecimento. "
461
+ "Para informações sobre a escolha adequada dos cortes de ramificação para "
462
+ "fins numéricos, uma boa referência deve ser a seguinte:"
375
463
376
464
#: ../../library/cmath.rst:321
377
465
msgid ""
378
466
"Kahan, W: Branch cuts for complex elementary functions; or, Much ado about "
379
467
"nothing's sign bit. In Iserles, A., and Powell, M. (eds.), The state of the "
380
468
"art in numerical analysis. Clarendon Press (1987) pp165--211."
381
469
msgstr ""
470
+ "Kahan, W: Branch cuts for complex elementary functions; or, Much ado about "
471
+ "nothing's sign bit. Em Iserles, A. e Powell, M. (eds.), The state of the "
472
+ "art in numerical analysis. Clarendon Press (1987) pp165--211."
382
473
383
474
#: ../../library/cmath.rst:301
384
475
msgid "module"
0 commit comments