#738 ms Comment 738 cos and sin are expecting radians, angles as fractions of 2pi. The variants of the functions expecting degrees end in "-d", for example julia> [1 0 0; 0 cosd(90) sind(90); 0 -sind(90) cosd(90)] 3x3 Array{Float64,2}: 1.0 0.0 0.0 0.0 0.0 1.0 0.0 -1.0 0.0 url:Seven More Languages: Julia Day One 2015-11-11
cos and sin are expecting radians, angles as fractions of 2pi. The variants of the functions expecting degrees end in "-d", for example
julia> [1 0 0; 0 cosd(90) sind(90); 0 -sind(90) cosd(90)] 3x3 Array{Float64,2}: 1.0 0.0 0.0 0.0 0.0 1.0 0.0 -1.0 0.0