Subtract

x-y

is equivalent to x+(-1*y).

Details

  • x-y is converted to x+(-1*y) on input.

Examples

open allclose all

Basic Examples  (3)

Subtract numbers:

Subtract expressions:

Subtract evaluates to Plus:

Scope  (3)

If any number is approximate, the whole result will be:

Subtracting complex numbers subtracts their components:

Subtract threads elementwise over lists:

Applications  (1)

Find pairs of numbers that differ by an integer:

Verify that their differences are integers:

Introduced in 1988
 (1.0)