negative#
- class saiunit.math.negative(x, **kwargs)#
Return the negative of the argument.
- Parameters:
x (saiunit.Quantity |
Array|ndarray|bool|number|bool|int|float|complex) – Input array.- Returns:
out – Quantity if x is a Quantity, else an array.
- Return type:
saiunit.Quantity |
Array
Examples
>>> import saiunit as u >>> a = [1, -2, 3] * u.meter >>> u.math.negative(a)