suve

awful: function: cos

Declaration

float :cos ( float $RADIANS )
float :cos ( int $DEGREES )

Summary

Returns the cosine of given angle.

Example

# :cos example. Results should be equal.
!const =PI f3.1415926535
:writeln :cos :mul f0.25 =PI   # Pi/4 
:writeln :cos i45              # 45 degrees

wikipage modified on 2014/0601/2317