Skip to content

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

Open
wants to merge 11 commits into
base: 3.13
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rst: 87-102, 239-374
  • Loading branch information
Carisa-Li committed Oct 21, 2024
commit ef0e0539aa97a9f2e470f8477b2e9e4690be4cdf
14 changes: 9 additions & 5 deletions library/math.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: Python 3.13\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-03-14 00:03+0000\n"
"PO-Revision-Date: 2024-10-06 23:31+0800\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"
Expand Down Expand Up @@ -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``)已被棄用。"

Expand All @@ -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`` 更高的精度。"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這邊的 round 是四捨五入的那個 round 嗎?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

然後這邊的 precision 跟 accuracy 的翻譯可能還是要分開,精確度跟準確度應該還是不太一樣
precision 精確度
accuracy 準確度

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

根據wiki對Fused multiply-add的說明,我認為此處的round含義上確實類似四捨五入

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

accuracy已修


#: ../../library/math.rst:92
msgid ""
Expand All @@ -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)`` 的"
"結果;在此案例中,``math.fma`` 回傳 ``NaN`` 且不會引發例外。"

#: ../../library/math.rst:103
msgid ""
Expand Down Expand Up @@ -442,9 +446,9 @@ msgid ""
"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.inf, "
"x)`` 會引發 :exc:`ValueError`。若取餘數操作的結果為零,則該零值會與 *x* "
"。"
"值為 *x*;對任何非 ``NaN`` 值 *x*,``remainder(x, 0)`` 及 ``remainder(math."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit

Suggested change
"值為 *x*;對任何非 ``NaN`` 值 *x*,``remainder(x, 0)`` 及 ``remainder(math."
"的值為 *x*;對任何非 ``NaN`` 值 *x*,``remainder(x, 0)`` 及 ``remainder(math."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修

"inf, x)`` 會引發 :exc:`ValueError`。若取餘數操作的結果為零,則該零值會與 *x* "
"同號。"

#: ../../library/math.rst:307
msgid ""
Expand Down