HomeManualTopicsTypesSymbols

std::cos

returns the cosine of the given angle

Parameter

angle: a (real) numeric value

Result

result: the cosine of the given angle

Example

println! cos(PI/2)

Output

0

Topic

Numbers

See also

std::sin returns the sine of the given angle
std::tan returns the tangent of the given angle
std::acos returns the arccosine of the given value
std::asin returns the arcsine of the given value
std::atan returns the arctangent of the given value