77msgstr ""
88"Project-Id-Version : Python 3.13\n "
99"Report-Msgid-Bugs-To : \n "
10- "POT-Creation-Date : 2024-09-03 11:11+0800 \n "
10+ "POT-Creation-Date : 2024-11-05 00:13+0000 \n "
1111"PO-Revision-Date : 2024-03-14 09:26+0800\n "
1212"
Last-Translator :
Enkai Huang <[email protected] >\n "
1313"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -309,42 +309,39 @@ msgid ""
309309msgstr "如果 *a* 和 *b* 的值相互接近,則回傳 ``True``,否則回傳 ``False``。"
310310
311311#: ../../library/cmath.rst:223
312+ #, fuzzy
312313msgid ""
313314"Whether or not two values are considered close is determined according to "
314- "given absolute and relative tolerances."
315+ "given absolute and relative tolerances. If no errors occur, the result will "
316+ "be: ``abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol)``."
315317msgstr ""
316318"兩個值是否被認為相互接近是由給定的絕對和相對容許偏差 (tolerance) 所決定的。"
317319
318- #: ../../library/cmath.rst:226
320+ #: ../../library/cmath.rst:227
321+ #, fuzzy
319322msgid ""
320323"*rel_tol* is the relative tolerance -- it is the maximum allowed difference "
321324"between *a* and *b*, relative to the larger absolute value of *a* or *b*. "
322325"For example, to set a tolerance of 5%, pass ``rel_tol=0.05``. The default "
323326"tolerance is ``1e-09``, which assures that the two values are the same "
324- "within about 9 decimal digits. *rel_tol* must be greater than zero."
327+ "within about 9 decimal digits. *rel_tol* must be nonnegative and less than "
328+ "``1.0``."
325329msgstr ""
326330"*rel_tol* 是相對容許偏差 -- 它是 *a* 和 *b* 之間的最大容許偏差值,相對於 *a* "
327331"或 *b* 的較大絕對值。例如,要設定 5% 的容許偏差,請傳遞 ``rel_tol=0.05``。預"
328332"設容許偏差是 ``1e-09``,它確保兩個值在大約 9 位十進制數字內相同。 *rel_tol* "
329333"必須大於零。"
330334
331- #: ../../library/cmath.rst:232
335+ #: ../../library/cmath.rst:234
332336msgid ""
333- "*abs_tol* is the minimum absolute tolerance -- useful for comparisons near "
334- "zero. *abs_tol* must be at least zero."
337+ "*abs_tol* is the absolute tolerance; it defaults to ``0.0`` and it must be "
338+ "nonnegative. When comparing ``x`` to ``0.0``, ``isclose(x, 0)`` is computed "
339+ "as ``abs(x) <= rel_tol * abs(x)``, which is ``False`` for any ``x`` and "
340+ "rel_tol less than ``1.0``. So add an appropriate positive abs_tol argument "
341+ "to the call."
335342msgstr ""
336- "*abs_tol* 是最小絕對容許偏差 -- 對於接近零的比較很有用。 *abs_tol* 必須至少為"
337- "零。"
338343
339- #: ../../library/cmath.rst:235
340- msgid ""
341- "If no errors occur, the result will be: ``abs(a-b) <= max(rel_tol * "
342- "max(abs(a), abs(b)), abs_tol)``."
343- msgstr ""
344- "如果未發生錯誤,結果將為: ``abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), "
345- "abs_tol)``。"
346-
347- #: ../../library/cmath.rst:238
344+ #: ../../library/cmath.rst:240
348345msgid ""
349346"The IEEE 754 special values of ``NaN``, ``inf``, and ``-inf`` will be "
350347"handled according to IEEE rules. Specifically, ``NaN`` is not considered "
@@ -355,49 +352,49 @@ msgstr ""
355352"體來說, ``NaN`` 不被認為接近任何其他值,包括 ``NaN``。 ``inf`` 和 ``-inf`` "
356353"只被認為是接近它們自己的。"
357354
358- #: ../../library/cmath.rst:247
355+ #: ../../library/cmath.rst:249
359356msgid ":pep:`485` -- A function for testing approximate equality"
360357msgstr ":pep:`485` -- 一個用來測試近似相等的函式"
361358
362- #: ../../library/cmath.rst:251
359+ #: ../../library/cmath.rst:253
363360msgid "Constants"
364361msgstr "常數"
365362
366- #: ../../library/cmath.rst:255
363+ #: ../../library/cmath.rst:257
367364msgid "The mathematical constant *π*, as a float."
368365msgstr "數學常數 *π*,作為一個浮點數。"
369366
370- #: ../../library/cmath.rst:260
367+ #: ../../library/cmath.rst:262
371368msgid "The mathematical constant *e*, as a float."
372369msgstr "數學常數 *e*,作為一個浮點數。"
373370
374- #: ../../library/cmath.rst:265
371+ #: ../../library/cmath.rst:267
375372msgid "The mathematical constant *τ*, as a float."
376373msgstr "數學常數 *τ*,作為一個浮點數。"
377374
378- #: ../../library/cmath.rst:272
375+ #: ../../library/cmath.rst:274
379376msgid "Floating-point positive infinity. Equivalent to ``float('inf')``."
380377msgstr "正無窮大的浮點數。相當於 ``float('inf')``。"
381378
382- #: ../../library/cmath.rst:279
379+ #: ../../library/cmath.rst:281
383380msgid ""
384381"Complex number with zero real part and positive infinity imaginary part. "
385382"Equivalent to ``complex(0.0, float('inf'))``."
386383msgstr "實部為零和虛部為正無窮的複數。相當於 ``complex(0.0, float('inf'))``。"
387384
388- #: ../../library/cmath.rst:287
385+ #: ../../library/cmath.rst:289
389386msgid ""
390387"A floating-point \" not a number\" (NaN) value. Equivalent to "
391388"``float('nan')``."
392389msgstr "浮點「非數字」 (NaN) 值。相當於 ``float('nan')``。"
393390
394- #: ../../library/cmath.rst:295
391+ #: ../../library/cmath.rst:297
395392msgid ""
396393"Complex number with zero real part and NaN imaginary part. Equivalent to "
397394"``complex(0.0, float('nan'))``."
398395msgstr "實部為零和虛部為 NaN 的複數。相當於 ``complex(0.0, float('nan'))``。"
399396
400- #: ../../library/cmath.rst:303
397+ #: ../../library/cmath.rst:305
401398msgid ""
402399"Note that the selection of functions is similar, but not identical, to that "
403400"in module :mod:`math`. The reason for having two modules is that some users "
@@ -413,7 +410,7 @@ msgstr ""
413410"sqrt(-1)`` 引發異常,也不願它回傳複數。另請注意, :mod:`cmath` 中所定義的函式"
414411"始終都會回傳複數,即使答案可以表示為實數(在這種情況下,複數的虛部為零)。"
415412
416- #: ../../library/cmath.rst:311
413+ #: ../../library/cmath.rst:313
417414msgid ""
418415"A note on branch cuts: They are curves along which the given function fails "
419416"to be continuous. They are a necessary feature of many complex functions. "
@@ -428,17 +425,31 @@ msgstr ""
428425"所有關於複變函數的(不是太初級的)書籍以獲得啟發。對於如何正確地基於數值目的"
429426"選擇分枝切割的相關訊息,以下內容應該是一個很好的參考:"
430427
431- #: ../../library/cmath.rst:321
428+ #: ../../library/cmath.rst:323
432429msgid ""
433430"Kahan, W: Branch cuts for complex elementary functions; or, Much ado about "
434431"nothing's sign bit. In Iserles, A., and Powell, M. (eds.), The state of the "
435432"art in numerical analysis. Clarendon Press (1987) pp165--211."
436433msgstr ""
437434
438- #: ../../library/cmath.rst:301
435+ #: ../../library/cmath.rst:303
439436msgid "module"
440437msgstr "module(模組)"
441438
442- #: ../../library/cmath.rst:301
439+ #: ../../library/cmath.rst:303
443440msgid "math"
444441msgstr "math(數學)"
442+
443+ #~ msgid ""
444+ #~ "*abs_tol* is the minimum absolute tolerance -- useful for comparisons "
445+ #~ "near zero. *abs_tol* must be at least zero."
446+ #~ msgstr ""
447+ #~ "*abs_tol* 是最小絕對容許偏差 -- 對於接近零的比較很有用。 *abs_tol* 必須至"
448+ #~ "少為零。"
449+
450+ #~ msgid ""
451+ #~ "If no errors occur, the result will be: ``abs(a-b) <= max(rel_tol * "
452+ #~ "max(abs(a), abs(b)), abs_tol)``."
453+ #~ msgstr ""
454+ #~ "如果未發生錯誤,結果將為: ``abs(a-b) <= max(rel_tol * max(abs(a), "
455+ #~ "abs(b)), abs_tol)``。"
0 commit comments