Files
Digpkg/math/docs/trig/cos.md
2026-01-23 16:47:56 +11:00

249 B

math_Cos

Get the cosine of a certain amount of radians.

Arguments

  • x (double): Number (in radians)

Returns

result (double): The cosine of the number in radians

Example

call !math_Cos 3.14159 &result 
println $result # -1