Capy-Bearer Documentation

cos

host call

Capy

function cos(value : f32) f32
function cos(value : f64) f64

Description

cos() returns the host math result for value.

This function uses a host call.

Parameters

value : the input value

Return Values

An f32 or f64 value.

Example

Capy

var value := cos(2.0)
print(value, "\n")