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.

BibTeX

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

BibLaTeX

@online{reference.wolfram_2021_nonnegative, organization={Wolfram Research}, title={NonNegative}, year={1988}, url={https://reference.wolfram.com/language/ref/NonNegative.html}, note=[Accessed: 24-June-2021 ]}

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