{
"id": "fn-math-cos",
"dataComponent": "math",
"heading": {
"title": "cos",
"badges": ["Math", "JSMath"]
},
"synopsis": "Returns the cosine (in radians) of a single numeric argument.",
"codeBlocks": [
"extend(\"math\")\\n\\nsput( math:cos(0) )\\n# => 1.0\\n\\nsput( math:cos(3.14159) )\\n# => ~-1.0\\n"
],
"notes": [
"One argument only. Interpreted as radians. Returns a float cos(x)."
]
}