Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd423925

Browse files
Carisa-Liken71301mattwang44
authored
Translate library/math.po rst: 87-102, 239-374 (#992)
Co-authored-by: Payon <ken71301@hotmail.com>Co-authored-by: Matt.Wang <mattwang44@gmail.com>
1 parente1712e3 commitd423925

File tree

1 file changed

+61
-20
lines changed

1 file changed

+61
-20
lines changed

‎library/math.po‎

Lines changed: 61 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgstr ""
77
"Project-Id-Version:Python 3.14\n"
88
"Report-Msgid-Bugs-To:\n"
99
"POT-Creation-Date:2025-09-08 15:25+0800\n"
10-
"PO-Revision-Date:2024-04-26 15:15+0800\n"
10+
"PO-Revision-Date:2024-10-06 23:31+0800\n"
1111
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1212
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1313
"tw)\n"
@@ -16,7 +16,7 @@ msgstr ""
1616
"Content-Type:text/plain; charset=UTF-8\n"
1717
"Content-Transfer-Encoding:8bit\n"
1818
"Plural-Forms:nplurals=1; plural=0;\n"
19-
"X-Generator:Poedit 3.4.2\n"
19+
"X-Generator:Poedit 3.5\n"
2020

2121
#:../../library/math.rst:2
2222
msgid":mod:`!math` --- Mathematical functions"
@@ -634,7 +634,7 @@ msgstr ""
634634

635635
#:../../library/math.rst:149
636636
msgid"Floats with integral values (like ``5.0``) are no longer accepted."
637-
msgstr"其值為整數的浮點數(如:``5.0``)已不再被接受。"
637+
msgstr"現在已經不允許傳入其值為整數的浮點數(如:``5.0``)。"
638638

639639
#:../../library/math.rst:155
640640
msgid""
@@ -690,23 +690,25 @@ msgstr ""
690690
msgid""
691691
"Return the number of ways to choose *k* items from *n* items without "
692692
"repetition and with order."
693-
msgstr""
693+
msgstr"回傳從 *n* 個物品中不重複且考慮排序地取出 *k* 個物品的方法數。"
694694

695695
#:../../library/math.rst:198
696696
msgid""
697697
"Evaluates to ``n! / (n - k)!`` when ``k <= n`` and evaluates to zero when "
698698
"``k > n``."
699-
msgstr""
699+
msgstr"當 ``k <= n`` 時其值為 ``n! / (n - k)!``,否則其值為 ``0``。"
700700

701701
#:../../library/math.rst:201
702702
msgid""
703703
"If *k* is not specified or is ``None``, then *k* defaults to *n* and the "
704704
"function returns ``n!``."
705705
msgstr""
706+
"若未給定 *k* 或其值為 ``None``,則 *k* 值預設為 *n*,且函式回傳 ``n!``。"
706707

707708
#:../../library/math.rst:211
708709
msgid"Floating point arithmetic"
709710
msgstr""
711+
"計算傳入的 *iterable* 中所有元素的乘積。預設的乘積起始值 *start* 為 ``1``。"
710712

711713
#:../../library/math.rst:215
712714
msgid""
@@ -739,6 +741,8 @@ msgid ""
739741
"``float`` format. This operation often provides better accuracy than the "
740742
"direct expression ``(x * y) + z``."
741743
msgstr""
744+
"融合乘加運算。回傳 ``(x * y) + z``,用近似於無限精度及範圍的方式計算,而後一"
745+
"次轉換為 ``float`` 格式。此操作通常能提供比運算式 ``(x * y) + z`` 更高的準確度。"
742746

743747
#:../../library/math.rst:239
744748
msgid""
@@ -748,6 +752,9 @@ msgid ""
748752
"``fma(inf, 0, nan)``. In these cases, ``math.fma`` returns a NaN, and does "
749753
"not raise any exception."
750754
msgstr""
755+
"此函式遵循 IEEE-754 標準中規範的融合乘加(fusedMultiplyAdd)運算。該標準保留"
756+
"一種由實作決定的案例,即 ``fma(0, inf, nan)`` 和 ``fma(inf, 0, nan)`` 的結"
757+
"果;在這些案例中,``math.fma`` 回傳 NaN 且不會引發例外。"
751758

752759
#:../../library/math.rst:250
753760
msgid""
@@ -778,7 +785,7 @@ msgstr ""
778785
msgid""
779786
"Return the fractional and integer parts of *x*. Both results carry the sign "
780787
"of *x* and are floats."
781-
msgstr""
788+
msgstr"回傳 *x* 的小數及整數部分,兩者皆為與 *x* 同號的浮點數。"
782789

783790
#:../../library/math.rst:269
784791
msgid""
@@ -787,6 +794,9 @@ msgid ""
787794
"than returning its second return value through an 'output parameter' (there "
788795
"is no such thing in Python)."
789796
msgstr""
797+
"請注意 :func:`modf` 的呼叫/回傳模式與 C 語言中相應的函式不同:"
798+
"它們接受一個引數並回傳一對值,而非透過一個「輸出參數(output parameter)」傳"
799+
"遞第二個回傳值(Python 沒有那種東西)。"
790800

791801
#:../../library/math.rst:277
792802
msgid""
@@ -797,6 +807,10 @@ msgid ""
797807
"*even* integer is used for ``n``. The remainder ``r = remainder(x, y)`` "
798808
"thus always satisfies ``abs(r) <= 0.5 * abs(y)``."
799809
msgstr""
810+
"回傳 *x* 對 *y* 根據 IEEE 754 定義的餘數。對有限數 *x* 及有限非零數 *y*,該"
811+
"值為 ``x - n*y`` 差值,``n`` 是最接近商數 ``x / y`` 的整數。若 ``x / y`` 剛好"
812+
"位於兩個連續整數的正中間,``n`` 為最接近的\\ *偶*\\ 數。因此該餘數 ``r = "
813+
"remainder(x, y)`` 總是滿足 ``abs(r) <= 0.5 * abs(y)``。"
800814

801815
#:../../library/math.rst:284
802816
msgid""
@@ -805,12 +819,18 @@ msgid ""
805819
"x)`` raise :exc:`ValueError` for any non-NaN *x*. If the result of the "
806820
"remainder operation is zero, that zero will have the same sign as *x*."
807821
msgstr""
822+
"特殊情況遵循 IEEE 754:特別是,對任何有限數 *x*,``remainder(x, math.inf)`` "
823+
"的值為 *x*;對任何非 NaN 值的 *x*,``remainder(x, 0)`` 及 "
824+
"``remainder(math.inf, x)`` 會引發 :exc:`ValueError`。若取餘數操作的結果為零,"
825+
"則該零值會與 *x* 同號。"
808826

809827
#:../../library/math.rst:290
810828
msgid""
811829
"On platforms using IEEE 754 binary floating point, the result of this "
812830
"operation is always exactly representable: no rounding error is introduced."
813831
msgstr""
832+
"在使用 IEEE 754 浮點標準中二進制浮點數的平台上,此操作的結果必能精準表示,不"
833+
"會出現捨入誤差。"
814834

815835
#:../../library/math.rst:298
816836
msgid""
@@ -820,6 +840,10 @@ msgid ""
820840
"delegates to :meth:`x.__trunc__ <object.__trunc__>`, which should return "
821841
"an :class:`~numbers.Integral` value."
822842
msgstr""
843+
"回傳去除小數部分而僅餘整數部分的 *x*。此函式會向零捨入:若 *x* 為正值,"
844+
"``trunc()`` 等價於 :func:`floor`;若 *x* 為負值,``trunc()`` 等價"
845+
"於 :func:`ceil`。若 *x* 非浮點數,此函式將委派給 :meth:`x.__trunc__ "
846+
"<object.__trunc__>`,而後回傳一 :class:`~numbers.Integral` 值。"
823847

824848
#:../../library/math.rst:305
825849
msgid""
@@ -829,6 +853,10 @@ msgid ""
829853
"(the same as the platform C double type), in which case any float *x* with "
830854
"``abs(x) >= 2**52`` necessarily has no fractional bits."
831855
msgstr""
856+
"使用 :func:`ceil`、:func:`floor` 及 :func:`modf` 三個函式時,請注意 *所有* 足"
857+
"夠大的浮點數都是精確的整數。Python 的浮點數型別的精確度通常不會超過 53 位元"
858+
"(與 C 語言 double 型別相同),因此當浮點數 *x* 滿足 ``abs(x) >= 2**52`` 時,"
859+
"它必然沒有小數部分。"
832860

833861
#:../../library/math.rst:313
834862
msgid"Floating point manipulation functions"
@@ -861,6 +889,9 @@ msgid ""
861889
"than returning its second return value through an 'output parameter' (there "
862890
"is no such thing in Python)."
863891
msgstr""
892+
"請注意 :func:`frexp` 的呼叫/回傳模式與 C 語言中相應的函式不同:"
893+
"它們接受一個引數並回傳一對值,而非透過一個「輸出參數(output parameter)」傳"
894+
"遞第二個回傳值(Python 沒有那種東西)。"
864895

865896
#:../../library/math.rst:336
866897
msgid""
@@ -920,7 +951,7 @@ msgid ""
920951
"Return ``True`` if *x* is neither an infinity nor a NaN, and ``False`` "
921952
"otherwise. (Note that ``0.0`` *is* considered finite.)"
922953
msgstr""
923-
"若 *x* 不是無限值或``NaN`` 便回傳 ``True``,否則回傳 ``False``。(注意 "
954+
"若 *x* 不是無限值或 NaN 便回傳 ``True``,否則回傳 ``False``。(注意 "
924955
"``0.0`` 被視為有限數。)"
925956

926957
#:../../library/math.rst:378
@@ -933,7 +964,7 @@ msgstr "若 *x* 是正無限值或負無限值便回傳 ``True``,否則回傳
933964
msgid""
934965
"Return ``True`` if *x* is a NaN (not a number), and ``False`` otherwise."
935966
msgstr""
936-
"若 *x* 是``NaN`` ──即非數字(NaN, not a number)── 便回傳 ``True``,否則回"
967+
"若 *x* 是 NaN ──即非數值(NaN, not a number)── 便回傳 ``True``,否則回"
937968
"傳 ``False``。"
938969

939970
#:../../library/math.rst:389
@@ -944,31 +975,31 @@ msgstr "回傳 ``x * (2**i)``。此函式本質上為 :func:`frexp` 的反函式
944975

945976
#:../../library/math.rst:395
946977
msgid"Return the floating-point value *steps* steps after *x* towards *y*."
947-
msgstr""
978+
msgstr"回傳 *x* 向 *y* *steps* 步的浮點數值。"
948979

949980
#:../../library/math.rst:397
950981
msgid"If *x* is equal to *y*, return *y*, unless *steps* is zero."
951-
msgstr""
982+
msgstr"除非 *steps* 為零,否則當 *x* 與 *y* 相等時回傳 *y*。"
952983

953984
#:../../library/math.rst:399
954985
msgid"Examples:"
955986
msgstr"範例:"
956987

957988
#:../../library/math.rst:401
958989
msgid"``math.nextafter(x, math.inf)`` goes up: towards positive infinity."
959-
msgstr""
990+
msgstr"``math.nextafter(x, math.inf)`` 增加:往正無限。"
960991

961992
#:../../library/math.rst:402
962993
msgid"``math.nextafter(x, -math.inf)`` goes down: towards minus infinity."
963-
msgstr""
994+
msgstr"``math.nextafter(x, -math.inf)`` 減少:往負無限。"
964995

965996
#:../../library/math.rst:403
966997
msgid"``math.nextafter(x, 0.0)`` goes towards zero."
967-
msgstr""
998+
msgstr"``math.nextafter(x, 0.0)`` 靠近零。"
968999

9691000
#:../../library/math.rst:404
9701001
msgid"``math.nextafter(x, math.copysign(math.inf, x))`` goes away from zero."
971-
msgstr""
1002+
msgstr"``math.nextafter(x, math.copysign(math.inf, x))`` 遠離零。"
9721003

9731004
#:../../library/math.rst:406
9741005
msgid"See also :func:`math.ulp`."
@@ -980,11 +1011,11 @@ msgstr "新增 *steps* 引數。"
9801011

9811012
#:../../library/math.rst:416
9821013
msgid"Return the value of the least significant bit of the float *x*:"
983-
msgstr""
1014+
msgstr"回傳浮點數 *x* 的最低有效位元:"
9841015

9851016
#:../../library/math.rst:418
9861017
msgid"If *x* is a NaN (not a number), return *x*."
987-
msgstr""
1018+
msgstr"若 *x* 為 NaN(非數值),回傳 *x*。"
9881019

9891020
#:../../library/math.rst:419
9901021
msgid"If *x* is negative, return ``ulp(-x)``."
@@ -1000,30 +1031,38 @@ msgid ""
10001031
"representable float (smaller than the minimum positive *normalized* "
10011032
"float, :data:`sys.float_info.min <sys.float_info>`)."
10021033
msgstr""
1034+
"若 *x* 等於零,回傳\\ *反正規化*\\ 可表示的最小正浮點數(此值小於\\ *正規化*\\ 可表示"
1035+
"的最小正浮點數 :data:`sys.float_info.min <sys.float_info>`)。"
10031036

10041037
#:../../library/math.rst:424
10051038
msgid""
10061039
"If *x* is equal to the largest positive representable float, return the "
10071040
"value of the least significant bit of *x*, such that the first float smaller "
10081041
"than *x* is ``x - ulp(x)``."
10091042
msgstr""
1043+
"若 *x* 等於可表示的最大正浮點數,回傳 *x* 的最低有效位元值,使 ``x-ulp(x)`` "
1044+
"為第一個小於 *x* 的浮點數。"
10101045

10111046
#:../../library/math.rst:427
10121047
msgid""
10131048
"Otherwise (*x* is a positive finite number), return the value of the least "
10141049
"significant bit of *x*, such that the first float bigger than *x* is ``x + "
10151050
"ulp(x)``."
10161051
msgstr""
1052+
"否則(當 *x* 為正有限數),回傳 *x* 的最低有效位元值,使 ``x+ulp(x)`` 為第一"
1053+
"個大於 *x* 的浮點數。"
10171054

10181055
#:../../library/math.rst:431
10191056
msgid"ULP stands for\"Unit in the Last Place\"."
1020-
msgstr""
1057+
msgstr"ULP 即最後一位上的單位值(Unit in the Last Place)。"
10211058

10221059
#:../../library/math.rst:433
10231060
msgid""
10241061
"See also :func:`math.nextafter` and :data:`sys.float_info.epsilon "
10251062
"<sys.float_info>`."
10261063
msgstr""
1064+
"另請參閱 :func:`math.nextafter` 及 :data:`sys.float_info.epsilon "
1065+
"<sys.float_info>`。"
10271066

10281067
#:../../library/math.rst:440
10291068
msgid"Power, exponential and logarithmic functions"
@@ -1127,7 +1166,7 @@ msgstr ""
11271166

11281167
#:../../library/math.rst:546../../library/math.rst:607
11291168
msgid"Roughly equivalent to::"
1130-
msgstr""
1169+
msgstr"約等價於:::"
11311170

11321171
#:../../library/math.rst:548
11331172
msgid"sqrt(sum((px - qx) ** 2.0 for px, qx in zip(p, q)))"
@@ -1205,11 +1244,11 @@ msgstr ""
12051244

12061245
#:../../library/math.rst:603
12071246
msgid"Return the sum of products of values from two iterables *p* and *q*."
1208-
msgstr""
1247+
msgstr"回傳兩個可疊代物件 *p* 及 *q* 各值乘積的總和。"
12091248

12101249
#:../../library/math.rst:605
12111250
msgid"Raises :exc:`ValueError` if the inputs do not have the same length."
1212-
msgstr""
1251+
msgstr"若兩個傳入物件長度不同會引發 :exc:`ValueError`。"
12131252

12141253
#:../../library/math.rst:609
12151254
msgid"sum(map(operator.mul, p, q, strict=True))"
@@ -1220,6 +1259,8 @@ msgid ""
12201259
"For float and mixed int/float inputs, the intermediate products and sums are "
12211260
"computed with extended precision."
12221261
msgstr""
1262+
"對浮點數或混合整數及浮點數的傳入物件,其過程中的乘積及總和皆使用延伸精度計"
1263+
"算。"
12231264

12241265
#:../../library/math.rst:618
12251266
msgid"Angular conversion"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp