cf.DomainAncillary.exp

DomainAncillary.exp(bounds=True, i=False)[source]

The exponential of the data array.

See also

log

Examples 1:
>>> g = f.exp()
Parameters:
bounds: optional

Ignored.

i: bool, optional

If True then update the domain ancillary in place. By default a new domain ancillary is created. In either case, a domain ancillary is returned.

Returns:
out: cf.DomainAncillary

The domain ancillary with the exponential of data array values.

Examples 2:
>>> f.data
<CF Data: [[1, 2]]>
>>> f.exp().data            
<CF Data: [[2.71828182846, 7.38905609893]]>
>>> f.data
<CF Data: [[1, 2]] 2>
>>> f.exp().data            
<CF Data: [[7.38905609893, 54.5981500331]]>
>>> g = f.exp(i=True)
>>> g is f
True
>>> f.data
<CF Data: [[1, 2]] kg m-1 s-2>
>>> f.+name}()          
ValueError: Can't take exponential of dimensional quantities: <CF Units: kg m-1 s-2>