{"id":19053735,"url":"https://github.com/siddhi-io/siddhi-execution-math","last_synced_at":"2025-04-24T03:06:46.783Z","repository":{"id":43099130,"uuid":"74111501","full_name":"siddhi-io/siddhi-execution-math","owner":"siddhi-io","description":"Extension which provides useful mathematical functions","archived":false,"fork":false,"pushed_at":"2022-03-18T10:45:18.000Z","size":2156,"stargazers_count":1,"open_issues_count":1,"forks_count":27,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-04-24T03:06:40.393Z","etag":null,"topics":["execution","expression-evaluator","extension","math","siddhi","utility"],"latest_commit_sha":null,"homepage":"https://siddhi-io.github.io/siddhi-execution-math","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/siddhi-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-18T08:44:37.000Z","updated_at":"2022-03-18T10:22:45.000Z","dependencies_parsed_at":"2022-08-23T22:40:43.931Z","dependency_job_id":null,"html_url":"https://github.com/siddhi-io/siddhi-execution-math","commit_stats":null,"previous_names":["wso2-extensions/siddhi-execution-math"],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddhi-io%2Fsiddhi-execution-math","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddhi-io%2Fsiddhi-execution-math/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddhi-io%2Fsiddhi-execution-math/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddhi-io%2Fsiddhi-execution-math/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siddhi-io","download_url":"https://codeload.github.com/siddhi-io/siddhi-execution-math/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250552072,"owners_count":21449164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["execution","expression-evaluator","extension","math","siddhi","utility"],"created_at":"2024-11-08T23:33:49.546Z","updated_at":"2025-04-24T03:06:46.759Z","avatar_url":"https://github.com/siddhi-io.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Siddhi Execution Math\n======================================\n\n  [![Jenkins Build Status](https://wso2.org/jenkins/job/siddhi/job/siddhi-execution-math/badge/icon)](https://wso2.org/jenkins/job/siddhi/job/siddhi-execution-math/)\n  [![GitHub Release](https://img.shields.io/github/release/siddhi-io/siddhi-execution-math.svg)](https://github.com/siddhi-io/siddhi-execution-math/releases)\n  [![GitHub Release Date](https://img.shields.io/github/release-date/siddhi-io/siddhi-execution-math.svg)](https://github.com/siddhi-io/siddhi-execution-math/releases)\n  [![GitHub Open Issues](https://img.shields.io/github/issues-raw/siddhi-io/siddhi-execution-math.svg)](https://github.com/siddhi-io/siddhi-execution-math/issues)\n  [![GitHub Last Commit](https://img.shields.io/github/last-commit/siddhi-io/siddhi-execution-math.svg)](https://github.com/siddhi-io/siddhi-execution-math/commits/master)\n  [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nThe **siddhi-execution-math extension** is a \u003ca target=\"_blank\" href=\"https://siddhi.io/\"\u003eSiddhi\u003c/a\u003e extension that provides useful mathematical functions such as power, round, random, cos, log, etc.\n\nFor information on \u003ca target=\"_blank\" href=\"https://siddhi.io/\"\u003eSiddhi\u003c/a\u003e and it's features refer \u003ca target=\"_blank\" href=\"https://siddhi.io/redirect/docs.html\"\u003eSiddhi Documentation\u003c/a\u003e. \n\n## Download\n\n* Versions 5.x and above with group id `io.siddhi.extension.*` from \u003ca target=\"_blank\" href=\"https://mvnrepository.com/artifact/io.siddhi.extension.execution.math/siddhi-execution-math/\"\u003ehere\u003c/a\u003e.\n* Versions 4.x and lower with group id `org.wso2.extension.siddhi.*` from \u003ca target=\"_blank\" href=\"https://mvnrepository.com/artifact/org.wso2.extension.siddhi.execution.math/siddhi-execution-math\"\u003ehere\u003c/a\u003e.\n\n## Latest API Docs \n\nLatest API Docs is \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6\"\u003e5.0.6\u003c/a\u003e.\n\n## Features\n\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#percentile-aggregate-function\"\u003epercentile\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#aggregate-function\"\u003eAggregate Function\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis functions returns the pth percentile value of a given argument.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#abs-function\"\u003eabs\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the absolute value of the given parameter. It wraps the \u003ccode\u003ejava.lang.Math.abs()\u003c/code\u003e function.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#acos-function\"\u003eacos\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eIf -1 \u0026lt;= p1 \u0026lt;= 1, this function returns the arc-cosine (inverse cosine) value of p1.If the domain is invalid, it returns NULL. The value returned is in radian scale. This function wraps the java.lang.Math.acos() function.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#asin-function\"\u003easin\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eIf -1 \u0026lt;= p1 \u0026lt;= 1, this function returns the arc-sin (inverse sine) value of p1. If the domain is invalid, it returns NULL. The value returned is in radian scale. This function wraps the java.lang.Math.asin() function.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#atan-function\"\u003eatan\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003e1. If a single \u003ccode\u003ep1\u003c/code\u003e is received, this function returns the arc-tangent (inverse tangent) value of \u003ccode\u003ep1\u003c/code\u003e. \u003cbr\u003e2. If \u003ccode\u003ep1\u003c/code\u003e is received along with an optional \u003ccode\u003ep1\u003c/code\u003e, it considers them as x and y coordinates and returns the arc-tangent (inverse tangent) value. \u003cbr\u003eThe returned value is in radian scale. This function wraps the \u003ccode\u003ejava.lang.Math.atan()\u003c/code\u003e function.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#bin-function\"\u003ebin\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns a string representation of the p1 argument, that is of either 'integer' or 'long' data type, as an unsigned integer in base 2. It wraps the \u003ccode\u003ejava.lang.Integer.toBinaryString\u003c/code\u003e and java.lang.Long.toBinaryString` methods.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#cbrt-function\"\u003ecbrt\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the cube-root of 'p1' which is in radians. It wraps the \u003ccode\u003ejava.lang.Math.cbrt()\u003c/code\u003e function.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#ceil-function\"\u003eceil\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the smallest double value, i.e., the closest to the negative infinity, that is greater than or equal to the \u003ccode\u003ep1\u003c/code\u003e argument, and is equal to a mathematical integer. It wraps the \u003ccode\u003ejava.lang.Math.ceil()\u003c/code\u003e method.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#conv-function\"\u003econv\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function converts \u003ccode\u003ea\u003c/code\u003e from the \u003ccode\u003efromBase\u003c/code\u003e base to the \u003ccode\u003etoBase\u003c/code\u003e base.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#copysign-function\"\u003ecopySign\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns a value of an input with the received \u003ccode\u003emagnitude\u003c/code\u003e and \u003ccode\u003esign\u003c/code\u003e of another input. It wraps the \u003ccode\u003ejava.lang.Math.copySign()\u003c/code\u003e function.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#cos-function\"\u003ecos\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the cosine of \u003ccode\u003ep1\u003c/code\u003e which is in radians. It wraps the \u003ccode\u003ejava.lang.Math.cos()\u003c/code\u003e function.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#cosh-function\"\u003ecosh\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the hyperbolic cosine of \u003ccode\u003ep1\u003c/code\u003e which is in radians. It wraps the \u003ccode\u003ejava.lang.Math.cosh()\u003c/code\u003e function.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#e-function\"\u003ee\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the \u003ccode\u003ejava.lang.Math.E\u003c/code\u003e constant, which is the closest double value to e, where e is the base of the natural logarithms. \u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#exp-function\"\u003eexp\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the Euler's number \u003ccode\u003ee\u003c/code\u003e raised to the power of \u003ccode\u003ep1\u003c/code\u003e. It wraps the \u003ccode\u003ejava.lang.Math.exp()\u003c/code\u003e function.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#floor-function\"\u003efloor\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function wraps the \u003ccode\u003ejava.lang.Math.floor()\u003c/code\u003e function and returns the largest value, i.e., closest to the positive infinity, that is less than or equal to \u003ccode\u003ep1\u003c/code\u003e, and is equal to a mathematical integer.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#getexponent-function\"\u003egetExponent\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the unbiased exponent that is used in the representation of \u003ccode\u003ep1\u003c/code\u003e. This function wraps the \u003ccode\u003ejava.lang.Math.getExponent()\u003c/code\u003e function.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#hex-function\"\u003ehex\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function wraps the \u003ccode\u003ejava.lang.Double.toHexString() function. It returns a hexadecimal string representation of the input, \u003c/code\u003ep1`.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#isinfinite-function\"\u003eisInfinite\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function wraps the \u003ccode\u003ejava.lang.Float.isInfinite()\u003c/code\u003e and \u003ccode\u003ejava.lang.Double.isInfinite()\u003c/code\u003e and returns \u003ccode\u003etrue\u003c/code\u003e if \u003ccode\u003ep1\u003c/code\u003e is infinitely large in magnitude and \u003ccode\u003efalse\u003c/code\u003e if otherwise.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#isnan-function\"\u003eisNan\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function wraps the \u003ccode\u003ejava.lang.Float.isNaN()\u003c/code\u003e and \u003ccode\u003ejava.lang.Double.isNaN()\u003c/code\u003e functions and returns \u003ccode\u003etrue\u003c/code\u003e if \u003ccode\u003ep1\u003c/code\u003e is NaN (Not-a-Number), and returns \u003ccode\u003efalse\u003c/code\u003e if otherwise.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#ln-function\"\u003eln\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the natural logarithm (base e) of \u003ccode\u003ep1\u003c/code\u003e.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#log-function\"\u003elog\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the logarithm of the received \u003ccode\u003enumber\u003c/code\u003e as per the given \u003ccode\u003ebase\u003c/code\u003e.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#log10-function\"\u003elog10\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the base 10 logarithm of \u003ccode\u003ep1\u003c/code\u003e.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#log2-function\"\u003elog2\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the base 2 logarithm of \u003ccode\u003ep1\u003c/code\u003e.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#max-function\"\u003emax\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the greater value of \u003ccode\u003ep1\u003c/code\u003e and \u003ccode\u003ep2\u003c/code\u003e.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#min-function\"\u003emin\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the smaller value of \u003ccode\u003ep1\u003c/code\u003e and \u003ccode\u003ep2\u003c/code\u003e.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#oct-function\"\u003eoct\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function converts the input parameter \u003ccode\u003ep1\u003c/code\u003e to octal.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#parsedouble-function\"\u003eparseDouble\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the double value of the string received.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#parsefloat-function\"\u003eparseFloat\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the float value of the received string.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#parseint-function\"\u003eparseInt\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the integer value of the received string.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#parselong-function\"\u003eparseLong\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the long value of the string received.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#pi-function\"\u003epi\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the \u003ccode\u003ejava.lang.Math.PI\u003c/code\u003e constant, which is the closest value to pi, i.e., the ratio of the circumference of a circle to its diameter. \u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#power-function\"\u003epower\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function raises the given value to a given power.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#rand-function\"\u003erand\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis returns a stream of pseudo-random numbers when a sequence of calls are sent to the \u003ccode\u003erand()\u003c/code\u003e. Optionally, it is possible to define a seed, i.e., \u003ccode\u003erand(seed)\u003c/code\u003e using which the pseudo-random numbers are generated. These functions internally use the \u003ccode\u003ejava.util.Random\u003c/code\u003e class.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#round-function\"\u003eround\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the value of the input argument rounded off to the closest integer/long value.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#signum-function\"\u003esignum\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis returns +1, 0, or -1 for the given positive, zero and negative values respectively. This function wraps the \u003ccode\u003ejava.lang.Math.signum()\u003c/code\u003e function.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#sin-function\"\u003esin\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis returns the sine of the value given in radians. This function wraps the \u003ccode\u003ejava.lang.Math.sin()\u003c/code\u003e function.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#sinh-function\"\u003esinh\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis returns the hyperbolic sine of the value given in radians. This function wraps the \u003ccode\u003ejava.lang.Math.sinh()\u003c/code\u003e function. \u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#sqrt-function\"\u003esqrt\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the square-root of the given value. It wraps the \u003ccode\u003ejava.lang.Math.sqrt()\u003c/code\u003es function.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#tan-function\"\u003etan\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the tan of the given value in radians. It wraps the \u003ccode\u003ejava.lang.Math.tan()\u003c/code\u003e function.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#tanh-function\"\u003etanh\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function returns the hyperbolic tangent of the value given in radians. It wraps the \u003ccode\u003ejava.lang.Math.tanh()\u003c/code\u003e function.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#todegrees-function\"\u003etoDegrees\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function converts the value given in radians to degrees. It wraps the \u003ccode\u003ejava.lang.Math.toDegrees()\u003c/code\u003e function.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n* \u003ca target=\"_blank\" href=\"https://siddhi-io.github.io/siddhi-execution-math/api/5.0.6/#toradians-function\"\u003etoRadians\u003c/a\u003e *(\u003ca target=\"_blank\" href=\"http://siddhi.io/en/v5.1/docs/query-guide/#function\"\u003eFunction\u003c/a\u003e)*\u003cbr\u003e \u003cdiv style=\"padding-left: 1em;\"\u003e\u003cp\u003e\u003cp style=\"word-wrap: break-word;margin: 0;\"\u003eThis function converts the value given in degrees to radians. It wraps the \u003ccode\u003ejava.lang.Math.toRadians()\u003c/code\u003e function.\u003c/p\u003e\u003c/p\u003e\u003c/div\u003e\n\n## Dependencies \n\nThere are no other dependencies needed for this extension. \n\n## Installation\n\nFor installing this extension on various siddhi execution environments refer Siddhi documentation section on \u003ca target=\"_blank\" href=\"https://siddhi.io/redirect/add-extensions.html\"\u003eadding extensions\u003c/a\u003e.\n\n## Support and Contribution\n\n* We encourage users to ask questions and get support via \u003ca target=\"_blank\" href=\"https://stackoverflow.com/questions/tagged/siddhi\"\u003eStackOverflow\u003c/a\u003e, make sure to add the `siddhi` tag to the issue for better response.\n\n* If you find any issues related to the extension please report them on \u003ca target=\"_blank\" href=\"https://github.com/siddhi-io/siddhi-execution-math/issues\"\u003ethe issue tracker\u003c/a\u003e.\n\n* For production support and other contribution related information refer \u003ca target=\"_blank\" href=\"https://siddhi.io/community/\"\u003eSiddhi Community\u003c/a\u003e documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddhi-io%2Fsiddhi-execution-math","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiddhi-io%2Fsiddhi-execution-math","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddhi-io%2Fsiddhi-execution-math/lists"}