Announcement: All noncommercial projects registered to use Earth Engine beforeApril 15, 2025 mustverify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.

ee.Array.sinh

  • TheArray.sinh() method computes the hyperbolic sine of each element in an input array.

  • It returns an array of the same shape as the input.

  • The input to thesinh() method must be an array.

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

UsageReturns
Array.sinh()Array
ArgumentTypeDetails
this:inputArrayThe input array.

Examples

Code Editor (JavaScript)

print(ee.Array([-5]).sinh());// [~ -74.20]print(ee.Array([0]).sinh());// [0]print(ee.Array([5]).sinh());// [~ 74.20]varstart=-5;varend=5;varpoints=ee.Array(ee.List.sequence(start,end,null,50));varvalues=points.sinh();// Plot sinh() defined above.varchart=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 setup

See the Python Environment page for information on the Python API and usinggeemap for interactive development.

importeeimportgeemap.coreasgeemap

Colab (Python)

importaltairasaltimportpandasaspddisplay(ee.Array([-5]).sinh())# [~ -74.20]display(ee.Array([0]).sinh())# [0]display(ee.Array([5]).sinh())# [~ 74.20]start=-5end=5points=ee.Array(ee.List.sequence(start,end,None,50))values=points.sinh()df=pd.DataFrame({'x':points.getInfo(),'sinh(x)':values.getInfo()})# Plot sinh() defined above.alt.Chart(df).mark_line().encode(x=alt.X('x',axis=alt.Axis(values=[start,0,end])),y=alt.Y('sinh(x)'))

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2023-10-06 UTC.