Skip to content

模块 mbcp.mp_math.const ​

本模块定义了一些常用的常量

var PI ​

  • 说明: 常量 π

  • 默认值: math.pi

var E ​

  • 说明: 自然对数的底 exp(1)

  • 默认值: math.e

var GOLDEN_RATIO ​

  • 说明: 黄金分割比

  • 默认值: (1 + math.sqrt(5)) / 2

var GAMMA ​

  • 说明: 欧拉常数

  • 默认值: 0.5772156649015329

var EPSILON ​

  • 说明: 精度误差

  • 默认值: 0.0001

var APPROX ​

  • 说明: 约等于判定误差

  • 默认值: 0.001

文档由 VitePress 构建 | API引用由 litedoc 生成