ee.Array.exp

On an element-wise basis, computes the Euler's number e raised to the power of the input.

UsageReturns
Array.exp()Array
ArgumentTypeDetails
this: inputArray

The input array.

Examples

JavaScript

var empty = ee.Array([], ee.PixelType.int8());
print(empty.exp());  // []

// [Math.pow(Math.E, -1), 1, Math.E, 7.389]
print(ee.Array([-1, 0, 1, 2]).exp());

var start = -5;
var end = 2;
var points = ee.Array(ee.List.sequence(start, end, null, 50));
var values = points.exp();

// Plot exp() defined above.
var chart = ui.Chart.array.values(values, 0, points)
    .setOptions({
      viewWindow: {min: start, max: end},
      hAxis: {
        title: 'x',
        viewWindowMode: 'maximized',
      },
      vAxis: {
        title: 'exp(x)',
      },
      lineWidth: 1,
      pointSize: 0,
    });
print(chart);

Python

# Your example goes here!