simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

cot.md (831B)


      1 <!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
      2 
      3 # Function cot
      4 
      5 Calculate the cotangent of a value. Defined as `cot(x) = 1 / tan(x)`.
      6 
      7 For matrices, the function is evaluated element wise.
      8 
      9 
     10 ## Syntax
     11 
     12 ```js
     13 math.cot(x)
     14 ```
     15 
     16 ### Parameters
     17 
     18 Parameter | Type | Description
     19 --------- | ---- | -----------
     20 `x` | number &#124; Complex &#124; Unit &#124; Array &#124; Matrix | Function input
     21 
     22 ### Returns
     23 
     24 Type | Description
     25 ---- | -----------
     26 number &#124; Complex &#124; Array &#124; Matrix | Cotangent of x
     27 
     28 
     29 ### Throws
     30 
     31 Type | Description
     32 ---- | -----------
     33 
     34 
     35 ## Examples
     36 
     37 ```js
     38 math.cot(2)      // returns number -0.45765755436028577
     39 1 / math.tan(2)  // returns number -0.45765755436028577
     40 ```
     41 
     42 
     43 ## See also
     44 
     45 [tan](tan.md),
     46 [sec](sec.md),
     47 [csc](csc.md)