AI-generated Key Takeaways
-
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.203210577 print('Hyperbolic sine of -1', ee.Number(-1).sinh()); // -1.175201193 print('Hyperbolic sine of 0', ee.Number(0).sinh()); // 0 print('Hyperbolic sine of 1', ee.Number(1).sinh()); // 1.175201193 print('Hyperbolic sine of 5', ee.Number(5).sinh()); // 74.203210577 // Convert degrees to radians. var degrees = 45; var radians = degrees * (Math.PI/180); print('Hyperbolic sine of 45 degrees', ee.Number(radians).sinh()); // 0.868670961
import ee import geemap.core as geemap
Colab (Python)
import math # Input angle in radians. print('Hyperbolic sine of -5:', ee.Number(-5).sinh().getInfo()) # -74.203210577 print('Hyperbolic sine of -1:', ee.Number(-1).sinh().getInfo()) # -1.175201193 print('Hyperbolic sine of 0:', ee.Number(0).sinh().getInfo()) # 0 print('Hyperbolic sine of 1:', ee.Number(1).sinh().getInfo()) # 1.175201193 print('Hyperbolic sine of 5:', ee.Number(5).sinh().getInfo()) # 74.203210577 # Convert degrees to radians. degrees = 45 radians = degrees * (math.pi/180) print('Hyperbolic sine of 45 degrees:', ee.Number(radians).sinh().getInfo()) # 0.868670961