Navigation
Synopsis Calculate the cosine of a numeric value.
Function real cos(num x)
Usage import util::Math;
Description The cosine of the number x.
Examples
rascal>import util::Math;
ok
rascal>cos(1.0)
real: 0.54030230588
rascal>cos(60 * PI() / 180)
real: 0.50000000000
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.