ee.Number.sinh

Tính giá trị sin hyperbol của đầu vào.

Cách sử dụngGiá trị trả về
Number.sinh()Số
Đối sốLoạiThông tin chi tiết
this: inputSốGiá trị đầu vào.

Ví dụ

Trình soạn thảo mã (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

Thiết lập Python

Hãy xem trang Môi trường Python để biết thông tin về API Python và cách sử dụng geemap cho quá trình phát triển tương tác.

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