NonNegative

NonNegative[x]

gives True if x is a nonnegative number.

Details

  • NonNegative[x] gives False if x is manifestly a negative or complex numerical quantity. Otherwise, it remains unevaluated.

Examples

Basic Examples  (1)

Evaluate different types of numbers:

Quantities that are not NumericQ remain unevaluated:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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