Arithmetic (GNU Octave (version 6.1.90))

Next: Linear Algebra, Previous: Matrix Manipulation, Up: Top [Contents][Index]

## 17 Arithmetic

Unless otherwise noted, all of the functions described in this chapter will work for real and complex scalar, vector, or matrix arguments. Functions described as mapping functions apply the given operation individually to each element when given a matrix argument. For example:

    sin ([1, 2; 3, 4])
         ⇒  0.84147   0.90930
             0.14112  -0.75680