real

Contents

real#

class saiunit.math.real(x, **kwargs)#

Return the real part of the complex 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 + 2j, 3 + 4j] * u.second
>>> u.math.real(a)