Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - Русский - 日本語
Scilab Help >> Elementary Functions > Trigonometry > cosd

cosd

element-wise cosine function, argument in degree

Syntax

y = cosd(x)

Arguments

x

a real vector/matrix.

Description

For a vector or a matrix x of angles given in degree, cosd(x) is the cosine of its elements. The results are in [-1 1]. For input elements which are equal to n*90 with n integer and odd, the result is exactly zero.

Sample

Examples

x=[0,30 45 60 90 360];
cosd(x)

See Also

  • cos — cosine function
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:27:34 CEST 2016