block_number.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. [
  2. // ### E 属性 ###
  3. //### LN2 属性 ###
  4. //### 属性 ###
  5. //### 属性 ###
  6. //### 属性 ###
  7. //### 属性 ###
  8. //### 属性 ###
  9. //### 属性 ###
  10. //### Math.abs(绝对值)、Math.sin(正弦)、Math.cos(余弦)、Math.tan(正切值)、Math.asin(反正弦)、Math.acos(反余弦)、Math.atan(反正切)、Math.sinh(双曲正弦)、Math.cosh(双曲余弦)、Math.tanh(双曲正切值)、Math.asinh(双曲反正弦)、Math.acosh(双曲反余弦)、Math.atanh(双曲反正切)、Math.sqrt(平方根)、Math.cbrt(立方根)、Math.exp(e(自然对数的底)的幂)、Math.log(自然对数(e为底))、Math.log10(10为底的对数)、Math.log1p(1+参数的 自然对数(e为底))、Math.log2(2为底的对数)、Math.ceil(大于或等于的最小整数)、Math.floor(小于或等于的最大整数)、Math.fround(浮点数)、Math.random(0到1的随机数)、Math.round(四舍五入到整数)、Math.sign(数字是否为正)、Math.trunc(去除小数部分) ###
  11. //### 、Math.hypot(参数平方和的平方根(多个参数))、Math.max()、Math.min() ###
  12. //### add加法、sub减法、mul乘法、div除法、mod取余数 ###
  13. {
  14. "name": "number.E",
  15. "contents": ["自然对数的底数e"],
  16. "class": "number.E", "extend": "$Expression"
  17. },
  18. {
  19. "name": "number.E",
  20. "contents": ["自然对数的底数e"],
  21. "class": "number.E", "extend": "$Expression"
  22. },
  23. {
  24. "name": "number.LN2",
  25. "contents": ["2的自然对数"],
  26. "class": "number.LN2", "extend": "$Expression"
  27. },
  28. {
  29. "name": "number.LN10",
  30. "contents": ["10的自然对数"],
  31. "class": "number.LN10", "extend": "$Expression"
  32. },
  33. {
  34. "name": "number.LOG2E",
  35. "contents": ["以2为底E的对数"],
  36. "class": "number.LOG2E", "extend": "$Expression"
  37. },
  38. {
  39. "name": "number.LOG10E",
  40. "contents": ["以10为底E的对数"],
  41. "class": "number.LOG10E", "extend": "$Expression"
  42. },
  43. {
  44. "name": "number.PI",
  45. "contents": ["圆周率"],
  46. "class": "number.PI", "extend": "$Expression"
  47. },
  48. {
  49. "name": "number.SQRT1_2",
  50. "contents": ["1/2的平方根"],
  51. "class": "number.SQRT1_2", "extend": "$Expression"
  52. },
  53. {
  54. "name": "number.SQRT2",
  55. "contents": ["2的平方根"],
  56. "class": "number.SQRT2", "extend": "$Expression"
  57. },
  58. {
  59. "name": "number.Math",
  60. "contents": [
  61. {"type": "select", "options": [
  62. "abs(绝对值)|abs",
  63. "sin(正弦)|sin",
  64. "cos(余弦)|cos",
  65. "tan(正切值)|tan",
  66. "asin(反正弦)|asin",
  67. "acos(反余弦)|acos",
  68. "atan(反正切)|atan",
  69. "sinh(双曲正弦)|sinh",
  70. "cosh(双曲余弦)|cosh",
  71. "tanh(双曲正切值)|tanh",
  72. "asinh(双曲反正弦)|asinh",
  73. "acosh(双曲反余弦)|acosh",
  74. "atanh(双曲反正切)|atanh",
  75. "sqrt(平方根)|sqrt",
  76. "cbrt(立方根)|cbrt",
  77. "exp(e的幂)|exp",
  78. "log(自然对数)|log",
  79. "log10(10为底的对数)|log10",
  80. "log2(2为底的对数)|log2",
  81. "ceil(向上取整)|ceil",
  82. "floor(向下取整)|floor",
  83. "fround(单精度浮点数)|fround",
  84. "random(0到1的随机数)|random",
  85. "round(四舍五入到整数)|round",
  86. "sign(数字是否为正)|sign",
  87. "trunc(去除小数部分)|trunc"
  88. ], "default": "Math"},
  89. {"type": "inputMortise","default": "","tenonTypes": []},
  90. ],
  91. "class": "number.Get", "extend": "$Expression"
  92. },
  93. {
  94. "name": "number.Math2",
  95. "contents": [
  96. {"type": "select", "options": [
  97. "max(最大数)|max",
  98. "min(最小数)|min",
  99. "hypot(平方和的平方根)|hypot"
  100. ], "default": "Math"},
  101. {"type": "inputMortise","default": "","tenonTypes": []},
  102. {"type": "inputMortise","default": "","tenonTypes": []}
  103. ],
  104. "class": "number.Math2", "extend": "$Expression"
  105. },
  106. {
  107. "name": "number.pow",
  108. "contents": [
  109. {"type": "inputMortise","default": "","tenonTypes": []},
  110. "的",
  111. {"type": "inputMortise","default": "","tenonTypes": []},
  112. "次方"
  113. ],
  114. "class": "number.Pow", "extend": "$Expression"
  115. },
  116. {
  117. "name": "number.Decimal",
  118. "contents": [
  119. {"type": "inputMortise","default": "","tenonTypes": []},
  120. {"type": "select", "options": [
  121. "加|add",
  122. "减|sub",
  123. "乘|mul",
  124. "除|div",
  125. "余|mod"
  126. ], "default": "Math"},
  127. {"type": "inputMortise","default": "","tenonTypes": []}
  128. ],
  129. "class": "number.Decimal", "extend": "$Expression"
  130. }
  131. ]