IT入门 > 教程 > python >
  • Python math.asin() 方法 日期:2022-09-11 点击:7746 python

    Python math.asin(x) 返回 x 的反正弦值,结果范围在 -pi/2 到 pi/2 之间。。 math.asin() 接收的参数为 -1 到 1。 Python 版本:1.4 语法 math.asin() 方法语法如下: math.asin(x) 参数说明: x -- 必需,一个...

  • Python math.asinh() 方法 日期:2022-09-11 点击:8835 python

    Python math.asinh(x) 返回 x 的反双曲正弦值。 Python 版本:2.6 语法 math.asinh() 方法语法如下: math.asinh(x) 参数说明: x -- 必需,个正数或负数。如果 x 不是一个数字,返回 TypeError。 返回值 返...

  • Python math.atan() 方法 日期:2022-09-11 点击:3423 python

    Python math.atan(x) 返回 x 的反正切值,以弧度为单位,结果范围在 -pi/2 到 pi/2 之间。 Python 版本:1.6.1 语法 math.atan() 方法语法如下: math.atan(x) 参数说明: x -- 必需,个正数或负数。如果...

  • Python math.atan2() 方法 日期:2022-09-11 点击:1709 python

    Python math.atan2(y,x) 返回给定的 y 及 x 坐标值的反正切值 atan(y / x),以弧度为单位,结果是在 -pi 和 pi 之间。 Python 版本:1.4 语法 math.atan2() 方法语法如下: math.atan2(y, x) 参数说明: x -- 必...

  • Python math.atanh() 方法 日期:2022-09-11 点击:1562 python

    Python math.atanh(x) 返回 x 的反双曲正切值。 math.atanh(x) 的参数介于 -0.99 到 0.99 之间。 Python 版本: 2.6 语法 math.atanh() 方法语法如下: math.atanh(x) 参数说明: x -- 必需,介于 -0.99 和 0.99 之间...

  • Python math.ceil() 方法 日期:2022-09-11 点击:8460 python

    Python math.ceil(x) 方法将 x 向上舍入到最接近的整数。 math.floor() 方法将数字向下舍入到最接近的整数。 语法 math.ceil() 方法语法如下: math.ceil(x) 参数说明: x -- 必需,数字。如果 x 不是...

  • Python math.comb() 方法 日期:2022-09-11 点击:4226 python

    Python math.comb(x) 方法返回不重复且无顺序地从 n 项中选择 k 项的方式总数。 传入的参数必须是正整数。 Python 版本:3.8 语法 math.comb() 方法语法如下: math.comb(n, k) 参数说明: n -- 必需,...

  • Python math.copysign() 方法 日期:2022-09-11 点击:8918 python

    Python math.copysign(x,y) 方法返回一个基于 x 的绝对值和 y 的符号 +/- 的浮点数。 Python 版本:2.6 语法 math.copysign() 方法语法如下: math.copysign(x, y) 参数说明: x -- 必需,数字。 y -- 必需,数...

  • Python math.cos() 方法 日期:2022-09-11 点击:5896 python

    Python math.cos(x) 返回 x 弧度的余弦值。 Python 版本: 1.4 语法 math.cos() 方法语法如下: math.cos(x) 参数说明: x -- 必需,数字。如果 x 不是数字,则返回 TypeError。 返回值 返回一个浮点数,表...

  • Python math.cosh() 方法 日期:2022-09-11 点击:1347 python

    Python math.cosh(x) 返回 x 的双曲余弦值,相当于 (exp(number) + exp(-number)) / 2。 Python 版本:1.4 语法 math.cosh() 方法语法如下: math.cosh(x) 参数说明: x -- 必需,个正数或负数。如果 x 不是一个数...