-
-
Notifications
You must be signed in to change notification settings - Fork 219
Translate library/math.po rst: 87-102, 239-374 #992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 3.13
Are you sure you want to change the base?
Changes from 2 commits
cf82202
ef0e053
09b69d3
4925f1b
76d05a0
1a13886
8474f4c
9c36e2b
328299b
4488f28
caad60b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -7,8 +7,8 @@ msgid "" | |||||
msgstr "" | ||||||
"Project-Id-Version: Python 3.13\n" | ||||||
"Report-Msgid-Bugs-To: \n" | ||||||
"POT-Creation-Date: 2024-09-23 07:52+0800\n" | ||||||
"PO-Revision-Date: 2024-04-26 15:15+0800\n" | ||||||
"POT-Creation-Date: 2024-03-14 00:03+0000\n" | ||||||
"PO-Revision-Date: 2024-10-21 23:50+0800\n" | ||||||
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n" | ||||||
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" | ||||||
"tw)\n" | ||||||
|
@@ -17,7 +17,7 @@ msgstr "" | |||||
"Content-Type: text/plain; charset=UTF-8\n" | ||||||
"Content-Transfer-Encoding: 8bit\n" | ||||||
"Plural-Forms: nplurals=1; plural=0;\n" | ||||||
"X-Generator: Poedit 3.4.2\n" | ||||||
"X-Generator: Poedit 3.5\n" | ||||||
|
||||||
#: ../../library/math.rst:2 | ||||||
msgid ":mod:`!math` --- Mathematical functions" | ||||||
|
@@ -114,7 +114,6 @@ msgstr "" | |||||
"以整數回傳 *n* 的階乘。若 *n* 非整數型別或其值為負會引發 :exc:`ValueError`。" | ||||||
|
||||||
#: ../../library/math.rst:74 | ||||||
#, fuzzy | ||||||
msgid "Floats with integral values (like ``5.0``) are no longer accepted." | ||||||
msgstr "允許傳入其值為整數的浮點數(如:``5.0``)已被棄用。" | ||||||
|
||||||
|
@@ -135,6 +134,8 @@ msgid "" | |||||
"``float`` format. This operation often provides better accuracy than the " | ||||||
"direct expression ``(x * y) + z``." | ||||||
msgstr "" | ||||||
"融合乘加運算。回傳 ``(x * y) + z``,用近似於無限精度及範圍的方式計算,而後一" | ||||||
"次轉換為浮點數格式。此操作通常能提供比運算式 ``(x * y) + z`` 更高的精度。" | ||||||
|
||||||
|
||||||
#: ../../library/math.rst:92 | ||||||
msgid "" | ||||||
|
@@ -144,6 +145,9 @@ msgid "" | |||||
"``fma(inf, 0, nan)``. In these cases, ``math.fma`` returns a NaN, and does " | ||||||
"not raise any exception." | ||||||
msgstr "" | ||||||
"此函式遵循 IEEE-754 標準中規範的融合乘加(fusedMultiplyAdd)運算。該標準保留" | ||||||
"一種由實作環境決定的案例,即 ``fma(0, inf, nan)`` 和 ``fma(inf, 0, nan)`` 的" | ||||||
Carisa-Li marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
"結果;在此案例中,``math.fma`` 回傳 ``NaN`` 且不會引發例外。" | ||||||
|
||||||
#: ../../library/math.rst:103 | ||||||
msgid "" | ||||||
|
@@ -347,35 +351,35 @@ msgstr "回傳 ``x * (2**i)``。此函式本質上為 :func:`frexp` 的反函式 | |||||
msgid "" | ||||||
"Return the fractional and integer parts of *x*. Both results carry the sign " | ||||||
"of *x* and are floats." | ||||||
msgstr "" | ||||||
msgstr "回傳 *x* 的小數及整數部分,兩者皆為與 *x* 同號的浮點數。" | ||||||
|
||||||
#: ../../library/math.rst:245 | ||||||
msgid "Return the floating-point value *steps* steps after *x* towards *y*." | ||||||
msgstr "" | ||||||
msgstr "回傳 *x* 向 *y* *steps* 步的浮點數值。" | ||||||
|
||||||
#: ../../library/math.rst:247 | ||||||
msgid "If *x* is equal to *y*, return *y*, unless *steps* is zero." | ||||||
msgstr "" | ||||||
msgstr "除非 *steps* 為零,否則當 *x* 與 *y* 相等時回傳 *y*。" | ||||||
|
||||||
#: ../../library/math.rst:249 | ||||||
msgid "Examples:" | ||||||
msgstr "範例:" | ||||||
|
||||||
#: ../../library/math.rst:251 | ||||||
msgid "``math.nextafter(x, math.inf)`` goes up: towards positive infinity." | ||||||
msgstr "" | ||||||
msgstr "``math.nextafter(x, math.inf)`` 增加:往正無限。" | ||||||
|
||||||
#: ../../library/math.rst:252 | ||||||
msgid "``math.nextafter(x, -math.inf)`` goes down: towards minus infinity." | ||||||
msgstr "" | ||||||
msgstr "``math.nextafter(x, -math.inf)`` 減少:往負無限。" | ||||||
|
||||||
#: ../../library/math.rst:253 | ||||||
msgid "``math.nextafter(x, 0.0)`` goes towards zero." | ||||||
msgstr "" | ||||||
msgstr "``math.nextafter(x, 0.0)`` 靠近零。" | ||||||
|
||||||
#: ../../library/math.rst:254 | ||||||
msgid "``math.nextafter(x, math.copysign(math.inf, x))`` goes away from zero." | ||||||
msgstr "" | ||||||
msgstr "``math.nextafter(x, math.copysign(math.inf, x))`` 遠離零。" | ||||||
|
||||||
#: ../../library/math.rst:256 | ||||||
msgid "See also :func:`math.ulp`." | ||||||
|
@@ -389,32 +393,36 @@ msgstr "新增 *steps* 引數。" | |||||
msgid "" | ||||||
"Return the number of ways to choose *k* items from *n* items without " | ||||||
"repetition and with order." | ||||||
msgstr "" | ||||||
msgstr "回傳從 *n* 個物品中不重複且考慮排序地取出 *k* 個物品的方法數。" | ||||||
|
||||||
#: ../../library/math.rst:268 | ||||||
msgid "" | ||||||
"Evaluates to ``n! / (n - k)!`` when ``k <= n`` and evaluates to zero when " | ||||||
"``k > n``." | ||||||
msgstr "" | ||||||
msgstr "當 ``k <= n`` 時其值為 ``n! / (n - k)!``,否則其值為 ``0``。" | ||||||
|
||||||
#: ../../library/math.rst:271 | ||||||
msgid "" | ||||||
"If *k* is not specified or is ``None``, then *k* defaults to *n* and the " | ||||||
"function returns ``n!``." | ||||||
msgstr "" | ||||||
"若未給定 *k* 或其值為 ``None``,則 *k* 值預設為 *n*,且函式回傳 ``n!``。" | ||||||
|
||||||
#: ../../library/math.rst:282 | ||||||
msgid "" | ||||||
"Calculate the product of all the elements in the input *iterable*. The " | ||||||
"default *start* value for the product is ``1``." | ||||||
msgstr "" | ||||||
"計算傳入的 *iterable* 中所有元素的乘積。預設的乘積起始值 *start* 為 ``1``。" | ||||||
|
||||||
#: ../../library/math.rst:285 | ||||||
msgid "" | ||||||
"When the iterable is empty, return the start value. This function is " | ||||||
"intended specifically for use with numeric values and may reject non-numeric " | ||||||
"types." | ||||||
msgstr "" | ||||||
"當 *iterable* 為空時,回傳 *start* 值。此函式特別用於計算數值,並可能拒絕處理" | ||||||
"非數字類型。" | ||||||
|
||||||
#: ../../library/math.rst:294 | ||||||
msgid "" | ||||||
|
@@ -425,6 +433,10 @@ msgid "" | |||||
"*even* integer is used for ``n``. The remainder ``r = remainder(x, y)`` " | ||||||
"thus always satisfies ``abs(r) <= 0.5 * abs(y)``." | ||||||
msgstr "" | ||||||
"回傳 *x* 對 *y* 根據 IEEE 754 定義的餘數。對有限數 *x* 及有限非零數 *y*,該餘" | ||||||
"數值為 ``x - n*y``,``n`` 是最接近 ``x / y`` 精確值的整數。若 ``x / y`` 剛好" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. quotient 沒翻到,然後這句也沒有精確度歐 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 我是將the exact value of the quotient There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 這邊的 difference 應該不是餘數? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 因為上一句定義了x,y兩數,所以我將this翻為該餘數值與第一句的根據 IEEE 754 定義的餘數對應,此處的difference我想應該是指差(減法運算的結果),這部分我會再想一下 |
||||||
"位於兩個連續整數的正中間,``n`` 為最接近的 *偶* 數。因此該餘數 ``r = " | ||||||
"remainder(x, y)`` 必滿足 ``abs(r) <= 0.5 * abs(y)``。" | ||||||
Carisa-Li marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
||||||
#: ../../library/math.rst:301 | ||||||
msgid "" | ||||||
|
@@ -433,34 +445,38 @@ msgid "" | |||||
"x)`` raise :exc:`ValueError` for any non-NaN *x*. If the result of the " | ||||||
"remainder operation is zero, that zero will have the same sign as *x*." | ||||||
msgstr "" | ||||||
"特殊情況遵循 IEEE 754:特別是,對任何有限數 *x*,``remainder(x, math.inf)`` " | ||||||
"值為 *x*;對任何非 ``NaN`` 值 *x*,``remainder(x, 0)`` 及 ``remainder(math." | ||||||
Carisa-Li marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
"值為 *x*;對任何非 ``NaN`` 值 *x*,``remainder(x, 0)`` 及 ``remainder(math." | |
"的值為 *x*;對任何非 ``NaN`` 值 *x*,``remainder(x, 0)`` 及 ``remainder(math." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
binary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我確認了一下,IEEE 754定義了二進位制及十進位制的浮點數
已修為在使用 IEEE 754 浮點標準中二進制浮點數的平台上
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p&q
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"對浮點數或混合整數及浮點數的傳入物件,其過程中的乘積及總和皆使用延伸精度計" | |
"對浮點數或混合整數及浮點數的傳入物件,其過程中的乘積及總和皆使用延伸精確度計" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
因為fsum()處將extended precision翻為延伸精度,此處我傾向統一用詞
Carisa-Li marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Carisa-Li marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Carisa-Li marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nit
"請注意 :func:`frexp` 及 :func:`modf` 的呼叫/回傳模式與 C 語言中相應函式不同:" | |
"請注意 :func:`frexp` 及 :func:`modf` 的呼叫/回傳模式與 C 語言中的相應函式不同:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
這部分我想了一下,覺得與C語言中相應的函式不同比較順,已修
Uh oh!
There was an error while loading. Please reload this page.