ee.Number.sinh Stay organized with collections Save and categorize content based on your preferences.
Page Summary
The
Number.sinh()method computes the hyperbolic sine of a given input number.It takes a single argument, which is the input value, and returns a Number.
Examples are provided in both JavaScript and Python demonstrating its usage with various input values and how to convert degrees to radians before computation.
| Usage | Returns |
|---|---|
Number.sinh() | Number |
| Argument | Type | Details |
|---|---|---|
this:input | Number | The input value. |
Examples
Code Editor (JavaScript)
// Input angle in radians.print('Hyperbolic sine of -5',ee.Number(-5).sinh());// -74.203210577print('Hyperbolic sine of -1',ee.Number(-1).sinh());// -1.175201193print('Hyperbolic sine of 0',ee.Number(0).sinh());// 0print('Hyperbolic sine of 1',ee.Number(1).sinh());// 1.175201193print('Hyperbolic sine of 5',ee.Number(5).sinh());// 74.203210577// Convert degrees to radians.vardegrees=45;varradians=degrees*(Math.PI/180);print('Hyperbolic sine of 45 degrees',ee.Number(radians).sinh());// 0.868670961
Python setup
See the Python Environment page for information on the Python API and usinggeemap for interactive development.
importeeimportgeemap.coreasgeemap
Colab (Python)
importmath# Input angle in radians.display('Hyperbolic sine of -5:',ee.Number(-5).sinh())# -74.203210577display('Hyperbolic sine of -1:',ee.Number(-1).sinh())# -1.175201193display('Hyperbolic sine of 0:',ee.Number(0).sinh())# 0display('Hyperbolic sine of 1:',ee.Number(1).sinh())# 1.175201193display('Hyperbolic sine of 5:',ee.Number(5).sinh())# 74.203210577# Convert degrees to radians.degrees=45radians=degrees*(math.pi/180)display('Hyperbolic sine of 45 degrees:',ee.Number(radians).sinh())# 0.868670961
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.