division

Navigation:  Language Reference > Operators > Arithmetic >

division

Previous pageReturn to chapter overviewNext page

Syntax

A / B

Description

A / B divides A by B. For a nonscalar B, A/B equals A*inverse(B). For a nonscalar A, each element of A is divided by the scalar B.

Examples

A

B

A / B

15

3

5

-40.5

5

-8.1

2

[1,2;3,4]

[-4,2;3,-1]

[1,-2;-3,4]

4

[0.25,-0.5;0.75,1]

[2,0;0,2]

[1,2;3,4]

[-4,2,3,-1]

1

0

not allowed!

1

[1,2,3;4,5,6]

not allowed!

Limitations

If A and B are matrices, they must have the same size. If B is a matrix and it becomes singular, simulation is stopped.