Skip to main content

Math functions

cos

Commentary

added in 0.0.33

Generates the trigonometric cosine of degrees. You can also use this function through an infix math expression.


Examples

Applying cosine

{
"_gen": "cos",
"degrees": 45
}
[
0.7071067811865476
]

Specification

JSON schema

{
"type": "object",
"properties": {
"degrees": {
"oneOf": [
{
"type": "number"
},
{
"type": "object",
"properties": {
"_gen": {
"type": "string"
}
},
"required": [
"_gen"
]
}
]
}
},
"required": [
"degrees"
]
}