/ (solidus)
The division operator.
Syntax
-
a/b-
ais a number, vector, or matrix -
bis a non-zero number
-
Description
If a is a number, vector, or matrix and b a non-zero number, then a/b is the mathematical quotient of a and b.
If a is a number, then the type of a/b is the most specific type possible.
Some examples:
-
If
aandbare both integers, so isa / bif the quotient is an integer; otherwise,a / bis a rational number. -
If
ais an integer andba rational number,a / bis a rational number. -
If
ais an integer andba real number,a / bis a real number. -
If
ais an integer andba complex number,a / bis a complex number. -
If
ais a real number andba complex number,a / bis a complex number. -
If
ais a rational number andba complex number,a / bis a complex number.
If a is a vector or matrix, a / b is complex iff at least one of the operands is complex.
Examples
5892557464684800 / 27540
213963597120
652/14
326/7 (=46.5714285714)
π/3
1.0471975512 (=π/3)
i/3
0.333333333333⋅i
IdentityMatrix(5)/10
⎛0.1 0 0 0 0⎞ ⎜ 0 0.1 0 0 0⎟ ⎜ 0 0 0.1 0 0⎟ ⎜ 0 0 0 0.1 0⎟ ⎝ 0 0 0 0 0.1⎠
Notes
The binary operator / is mapped to the divide function.