cf.DimensionCoordinate.exp¶
-
DimensionCoordinate.
exp
(bounds=True, inplace=False, i=False)[source]¶ The exponential of the data, element-wise.
See also
- Parameters
- Returns
The construct with the exponential of data values. If the operation was in-place then
None
is returned.
Examples:
>>> f.data <CF Data(1, 2): [[1, 2]]> >>> f.exp().data <CF Data(1, 2): [[2.71828182846, 7.38905609893]]>
>>> f.data <CF Data(1, 2): [[1, 2]] 2> >>> f.exp().data <CF Data(1, 2): [[7.38905609893, 54.5981500331]]>
>>> f.data <CF Data(1, 2): [[1, 2]] kg m-1 s-2> >>> f.exp() ValueError: Can't take exponential of dimensional quantities: <Units: kg m-1 s-2>