﻿ / – Algosim documentation
Algosim documentation: /

# / (solidus)

The division operator.

## Syntax

• `a/b`

• `a` is a number, vector, or matrix

• `b` is 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 `a` and `b` are both integers, so is `a / b` if the quotient is an integer; otherwise, `a / b` is a rational number.

• If `a` is an integer and `b` a rational number, `a / b` is a rational number.

• If `a` is an integer and `b` a real number, `a / b` is a real number.

• If `a` is an integer and `b` a complex number, `a / b` is a complex number.

• If `a` is a real number and `b` a complex number, `a / b` is a complex number.

• If `a` is a rational number and `b` a complex number, `a / b` is 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.