Files
divkit/test_data/expression_test_data/function_signatures_trigonometry.json
grechka62 4ff38816cc Add asin() trigonometric function
Pull Request resolved: https://github.com/divkit/divkit/pull/95
commit_hash:58f56cf3d93b4a741ed4da07ca873548f6004bd5
2025-04-11 19:36:35 +03:00

159 lines
3.3 KiB
JSON

{
"signatures": [
{
"function_name": "pi",
"doc": "Returns value of the `π`: ratio of the circumference of a circle to its diameter",
"result_type": "number",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "toRadians",
"doc": "Converts the argument value from degrees to radians",
"arguments": [
{
"type": "number",
"doc": "Number value representing degrees."
}
],
"result_type": "number",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "toDegrees",
"doc": "Converts the argument value from radians to degrees",
"arguments": [
{
"type": "number",
"doc": "Number value representing radians."
}
],
"result_type": "number",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "sin",
"doc": "Calculates the sine of the given angle in radians",
"arguments": [
{
"type": "number",
"doc": "Angle in radians."
}
],
"result_type": "number",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "cos",
"doc": "Calculates the cosine of the given angle in radians",
"arguments": [
{
"type": "number",
"doc": "Angle in radians."
}
],
"result_type": "number",
"platforms": [
"android",
"ios",
"web"
]
},
{
"function_name": "tan",
"doc": "Calculates the tangent of the given angle in radians",
"arguments": [
{
"type": "number",
"doc": "Angle in radians."
}
],
"result_type": "number",
"platforms": [
"ios",
"web"
]
},
{
"function_name": "asin",
"doc": "Calculates the angle in radians of the given sine value",
"arguments": [
{
"type": "number",
"doc": "Sine value."
}
],
"result_type": "number",
"platforms": [
"android",
"ios",
"web"
]
},
{
"function_name": "acos",
"doc": "Calculates the angle in radians of the given cosine value",
"arguments": [
{
"type": "number",
"doc": "Cosine value."
}
],
"result_type": "number",
"platforms": [
"ios",
"web"
]
},
{
"function_name": "atan",
"doc": "Calculates the angle in radians for a given tangent value",
"arguments": [
{
"type": "number",
"doc": "Tangent value."
}
],
"result_type": "number",
"platforms": [
"ios",
"web"
]
},
{
"function_name": "cot",
"doc": "Calculates the cotangent of the given angle in radians",
"arguments": [
{
"type": "number",
"doc": "Angle in radians."
}
],
"result_type": "number",
"platforms": [
"ios",
"web"
]
}
]
}