Contents
Previous
Next
Subchapters
Current Chapters->
acos
asin
atan
cos
cosh
exp
log
log10
sin
sinh
tan
tanh
log2
pow2
atan2
angle
asinh
acosh
atanh
hypot
Parent Chapters->
Omatrix6
elementary
transcendental
cos
Search Tools->
contents
reference
index
search
Cosine Function
Syntax
cos(
angle
)
See Also
acos
,
sin
,
tan
,
cosh
Description
Returns the
element-by-element
cosine of
angle
, where
angle
is a real, double-precision matrix, or complex matrix expressed in radians.
Example
cos([-PI / 3, 0, PI / 3])
returns
[ 0.5 , 1 , 0.5 ]