Minus

-x

is the arithmetic negation of x.

Details

  • -x is converted to Times[-1,x] on input.

Examples

Basic Examples  (4)

Minus automatically distributes over groupings:

Minus threads element-wise over lists:

Explicit FullForm:

Pattern match both x and -x:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_minus, organization={Wolfram Research}, title={Minus}, year={1988}, url={https://reference.wolfram.com/language/ref/Minus.html}, note=[Accessed: 05-October-2024 ]}