@@ -372,33 +372,38 @@ msgid ""
372372"If both ``x`` and ``y`` are finite, ``x`` is negative, and ``y`` is not an "
373373"integer then ``pow(x, y)`` is undefined, and raises :exc:`ValueError`."
374374msgstr ""
375+ "将返回 ``x`` 的 ``y`` 次幂。特殊情况尽可能遵循C99标准的附录'F'。特别是, ``pow(1.0, x)`` 和 ``pow(x, "
376+ "0.0)`` 总是返回 ``1.0`` ,即使 ``x`` 是零或NaN。 如果 ``x`` 和 ``y`` 都是有限的, ``x`` 是负数, "
377+ "``y`` 不是整数那么 ``pow(x, y)`` 是未定义的,并且引发 :exc:`ValueError` 。"
375378
376379#: ../../library/math.rst:290
377380msgid ""
378381"Unlike the built-in ``**`` operator, :func:`math.pow` converts both its "
379382"arguments to type :class:`float`. Use ``**`` or the built-in :func:`pow` "
380383"function for computing exact integer powers."
381384msgstr ""
385+ "与内置的 ``**`` 运算符不同, :func:`math.pow` 将其参数转换为 :class:`float` 类型。使用 ``**`` 或内置的"
386+ " :func:`pow` 函数来计算精确的整数幂。"
382387
383388#: ../../library/math.rst:297
384389msgid "Return the square root of *x*."
385- msgstr ""
390+ msgstr "返回 *x* 的平方根。 "
386391
387392#: ../../library/math.rst:301
388393msgid "Trigonometric functions"
389394msgstr "三角函数"
390395
391396#: ../../library/math.rst:305
392397msgid "Return the arc cosine of *x*, in radians."
393- msgstr ""
398+ msgstr "以弧度为单位返回 *x* 的反余弦值。 "
394399
395400#: ../../library/math.rst:310
396401msgid "Return the arc sine of *x*, in radians."
397- msgstr ""
402+ msgstr "以弧度为单位返回 *x* 的反正弦值。 "
398403
399404#: ../../library/math.rst:315
400405msgid "Return the arc tangent of *x*, in radians."
401- msgstr ""
406+ msgstr "以弧度为单位返回 *x* 的反正切值。 "
402407
403408#: ../../library/math.rst:320
404409msgid ""
@@ -409,6 +414,10 @@ msgid ""
409414" for the angle. For example, ``atan(1)`` and ``atan2(1, 1)`` are both "
410415"``pi/4``, but ``atan2(-1, -1)`` is ``-3*pi/4``."
411416msgstr ""
417+ "以弧度为单位返回 ``atan(y / x)`` 。结果是在 ``-pi`` 和 ``pi`` 之间。从原点到点 ``(x, y)`` "
418+ "的平面矢量使该角度与正X轴成正比。 :func:`atan2` 的点的两个输入的符号都是已知的,因此它可以计算角度的正确象限。 例如, "
419+ "``atan(1)`` 和 ``atan2(1, 1)`` 都是 ``pi/4`` ,但 ``atan2(-1, -1)`` 是 "
420+ "``-3*pi/4`` 。"
412421
413422#: ../../library/math.rst:330
414423msgid "Return the cosine of *x* radians."
@@ -418,7 +427,7 @@ msgstr "返回 *x* 弧度的余弦值。"
418427msgid ""
419428"Return the Euclidean norm, ``sqrt(x*x + y*y)``. This is the length of the "
420429"vector from the origin to point ``(x, y)``."
421- msgstr ""
430+ msgstr "返回欧几里德范数, ``sqrt(x*x + y*y)`` 。 这是从原点到点 ``(x, y)`` 的向量长度。 "
422431
423432#: ../../library/math.rst:341
424433msgid "Return the sine of *x* radians."
@@ -486,13 +495,17 @@ msgid ""
486495"Return the `error function <https://en.wikipedia.org/wiki/Error_function>`_ "
487496"at *x*."
488497msgstr ""
498+ "返回 *x* 处的 `error function <https://en.wikipedia.org/wiki/Error_function>`_ 。"
489499
490500#: ../../library/math.rst:407
491501msgid ""
492502"The :func:`erf` function can be used to compute traditional statistical "
493503"functions such as the `cumulative standard normal distribution "
494504"<https://en.wikipedia.org/wiki/Normal_distribution#Cumulative_distribution_function>`_::"
495505msgstr ""
506+ ":func:`erf` 函数可用于计算传统的统计函数,如 `累积标准正态分布 "
507+ "<https://en.wikipedia.org/wiki/Normal_distribution#Cumulative_distribution_function>`_"
508+ " ::"
496509
497510#: ../../library/math.rst:420
498511msgid ""
@@ -502,6 +515,9 @@ msgid ""
502515"from one would cause a `loss of significance "
503516"<https://en.wikipedia.org/wiki/Loss_of_significance>`_\\ ."
504517msgstr ""
518+ "返回 *x* 处的互补误差函数。 `补充错误函数<https://en.wikipedia.org/wiki/Error_function>`_ 定义为"
519+ " ``1.0 - erf(x)`` 。 它用于 *x* 的大值,从其中减去一个会导致 `loss of significance "
520+ "<https://en.wikipedia.org/wiki/Loss_of_significance>`_\\ 的。"
505521
506522#: ../../library/math.rst:431
507523msgid ""
@@ -513,7 +529,7 @@ msgstr "返回 *x* 处的 `伽马函数 <https://en.wikipedia.org/wiki/Gamma_fun
513529msgid ""
514530"Return the natural logarithm of the absolute value of the Gamma function at "
515531"*x*."
516- msgstr ""
532+ msgstr "返回Gamma函数在 *x* 绝对值的自然对数。 "
517533
518534#: ../../library/math.rst:446
519535msgid "Constants"
@@ -544,13 +560,13 @@ msgstr ""
544560msgid ""
545561"A floating-point positive infinity. (For negative infinity, use "
546562"``-math.inf``.) Equivalent to the output of ``float('inf')``."
547- msgstr ""
563+ msgstr "浮点正无穷大。 (对于负无穷大,使用 ``-math.inf`` 。)相当于``float('inf')`` 的输出。 "
548564
549565#: ../../library/math.rst:479
550566msgid ""
551567"A floating-point \" not a number\" (NaN) value. Equivalent to the output of "
552568"``float('nan')``."
553- msgstr ""
569+ msgstr "浮点“非数字”(NaN)值。 相当于 ``float('nan')`` 的输出。 "
554570
555571#: ../../library/math.rst:487
556572msgid ""
@@ -566,6 +582,12 @@ msgid ""
566582"are some exceptions to this rule, for example ``pow(float('nan'), 0.0)`` or "
567583"``hypot(float('nan'), float('inf'))``."
568584msgstr ""
585+ ":mod:`math` 模块主要包含围绕平台C数学库函数的简单包装器。特殊情况下的行为在适当情况下遵循C99标准的附录F。当前的实现将引发 "
586+ ":exc:`ValueError` 用于无效操作,如 ``sqrt(-1.0)`` 或 ``log(0.0)`` "
587+ "(其中C99附件F建议发出无效操作信号或被零除), 和 :exc:`OverflowError` 用于溢出的结果(例如, ``exp(1000.0)``"
588+ " "
589+ ")。除非一个或多个输入参数是NaN,否则不会从上述任何函数返回NaN;在这种情况下,大多数函数将返回一个NaN,但是(再次遵循C99附件F)这个规则有一些例外,例如"
590+ " ``pow(float('nan'), 0.0)`` 或 ``hypot(float('nan'), float('inf'))`` 。"
569591
570592#: ../../library/math.rst:499
571593msgid ""
0 commit comments