Mathematical_functions.md.json 19 KB

1234567891011121314151617
  1. {
  2. "00af94506a9b63c1e6d779f7cc74a6482893c762e5a2a91057fd598077ef5e9b": {
  3. "original": "# Mathematical functions\n\n### ABS()\nReturns the absolute value of the argument.\n\n### ATAN2()\nReturns the arctangent function of two arguments, expressed in **radians**.\n\n### BITDOT()\n`BITDOT(mask, w0, w1, ...)` returns the sum of products of each bit of a mask multiplied by its weight. `bit0*w0 + bit1*w1 + ...`\n\n### CEIL()\nReturns the smallest integer value greater than or equal to the argument.\n\n### COS()\nReturns the cosine of the argument.\n\n### CRC32()\nReturns the CRC32 value of a string argument.\n\n### EXP()\nReturns the exponent of the argument (e=2.718... to the power of the argument).\n\n### FIBONACCI()\nReturns the N-th Fibonacci number, where N is the integer argument. That is, arguments of 0 and up will generate the values 0, 1, 1, 2, 3, 5, 8, 13 and so on. Note that the computations are done using 32-bit integer math and thus numbers 48th and up will be returned modulo 2^32.\n\n### FLOOR()\nReturns the largest integer value lesser than or equal to the argument.\n\n### GREATEST()\n`GREATEST(attr_json.some_array)` function takes a JSON array as the argument, and returns the greatest value in that array. Also works for MVA.\n\n### IDIV()\nReturns the result of an integer division of the first argument by the second argument. Both arguments must be of an integer type.\n\n### LEAST()\n`LEAST(attr_json.some_array)` function takes a JSON array as the argument, and returns the least value in that array. Also works for MVA.\n\n### LN()\nReturns the natural logarithm of the argument (with the base of e=2.718...).\n\n### LOG10()\nReturns the common logarithm of the argument (with the base of 10).\n\n### LOG2()\nReturns the binary logarithm of the argument (with the base of 2).\n\n### MAX()\nReturns the larger of two arguments.\n\n### MIN()\nReturns the smaller of two arguments.\n\n## POW()\nReturns the first argument raised to the power of the second argument.\n### RAND()\nReturns a random float between 0 and 1. It can optionally accept a `seed`, which can be a constant integer or an integer attribute's name.\n\nIf you use a `seed`, keep in mind that it resets `rand()`'s starting point separately for each plain table, RT disk, RAM chunk, or pseudo shard. Therefore, queries to a distributed table in any form can return multiple identical random values.\n\n### SIN()\nReturns the sine of the argument.\n\n### SQRT()\nReturns the square root of the argument.\n\n<!-- proofread -->\n\n",
  4. "translations": {
  5. "chinese": "# \u6570\u5b66\u51fd\u6570\n\n### ABS()\n\u8fd4\u56de\u53c2\u6570\u7684\u7edd\u5bf9\u503c\u3002\n\n### ATAN2()\n\u8fd4\u56de\u4e24\u4e2a\u53c2\u6570\u7684\u53cd\u6b63\u5207\u51fd\u6570\uff0c\u4ee5**\u5f27\u5ea6**\u4e3a\u5355\u4f4d\u8868\u8fbe\u3002\n\n### BITDOT()\n`BITDOT(mask, w0, w1, ...)` \u8fd4\u56de\u6bcf\u4e2a\u4f4d\u4e0e\u6743\u91cd\u76f8\u4e58\u4e4b\u548c\u3002`bit0*w0 + bit1*w1 + ...`\n\n### CEIL()\n\u8fd4\u56de\u5927\u4e8e\u6216\u7b49\u4e8e\u53c2\u6570\u7684\u6700\u5c0f\u6574\u6570\u503c\u3002\n\n### COS()\n\u8fd4\u56de\u53c2\u6570\u7684\u4f59\u5f26\u503c\u3002\n\n### CRC32()\n\u8fd4\u56de\u5b57\u7b26\u4e32\u53c2\u6570\u7684CRC32\u503c\u3002\n\n### EXP()\n\u8fd4\u56de\u53c2\u6570\u7684\u6307\u6570\uff08e=2.718... \u7684\u5e42\uff09\u3002\n\n### FIBONACCI()\n\u8fd4\u56de\u7b2cN\u4e2a\u6590\u6ce2\u90a3\u5951\u6570\uff0c\u5176\u4e2dN\u662f\u6574\u6570\u53c2\u6570\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u53c2\u6570\u4e3a0\u548c\u4ee5\u4e0a\u5c06\u751f\u62100, 1, 1, 2, 3, 5, 8, 13\u7b49\u503c\u3002\u6ce8\u610f\u8ba1\u7b97\u4f7f\u752832\u4f4d\u6574\u6570\u6570\u5b66\uff0c\u56e0\u6b64\u4ece\u7b2c48\u4e2a\u6570\u5b57\u5f00\u59cb\u8fd4\u56de\u6a212^32\u7684\u7ed3\u679c\u3002\n\n### FLOOR()\n\u8fd4\u56de\u5c0f\u4e8e\u6216\u7b49\u4e8e\u53c2\u6570\u7684\u6700\u5927\u6574\u6570\u503c\u3002\n\n### GREATEST()\n`GREATEST(attr_json.some_array)` \u51fd\u6570\u4ee5JSON\u6570\u7ec4\u4f5c\u4e3a\u53c2\u6570\uff0c\u5e76\u8fd4\u56de\u8be5\u6570\u7ec4\u4e2d\u7684\u6700\u5927\u503c\u3002\u4e5f\u9002\u7528\u4e8eMVA\u3002\n\n### IDIV()\n\u8fd4\u56de\u7b2c\u4e00\u4e2a\u53c2\u6570\u9664\u4ee5\u7b2c\u4e8c\u4e2a\u53c2\u6570\u7684\u6574\u6570\u7ed3\u679c\u3002\u4e24\u4e2a\u53c2\u6570\u90fd\u5fc5\u987b\u662f\u6574\u6570\u7c7b\u578b\u3002\n\n### LEAST()\n`LEAST(attr_json.some_array)` \u51fd\u6570\u4ee5JSON\u6570\u7ec4\u4f5c\u4e3a\u53c2\u6570\uff0c\u5e76\u8fd4\u56de\u8be5\u6570\u7ec4\u4e2d\u7684\u6700\u5c0f\u503c\u3002\u4e5f\u9002\u7528\u4e8eMVA\u3002\n\n### LN()\n\u8fd4\u56de\u53c2\u6570\u7684\u81ea\u7136\u5bf9\u6570\uff08\u5e95\u6570\u4e3ae=2.718...\uff09\u3002\n\n### LOG10()\n\u8fd4\u56de\u53c2\u6570\u7684\u5e38\u7528\u5bf9\u6570\uff08\u5e95\u6570\u4e3a10\uff09\u3002\n\n### LOG2()\n\u8fd4\u56de\u53c2\u6570\u7684\u4e8c\u8fdb\u5236\u5bf9\u6570\uff08\u5e95\u6570\u4e3a2\uff09\u3002\n\n### MAX()\n\u8fd4\u56de\u4e24\u4e2a\u53c2\u6570\u4e2d\u8f83\u5927\u7684\u4e00\u4e2a\u3002\n\n### MIN()\n\u8fd4\u56de\u4e24\u4e2a\u53c2\u6570\u4e2d\u8f83\u5c0f\u7684\u4e00\u4e2a\u3002\n\n## POW()\n\u8fd4\u56de\u7b2c\u4e00\u4e2a\u53c2\u6570\u7684\u7b2c\u4e8c\u4e2a\u53c2\u6570\u6b21\u65b9\u3002\n### RAND()\n\u8fd4\u56de\u4ecb\u4e8e0\u548c1\u4e4b\u95f4\u7684\u968f\u673a\u6d6e\u70b9\u6570\u3002\u53ef\u4ee5\u53ef\u9009\u5730\u63a5\u53d7\u4e00\u4e2a`seed`\uff0c\u5b83\u53ef\u4ee5\u662f\u4e00\u4e2a\u5e38\u91cf\u6574\u6570\u6216\u4e00\u4e2a\u6574\u6570\u5c5e\u6027\u7684\u540d\u79f0\u3002\n\n\u5982\u679c\u60a8\u4f7f\u7528\u4e86`seed`\uff0c\u8bf7\u8bb0\u4f4f\u5b83\u4f1a\u5206\u522b\u91cd\u7f6e`rand()`\u7684\u8d77\u59cb\u70b9\uff0c\u5bf9\u4e8e\u6bcf\u4e2a\u666e\u901a\u8868\u3001RT\u78c1\u76d8\u3001RAM\u5757\u6216\u4f2a\u5206\u7247\u3002\u56e0\u6b64\uff0c\u4efb\u4f55\u5f62\u5f0f\u7684\u5206\u5e03\u5f0f\u8868\u67e5\u8be2\u53ef\u80fd\u4f1a\u8fd4\u56de\u591a\u4e2a\u76f8\u540c\u7684\u968f\u673a\u503c\u3002\n\n### SIN()\n\u8fd4\u56de\u53c2\u6570\u7684\u6b63\u5f26\u503c\u3002\n\n### SQRT()\n\u8fd4\u56de\u53c2\u6570\u7684\u5e73\u65b9\u6839\u3002\n\n<!-- proofread -->",
  6. "russian": "# \u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438\n\n### ABS()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430.\n\n### ATAN2()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0430\u0440\u043a\u0442\u0430\u043d\u0433\u0435\u043d\u0441 \u043e\u0442 \u0434\u0432\u0443\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u043d\u044b\u0439 \u0432 **\u0440\u0430\u0434\u0438\u0430\u043d\u0430\u0445**.\n\n### BITDOT()\n`BITDOT(mask, w0, w1, ...)` \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0443\u043c\u043c\u0443 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0431\u0438\u0442\u0430 \u043c\u0430\u0441\u043a\u0438 \u043d\u0430 \u0435\u0433\u043e \u0432\u0435\u0441. `bit0*w0 + bit1*w1 + ...`\n\n### CEIL()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u0446\u0435\u043b\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0443.\n\n### COS()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u0441\u0438\u043d\u0443\u0441 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430.\n\n### CRC32()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 CRC32 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430.\n\n### EXP()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 (e=2.718... \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430).\n\n### FIBONACCI()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 N-\u0435 \u0447\u0438\u0441\u043b\u043e \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0447\u0438, \u0433\u0434\u0435 N \u2014 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442. \u0422\u043e \u0435\u0441\u0442\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043e\u0442 0 \u0438 \u0432\u044b\u0448\u0435 \u0431\u0443\u0434\u0443\u0442 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f 0, 1, 1, 2, 3, 5, 8, 13 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c 32-\u0431\u0438\u0442\u043d\u043e\u0439 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0439 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0447\u0438\u0441\u043b\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 48-\u0433\u043e \u0431\u0443\u0434\u0443\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u044b \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e 2^32.\n\n### FLOOR()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0446\u0435\u043b\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0443.\n\n### GREATEST()\n\u0424\u0443\u043d\u043a\u0446\u0438\u044f `GREATEST(attr_json.some_array)` \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0441\u0438\u0432 JSON \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u044d\u0442\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435. \u0422\u0430\u043a\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u043b\u044f MVA.\n\n### IDIV()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442. \u041e\u0431\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430.\n\n### LEAST()\n\u0424\u0443\u043d\u043a\u0446\u0438\u044f `LEAST(attr_json.some_array)` \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0441\u0438\u0432 JSON \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u044d\u0442\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435. \u0422\u0430\u043a\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u043b\u044f MVA.\n\n### LN()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0439 \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 (\u0441 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0435\u043c e=2.718...).\n\n### LOG10()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439 \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 (\u0441 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0435\u043c 10).\n\n### LOG2()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0439 \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 (\u0441 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0435\u043c 2).\n\n### MAX()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432.\n\n### MIN()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0438\u0439 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432.\n\n## POW()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442, \u0432\u043e\u0437\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0439 \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430.\n### RAND()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u043e\u0442 0 \u0434\u043e 1. \u041c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 `seed` (\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043e\u0439 \u0438\u043b\u0438 \u0438\u043c\u0435\u043d\u0435\u043c \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430.\n\n\u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 `seed`, \u0438\u043c\u0435\u0439\u0442\u0435 \u0432 \u0432\u0438\u0434\u0443, \u0447\u0442\u043e \u043e\u043d \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u0442\u043e\u0447\u043a\u0443 `rand()` \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, RT-\u0434\u0438\u0441\u043a\u0430, RAM-\u0447\u0430\u043d\u043a\u0430 \u0438\u043b\u0438 \u043f\u0441\u0435\u0432\u0434\u043e\u0448\u0430\u0440\u0434\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0432 \u043b\u044e\u0431\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u043c\u043e\u0433\u0443\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439.\n\n### SIN()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0438\u043d\u0443\u0441 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430.\n\n### SQRT()\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0439 \u043a\u043e\u0440\u0435\u043d\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430.\n\n<!-- proofread -->\n\n"
  7. },
  8. "is_code_or_comment": false,
  9. "model": "deepseek/deepseek-v3.2",
  10. "updated_at": 1766411705
  11. },
  12. "__meta": {
  13. "source_text": "# Mathematical functions\n\n### ABS()\nReturns the absolute value of the argument.\n\n### ATAN2()\nReturns the arctangent function of two arguments, expressed in **radians**.\n\n### BITDOT()\n`BITDOT(mask, w0, w1, ...)` returns the sum of products of each bit of a mask multiplied by its weight. `bit0*w0 + bit1*w1 + ...`\n\n### CEIL()\nReturns the smallest integer value greater than or equal to the argument.\n\n### COS()\nReturns the cosine of the argument.\n\n### CRC32()\nReturns the CRC32 value of a string argument.\n\n### EXP()\nReturns the exponent of the argument (e=2.718... to the power of the argument).\n\n### FIBONACCI()\nReturns the N-th Fibonacci number, where N is the integer argument. That is, arguments of 0 and up will generate the values 0, 1, 1, 2, 3, 5, 8, 13 and so on. Note that the computations are done using 32-bit integer math and thus numbers 48th and up will be returned modulo 2^32.\n\n### FLOOR()\nReturns the largest integer value lesser than or equal to the argument.\n\n### GREATEST()\n`GREATEST(attr_json.some_array)` function takes a JSON array as the argument, and returns the greatest value in that array. Also works for MVA.\n\n### IDIV()\nReturns the result of an integer division of the first argument by the second argument. Both arguments must be of an integer type.\n\n### LEAST()\n`LEAST(attr_json.some_array)` function takes a JSON array as the argument, and returns the least value in that array. Also works for MVA.\n\n### LN()\nReturns the natural logarithm of the argument (with the base of e=2.718...).\n\n### LOG10()\nReturns the common logarithm of the argument (with the base of 10).\n\n### LOG2()\nReturns the binary logarithm of the argument (with the base of 2).\n\n### MAX()\nReturns the larger of two arguments.\n\n### MIN()\nReturns the smaller of two arguments.\n\n## POW()\nReturns the first argument raised to the power of the second argument.\n### RAND()\nReturns a random float between 0 and 1. It can optionally accept a `seed`, which can be a constant integer or an integer attribute's name.\n\nIf you use a `seed`, keep in mind that it resets `rand()`'s starting point separately for each plain table, RT disk, RAM chunk, or pseudo shard. Therefore, queries to a distributed table in any form can return multiple identical random values.\n\n### SIN()\nReturns the sine of the argument.\n\n### SQRT()\nReturns the square root of the argument.\n\n<!-- proofread -->\n\n",
  14. "updated_at": 1768530797,
  15. "source_md5": "f53b4c1e61c3d24f51cc81fd3e52fd09"
  16. }
  17. }