cos
The cosine (hint_math).
Flags
| Flag | Value |
|---|---|
| Kind | scalar |
| Nulls | a null argument gives null |
| Deterministic | yes |
| Order matters | no |
| Decomposable | no |
Example
A pipeline from the language's tested corpus that uses cos, over the example tables.
from orders
derive {a = sin(price ?? 0e0), b = cos(price ?? 0e0), c = atan2(price ?? 0e0, 1e0), d = erf(5e-1), g = lgamma(price ?? 1e0), p = pow(price ?? 0e0, 2e0)}In a plan:
{
"args": [
{
"args": [
{
"col": 4
},
{
"lit": 0,
"type": {
"kind": "float64"
}
}
],
"fn": "coalesce"
}
],
"fn": "cos"
}