- 用法:- dask.array.sinh(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = <ufunc 'sinh'>
- 此文檔字符串是從 numpy.sinh 複製的。 - 可能存在與 Dask 版本的一些不一致之處。 - 雙曲正弦,逐元素。 - 等效於 - 1/2 * (np.exp(x) - np.exp(-x))或- -1j * np.sin(1j*x)。- x:array_like
- 輸入數組。 
- out:ndarray,None,或 ndarray 和 None 的元組,可選
- 存儲結果的位置。如果提供,它必須具有輸入廣播到的形狀。如果未提供或 None,則返回一個新分配的數組。元組(隻能作為關鍵字參數)的長度必須等於輸出的數量。 
- where:數組,可選
- 此條件通過輸入廣播。在條件為 True 的位置, - out數組將設置為 ufunc 結果。在其他地方,- out數組將保留其原始值。請注意,如果通過默認- out=None創建未初始化的- out數組,則其中條件為 False 的位置將保持未初始化狀態。
- **kwargs:
- 對於其他僅關鍵字參數,請參閱 ufunc 文檔。 
 
- y:ndarray
- 對應的雙曲正弦值。如果 - x是標量,則這是一個標量。
 
 - 參數:- 返回:- 注意:- 如果提供了 - out,則函數將結果寫入其中,並返回對- out的引用。 (見示例)- 參考:- M. Abramowitz 和 I. A. Stegun,數學函數手冊。紐約,紐約:多佛,1972,頁。 83. - 例子:- >>> np.sinh(0) 0.0 >>> np.sinh(np.pi*1j/2) 1j >>> np.sinh(np.pi*1j) # (exact value is 0) 1.2246063538223773e-016j >>> # Discrepancy due to vagaries of floating point arithmetic.- >>> # Example of providing the optional output parameter >>> out1 = np.array([0], dtype='d') >>> out2 = np.sinh([0.1], out1) >>> out2 is out1 True- >>> # Example of ValueError due to provision of shape mis-matched `out` >>> np.sinh(np.zeros((3,3)),np.zeros((2,2))) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: operands could not be broadcast together with shapes (3,3) (2,2)
相關用法
- Python dask.array.sinc用法及代碼示例
- Python dask.array.sin用法及代碼示例
- Python dask.array.signbit用法及代碼示例
- Python dask.array.sign用法及代碼示例
- Python dask.array.stats.ttest_ind用法及代碼示例
- Python dask.array.stats.ttest_rel用法及代碼示例
- Python dask.array.square用法及代碼示例
- Python dask.array.searchsorted用法及代碼示例
- Python dask.array.stats.chisquare用法及代碼示例
- Python dask.array.stats.kurtosistest用法及代碼示例
- Python dask.array.sum用法及代碼示例
- Python dask.array.squeeze用法及代碼示例
- Python dask.array.stats.moment用法及代碼示例
- Python dask.array.stats.power_divergence用法及代碼示例
- Python dask.array.store用法及代碼示例
- Python dask.array.stats.f_oneway用法及代碼示例
- Python dask.array.subtract用法及代碼示例
- Python dask.array.stats.kurtosis用法及代碼示例
- Python dask.array.std用法及代碼示例
- Python dask.array.stats.skew用法及代碼示例
注:本文由純淨天空篩選整理自dask.org大神的英文原創作品 dask.array.sinh。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。
