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

Translate library/math.po rst: 102-222#872

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mattwang44 merged 11 commits intopython:3.12fromCarisa-Li:library/math
May 9, 2024

Conversation

Carisa-Li
Copy link
Contributor

No description provided.

@mattwang44
Copy link
Collaborator

PR 頁面上看得到除0db8785 以外的所有 commits 都是舊的 commits(來自過去的 PR),麻煩請先 rebase 到最新的 3.12 branch 上(PR 頁面不應該出現舊的 commits),若不確定怎麼做的話再請你到 discord 找大家討論,感謝

@Carisa-Li
Copy link
ContributorAuthor

謝謝,試著處理完了

@mattwang44
Copy link
Collaborator

@Carisa-Li 沒有成功歐,commit 頁面 還看得到很多舊的 commits

Carisa-Liand others added6 commitsApril 26, 2024 14:31
Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
@@ -173,13 +178,18 @@ msgid ""
"occasionally double-round an intermediate sum causing it to be off in its "
"least significant bit."
msgstr ""
"此演算法準確性奠基於保證 IEEE-754 浮點標準及典型奇進偶捨(half-even)模式。於"
Copy link
Collaborator

Choose a reason for hiding this comment

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

arithmetic 是不是沒翻到啊

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

此部分因IEEE-754標準即是用來規範浮點數的運算,所以我認為不用特意在寫出運算。

@@ -173,13 +178,18 @@ msgid ""
"occasionally double-round an intermediate sum causing it to be off in its "
"least significant bit."
msgstr ""
"此演算法準確性奠基於保證 IEEE-754 浮點標準及典型奇進偶捨(half-even)模式。於"
"有些非 Windows 平台建置時,底層 C 函式庫使用延伸精度加法運算,而可能導致對過"
"程中同一部分和重複捨入,並使其最低有效位不如預期。"
Copy link
Collaborator

Choose a reason for hiding this comment

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

這邊是 intermediate sum 沒有 partial 吧?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

因為前面intermediate partial sums譯為過程中的部分和,為了前後一致所以此處亦譯為部分和。

Copy link
Collaborator

Choose a reason for hiding this comment

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

我看了一下原文我沒辦法完全確定兩個是指同一個東西的說...
第一句的 Avoids loss of precision by tracking multiple intermediate partial sums 像是在指 藉由追蹤部分的中間和來避免xxxx
這一句的好像就沒有部分的意思在裡面

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

我明白你的意思了。
我的斷句是將partial sum視為一個整體,並於剛剛確認fsum實作後判斷此處的partial sum應為專有名詞。
至於後者的intermediate sum,根據註解說明,延伸精度加法運算僅為資料型別的問題,不影響演算法,所以我認為此處的sum雖然沒有明說,但應仍指partial sum。

@@ -216,18 +229,24 @@ msgid ""
"tolerance is ``1e-09``, which assures that the two values are the same "
"within about 9 decimal digits. *rel_tol* must be greater than zero."
msgstr ""
"*rel_tol* 為相對容差 ── *a* 與 *b* 兩數差的最大容許值,與 *a* 及 *b* 兩數的絕"
Copy link
Collaborator

Choose a reason for hiding this comment

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

tolerance 後面好像被翻成容許偏差了 ?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

已與cmath統一用詞


#: ../../library/math.rst:153
msgid ""
"*abs_tol* is the minimum absolute tolerance -- useful for comparisons near "
"zero. *abs_tol* must be at least zero."
msgstr ""
"*abs_tol* 為最小絕對容差 ── 於接近零的比較時很有用。*abs_tol* 須大於 ``0``。"
Copy link
Collaborator

Choose a reason for hiding this comment

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

at least zero 至少是0,應該是大於等於 0?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

已修正

@Carisa-Li
Copy link
ContributorAuthor

Carisa-Li commentedApr 26, 2024
edited
Loading

雖然isclose()的文件寫rel_tol must be greater than zero,但剛剛實測發現傳入0仍可正常運作,那麼翻譯還是要翻為大於嗎?
(如果輸入負值跳出的錯誤提示是ValueError: tolerances must be non-negative)

@ken71301
Copy link
Collaborator

我是覺得先照著原文翻,要改也得等原文修了再改

ken71301
ken71301 previously approved these changesMay 9, 2024
Copy link
Collaborator

@ken71301ken71301 left a comment

Choose a reason for hiding this comment

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

LGTM~

@mattwang44mattwang44 merged commit2501ea7 intopython:3.12May 9, 2024
1 check passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mattwang44mattwang44mattwang44 left review comments

@ken71301ken71301ken71301 left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@Carisa-Li@mattwang44@ken71301

[8]ページ先頭

©2009-2025 Movatter.jp