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 - 日本語 - Русский

Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Elementary Functions > Trigonometry > cotd


element-wise cotangent function, argument in degree

Calling Sequence

y = cotd(x)



a real array.


a real array with same dimensions as x.


The entries of y are the cotangents of the corresponding entries of x supposed to be given in degree. t=cos(x)./sin(x). For entries equal to n*180 with n integers the results are infinite, whereas cotg(n*%pi) is large but finite because %pi cannot be represented exactly. For entries equal to n*90 with n integers and odd the results are exactly 0.


x=[30 45 60 90];

See Also

Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Apr 02 17:36:21 CEST 2013