packages feed

spade-0.1.0.9: docs/functions/math.md

### Math Functions


#### sin

The trignometric sine function. Accepts an angle in degrees and return it's sine value

#### cos

The trignometric cosine function. Accepts an angle in degrees and return it's cosine value

#### tan

The trignometric tangent function. Accepts an angle in degrees and return it's tan value

#### asin

The trignometric arc sine function. Returns an angle in degrees.

#### acos

The trignometric arc cosine function. Returns an angle in degrees.

#### atan

The trignometric arc tangent function. Returns an angle in degrees.

#### mod

The modulus function.

#### random

`random(a1, a2)` returns a random number `x` such that `a1 <= x <= a2`

#### round

Rounds the argument to the nearest integer.

#### pow

Power of function.

#### hash

Computes the hash using algorith specified and of input bytes. Right now only support following algorithms.

1. md5

#### hashinit

Initialize a hash context for incremental hashing.

#### hashupdate

Update a hash context with a bytestring.

#### hashfinalize

Gets the final hash.