Differences between revisions 1 and 2
Revision 1 as of 2026-01-18 18:03:29
Size: 1159
Comment: Initial commit
Revision 2 as of 2026-01-19 04:59:25
Size: 1253
Comment: Detail
Deletions are marked like this. Additions are marked like this.
Line 13: Line 13:
Most operators work as expected. Most operators work as expected. Note that `/` performs floating point division whereas `//` performs exact rational division.

Julia Operators

These are the operators supported by Julia.


Description

Most operators work as expected. Note that / performs floating point division whereas // performs exact rational division.

For the most part, prefixing an operator with a dot (.) causes element-wise operation. For example:

  • .* for element-wise multiplication

  • ./ for element-wise division

  • .^ for element-wise power

To type the cross product operator, type \times and tab-complete. This is equivalent to calling the cross() function on two vector arguments.

Similarly, for the dot product operator, type \cdot and tab-complete. This is equivalent to calling the dot() function on two vector arguments.

There is an important difference between the transposition operator ' and the function transpose(). The former gives the complex conjugate transposition, by which a complex number as a + bi is transposed to a - bi. The latter is the non-conjugate transposition and does not flip any signs.


CategoryRicottone

Julia/Operators (last edited 2026-02-13 03:20:16 by DominicRicottone)