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:

Wolfram Research (1988), Subtract, Wolfram Language function, https://reference.wolfram.com/language/ref/Subtract.html.

Text

Wolfram Research (1988), Subtract, Wolfram Language function, https://reference.wolfram.com/language/ref/Subtract.html.

CMS

Wolfram Language. 1988. "Subtract." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Subtract.html.

APA

Wolfram Language. (1988). Subtract. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Subtract.html

BibTeX

@misc{reference.wolfram_2024_subtract, author="Wolfram Research", title="{Subtract}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Subtract.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_subtract, organization={Wolfram Research}, title={Subtract}, year={1988}, url={https://reference.wolfram.com/language/ref/Subtract.html}, note=[Accessed: 22-November-2024 ]}