HH\Lib\Math\cos
Requires the Hack Standard Library to be installed.
Facebook Engineer?
This function is available as Math\cos()
in Facebook's www repository.
Returns the cosine of $arg
namespace HH\Lib\Math;
function cos(
num $arg,
): float;
- To find the sine, see
Math\sin()
. - To find the tangent, see
Math\tan()
.
Parameters
num $arg
Returns
float