Section 14 Vector Operation: Mathematical Function
14.1 Arithmetic Function
| Function | Explanation |
|---|---|
| round | Round to given number of decimal places |
| trunc | Truncate down to nearest whole number |
| ceiling, floor | Round values in a vector up (ceiling) or down (floor) |
| zapsmall | Replace values in a vector or matrix that are close to zero with 0 |
| abs | Absolute (unsigned) value |
| sqrt | Square root |
| exp | Exponential |
| log, log10, log2 | Log to base e, 10, and 2 |
| sin, cos, tan | Trigonometric functions |
| asin, acos, atan | Inverse (arc) trigonometric functions |
| scale | Centering and scaling |