Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4712e01

Browse files
committed
[po] auto sync bot
1 parent 5035dfb commit 4712e01

3 files changed

Lines changed: 52 additions & 19 deletions

File tree

library/cmath.po

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,18 +249,22 @@ msgid ""
249249
"tolerance is ``1e-09``, which assures that the two values are the same "
250250
"within about 9 decimal digits. *rel_tol* must be greater than zero."
251251
msgstr ""
252+
"*rel_tol* 是相对容差 —— 它是 *a* 和 *b* 之间允许的最大差值,相对于 *a* 或 *b* "
253+
"的较大绝对值。例如,要设置5%的容差,请传递 ``rel_tol=0.05`` 。默认容差为 ``1e-09``,确保两个值在大约9位十进制数字内相同。"
254+
" *rel_tol* 必须大于零。"
252255

253256
#: ../../library/cmath.rst:226
254257
msgid ""
255258
"*abs_tol* is the minimum absolute tolerance -- useful for comparisons near "
256259
"zero. *abs_tol* must be at least zero."
257-
msgstr ""
260+
msgstr "*abs_tol* 是最小绝对容差 —— 对于接近零的比较很有用。 *abs_tol* 必须至少为零。"
258261

259262
#: ../../library/cmath.rst:229
260263
msgid ""
261264
"If no errors occur, the result will be: ``abs(a-b) <= max(rel_tol * "
262265
"max(abs(a), abs(b)), abs_tol)``."
263266
msgstr ""
267+
"如果没有错误发生,结果将是: ``abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol)`` 。"
264268

265269
#: ../../library/cmath.rst:232
266270
msgid ""
@@ -269,10 +273,12 @@ msgid ""
269273
"close to any other value, including ``NaN``. ``inf`` and ``-inf`` are only "
270274
"considered close to themselves."
271275
msgstr ""
276+
"IEEE 754特殊值 ``NaN`` , ``inf`` 和` `-inf`` 将根据IEEE规则处理。具体来说, ``NaN`` "
277+
"不被认为接近任何其他值,包括 ``NaN`` 。 ``inf`` 和 ``-inf`` 只被认为接近自己。"
272278

273279
#: ../../library/cmath.rst:241
274280
msgid ":pep:`485` -- A function for testing approximate equality"
275-
msgstr ""
281+
msgstr ":pep:`485` —— 用于测试近似相等的函数"
276282

277283
#: ../../library/cmath.rst:245
278284
msgid "Constants"

library/math.po

Lines changed: 41 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# Translators:
77
# focusheart <[email protected]>, 2019
88
# Dingyuan Wang <[email protected]>, 2019
9-
# Meng Du <[email protected]>, 2019
109
# Freesand Leo <[email protected]>, 2019
10+
# Meng Du <[email protected]>, 2019
1111
#
1212
#, fuzzy
1313
msgid ""
@@ -16,7 +16,7 @@ msgstr ""
1616
"Report-Msgid-Bugs-To: \n"
1717
"POT-Creation-Date: 2019-01-01 10:14+0900\n"
1818
"PO-Revision-Date: 2017-02-16 23:18+0000\n"
19-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2019\n"
19+
"Last-Translator: Meng Du <alphanow@gmail.com>, 2019\n"
2020
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2121
"MIME-Version: 1.0\n"
2222
"Content-Type: text/plain; charset=UTF-8\n"
@@ -182,18 +182,22 @@ msgid ""
182182
"tolerance is ``1e-09``, which assures that the two values are the same "
183183
"within about 9 decimal digits. *rel_tol* must be greater than zero."
184184
msgstr ""
185+
"*rel_tol* 是相对容差 —— 它是 *a* 和 *b* 之间允许的最大差值,相对于 *a* 或 *b* "
186+
"的较大绝对值。例如,要设置5%的容差,请传递 ``rel_tol=0.05`` 。默认容差为 ``1e-09``,确保两个值在大约9位十进制数字内相同。"
187+
" *rel_tol* 必须大于零。"
185188

186189
#: ../../library/math.rst:132
187190
msgid ""
188191
"*abs_tol* is the minimum absolute tolerance -- useful for comparisons near "
189192
"zero. *abs_tol* must be at least zero."
190-
msgstr ""
193+
msgstr "*abs_tol* 是最小绝对容差 —— 对于接近零的比较很有用。 *abs_tol* 必须至少为零。"
191194

192195
#: ../../library/math.rst:135
193196
msgid ""
194197
"If no errors occur, the result will be: ``abs(a-b) <= max(rel_tol * "
195198
"max(abs(a), abs(b)), abs_tol)``."
196199
msgstr ""
200+
"如果没有错误发生,结果将是: ``abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol)`` 。"
197201

198202
#: ../../library/math.rst:138
199203
msgid ""
@@ -202,39 +206,42 @@ msgid ""
202206
"close to any other value, including ``NaN``. ``inf`` and ``-inf`` are only "
203207
"considered close to themselves."
204208
msgstr ""
209+
"IEEE 754特殊值 ``NaN`` , ``inf`` 和 ``-inf`` 将根据IEEE规则处理。具体来说, ``NaN`` "
210+
"不被认为接近任何其他值,包括 ``NaN`` 。 ``inf`` 和 ``-inf`` 只被认为接近自己。"
205211

206212
#: ../../library/math.rst:147
207213
msgid ":pep:`485` -- A function for testing approximate equality"
208-
msgstr ""
214+
msgstr ":pep:`485` —— 用于测试近似相等的函数"
209215

210216
#: ../../library/math.rst:152
211217
msgid ""
212218
"Return ``True`` if *x* is neither an infinity nor a NaN, and ``False`` "
213219
"otherwise. (Note that ``0.0`` *is* considered finite.)"
214220
msgstr ""
221+
"如果 *x* 既不是无穷大也不是NaN,则返回 ``True`` ,否则返回 ``False`` 。 (注意 ``0.0`` 被认为 *是* 有限的。)"
215222

216223
#: ../../library/math.rst:160
217224
msgid ""
218225
"Return ``True`` if *x* is a positive or negative infinity, and ``False`` "
219226
"otherwise."
220-
msgstr ""
227+
msgstr "如果 *x* 是正或负无穷大,则返回 ``True`` ,否则返回 ``False`` 。"
221228

222229
#: ../../library/math.rst:166
223230
msgid ""
224231
"Return ``True`` if *x* is a NaN (not a number), and ``False`` otherwise."
225-
msgstr ""
232+
msgstr "如果 *x* 是 NaN(不是数字),则返回 ``True`` ,否则返回 ``False`` 。"
226233

227234
#: ../../library/math.rst:171
228235
msgid ""
229236
"Return ``x * (2**i)``. This is essentially the inverse of function "
230237
":func:`frexp`."
231-
msgstr ""
238+
msgstr "返回 ``x * (2**i)`` 。 这基本上是函数 :func:`frexp` 的反函数。"
232239

233240
#: ../../library/math.rst:177
234241
msgid ""
235242
"Return the fractional and integer parts of *x*. Both results carry the sign"
236243
" of *x* and are floats."
237-
msgstr ""
244+
msgstr "返回 *x* 的小数和整数部分。两个结果都带有 *x* 的符号并且是浮点数。"
238245

239246
#: ../../library/math.rst:183
240247
msgid ""
@@ -245,6 +252,9 @@ msgid ""
245252
"*even* integer is used for ``n``. The remainder ``r = remainder(x, y)`` "
246253
"thus always satisfies ``abs(r) <= 0.5 * abs(y)``."
247254
msgstr ""
255+
"返回 IEEE 754 风格的 *x* 相对于 *y* 的余数。对于有限 *x* 和有限非零 *y* ,这是差异 ``x - n*y`` ,其中 "
256+
"``n`` 是与商 ``x / y`` 的精确值最接近的整数。如果 ``x / y`` 恰好位于两个连续整数之间,则最近的 * even* 整数用于 "
257+
"``n`` 。 余数 ``r = remainder(x, y)`` 因此总是满足 ``abs(r) <= 0.5 * abs(y)`` 。"
248258

249259
#: ../../library/math.rst:190
250260
msgid ""
@@ -253,19 +263,24 @@ msgid ""
253263
"x)`` raise :exc:`ValueError` for any non-NaN *x*. If the result of the "
254264
"remainder operation is zero, that zero will have the same sign as *x*."
255265
msgstr ""
266+
"特殊情况遵循IEEE 754:特别是 ``remainder(x, math.inf)`` 对于任何有限 *x* 都是 *x* ,而 "
267+
"``remainder(x, 0)`` 和 ``remainder(math.inf, x)`` 引发 :exc:`ValueError` "
268+
"适用于任何非NaN的 *x* 。如果余数运算的结果为零,则该零将具有与 *x* 相同的符号。"
256269

257270
#: ../../library/math.rst:196
258271
msgid ""
259272
"On platforms using IEEE 754 binary floating-point, the result of this "
260273
"operation is always exactly representable: no rounding error is introduced."
261-
msgstr ""
274+
msgstr "在使用IEEE 754二进制浮点的平台上,此操作的结果始终可以完全表示:不会引入舍入错误。"
262275

263276
#: ../../library/math.rst:204
264277
msgid ""
265278
"Return the :class:`~numbers.Real` value *x* truncated to an "
266279
":class:`~numbers.Integral` (usually an integer). Delegates to "
267280
":meth:`x.__trunc__() <object.__trunc__>`."
268281
msgstr ""
282+
"返回 :class:`~numbers.Real` 值 *x* 截断为 :class:`~numbers.Integral` (通常是整数)。委托给 "
283+
":`x.__trunc__() <object.__trunc__>` 。"
269284

270285
#: ../../library/math.rst:209
271286
msgid ""
@@ -274,6 +289,8 @@ msgid ""
274289
"pair of values, rather than returning their second return value through an "
275290
"'output parameter' (there is no such thing in Python)."
276291
msgstr ""
292+
"注意 :func:`frexp` 和 :func:`modf` 具有与它们的C等价函数不同的调用/返回模式:它们采用单个参数并返回一对值,而不是通过 "
293+
"'输出形参' 返回它们的第二个返回参数(Python中没有这样的东西)。"
277294

278295
#: ../../library/math.rst:214
279296
msgid ""
@@ -283,6 +300,9 @@ msgid ""
283300
"(the same as the platform C double type), in which case any float *x* with "
284301
"``abs(x) >= 2**52`` necessarily has no fractional bits."
285302
msgstr ""
303+
"对于 :func:`ceil` , :func:`floor` 和 :func:`modf` 函数,请注意 *所有* "
304+
"足够大的浮点数都是精确整数。Python浮点数通常不超过53位的精度(与平台C double类型相同),在这种情况下,任何浮点 *x* 与 "
305+
"``abs(x) >= 2**52`` 必然没有小数位。"
286306

287307
#: ../../library/math.rst:222
288308
msgid "Power and logarithmic functions"
@@ -294,6 +314,8 @@ msgid ""
294314
"natural logarithms. This is usually more accurate than ``math.e ** x`` or "
295315
"``pow(math.e, x)``."
296316
msgstr ""
317+
"返回 *e* 次 *x* 幂,其中 *e* = 2.718281... 是自然对数的基数。这通常比 ``math.e ** x`` 或 "
318+
"``pow(math.e, x)`` 更精确。"
297319

298320
#: ../../library/math.rst:233
299321
msgid ""
@@ -303,40 +325,44 @@ msgid ""
303325
"<https://en.wikipedia.org/wiki/Loss_of_significance>`_\\; the :func:`expm1` "
304326
"function provides a way to compute this quantity to full precision::"
305327
msgstr ""
328+
"返回 *e* 的 *x* 次幂,减1。这里 *e* 是自然对数的基数。对于小浮点数 *x* , ``exp(x) - 1`` 中的减法可能导致 "
329+
"`significant loss of precision "
330+
"<https://en.wikipedia.org/wiki/Loss_of_significance>`_\\ ; :func:`expm1` "
331+
"函数提供了一种将此数量计算为全精度的方法::"
306332

307333
#: ../../library/math.rst:250
308334
msgid "With one argument, return the natural logarithm of *x* (to base *e*)."
309-
msgstr ""
335+
msgstr "使用一个参数,返回 *x* 的自然对数(底为 *e* )。"
310336

311337
#: ../../library/math.rst:252
312338
msgid ""
313339
"With two arguments, return the logarithm of *x* to the given *base*, "
314340
"calculated as ``log(x)/log(base)``."
315-
msgstr ""
341+
msgstr "使用两个参数,返回给定的 *base* 的对数 *x* ,计算为 ``log(x)/log(base)`` 。"
316342

317343
#: ../../library/math.rst:258
318344
msgid ""
319345
"Return the natural logarithm of *1+x* (base *e*). The result is calculated "
320346
"in a way which is accurate for *x* near zero."
321-
msgstr ""
347+
msgstr "返回 *1+x* (base *e*) 的自然对数。以对于接近零的 *x* 精确的方式计算结果。"
322348

323349
#: ../../library/math.rst:264
324350
msgid ""
325351
"Return the base-2 logarithm of *x*. This is usually more accurate than "
326352
"``log(x, 2)``."
327-
msgstr ""
353+
msgstr "返回 *x* 以2为底的对数。这通常比 ``log(x, 2)`` 更准确。"
328354

329355
#: ../../library/math.rst:271
330356
msgid ""
331357
":meth:`int.bit_length` returns the number of bits necessary to represent an "
332358
"integer in binary, excluding the sign and leading zeros."
333-
msgstr ""
359+
msgstr ":meth:`int.bit_length` 返回表示二进制整数所需的位数,不包括符号和前导零。"
334360

335361
#: ../../library/math.rst:277
336362
msgid ""
337363
"Return the base-10 logarithm of *x*. This is usually more accurate than "
338364
"``log(x, 10)``."
339-
msgstr ""
365+
msgstr "返回 *x* 底为10的对数。这通常比 ``log(x, 10)`` 更准确。"
340366

341367
#: ../../library/math.rst:283
342368
msgid ""

whatsnew/3.5.po

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# Freesand Leo <[email protected]>, 2019
1111
# 汇民 王 <[email protected]>, 2019
1212
# ppcfish <[email protected]>, 2019
13+
# Meng Du <[email protected]>, 2019
1314
#
1415
#, fuzzy
1516
msgid ""
@@ -18,7 +19,7 @@ msgstr ""
1819
"Report-Msgid-Bugs-To: \n"
1920
"POT-Creation-Date: 2019-01-01 10:14+0900\n"
2021
"PO-Revision-Date: 2017-02-16 23:44+0000\n"
21-
"Last-Translator: ppcfish <ppcfish@gmail.com>, 2019\n"
22+
"Last-Translator: Meng Du <alphanow@gmail.com>, 2019\n"
2223
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2324
"MIME-Version: 1.0\n"
2425
"Content-Type: text/plain; charset=UTF-8\n"
@@ -712,7 +713,7 @@ msgstr ""
712713

713714
#: ../../whatsnew/3.5.rst:639
714715
msgid ":pep:`485` -- A function for testing approximate equality"
715-
msgstr ""
716+
msgstr ":pep:`485` —— 用于测试近似相等的函数"
716717

717718
#: ../../whatsnew/3.5.rst:639
718719
msgid ""

0 commit comments

Comments
 (0)