# Math

This is the Math package.

## Functions

### sin

```Math.sin(\$Î¸: Num)
```

Domain: `â`

Range: `[-1, 1]`.

### asin

```Math.asin(\$num: Num)
```

Inverse sine.

Domain: `[-1, 1]`

Range: `â`.

### cos

```Math.cos(\$Î¸: Num)
```

Domain: `â`

Range: `[-1, 1]`.

### acos

```Math.acos(\$num: Num)
```

Inverse cosine.

Domain: `[-1, 1]`

Range: `[0, Ï]`.

### tan

```Math.tan(\$Î¸: Num)
```

Domain: `x â  Ï/2 + kÏ` for all integers `k`

Range: `â`.

### atan2

```Math.atan2(\$y: Num, \$x: Num)
```

Two-argument inverse tangent.

Domain: `â`

Range: `(-Ï, Ï]`

`atan2(y, x) =`

```atan(y/x)           x > 0
atan(y/x) + Ï       x < 0 and y â¥ 0
atan(y/x) - Ï       x < 0 and y < 0
Ï/2                 x = 0 and y > 0
-Ï/2                x = 0 and y < 0
indeterminate       x = 0 and y = 0
```

Note that `atan2(0, 0)` is not well-defined.

### atan

```Math.atan(\$num: Num)
```

Inverse tangent.

Domain: `â`

Range: `(-Ï/2, Ï/2)`

Note that the range of this function is `(-Ï/2, Ï/2)`, unlike `atan2()` which adjusts to the proper quadrant.

### sec

```Math.sec(\$Î¸: Num)
```

Domain: `x â  Ï/2 + kÏ` for all integers `k`

Range: `(ââ, â1] âª [1, â)`.

### csc

```Math.csc(\$Î¸: Num)
```

Domain: `x â  kÏ` for all integers `k`

Range: `(ââ, â1] âª [1, â)`.

### cot

```Math.cot(\$Î¸: Num)
```

Domain: `x â  kÏ` for all integers `k`

Range: `â`.

### log

```Math.log(\$num: Num)
```

Natural logarithm (base e).

### log10

```Math.log10(\$num: Num)
```

Log base 10.

### logb

```Math.logb(\$base: Num, \$num: Num)
```

Log base `\$base`.

### exp

```Math.exp(\$num: Num)
```

Takes `e` (the base of the natural logarithm) to a power.

## Shared variables

### ÃÂ

```Math.Ï
```

Ratio of a circle's circumference to it's diameter.

### pi

```Math.pi
```

Alias for `Math.Ï`.

### e

```Math.e
```

Base of the natural logarithm.

End of the Math package.

This file was generated automatically by the Ferret compiler from Math.frt.