ee.Array.cosh

On an element-wise basis, computes the hyperbolic cosine of the input.

UsageReturns
Array.cosh()Array
ArgumentTypeDetails
this: inputArray

The input array.

Examples

JavaScript

print(ee.Array([-4]).cosh());  // [~27.31]
print(ee.Array([0]).cosh());  // [1]
print(ee.Array([4]).cosh());  // [~27.31]

var start = -4;
var end = 4;
var points = ee.Array(ee.List.sequence(start, end, null, 50));
var values = points.cosh();

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

Python

# Your example goes here!