主題
Search

浮點代數


簡單來說,浮點代數是對代數進行浮點表示運算,透過任意數量的自動化裝置完成。

傳統上,這個定義的措辭使其僅適用於對實數的浮點表示(即,浮點數集合的有限元素)執行的代數運算,儘管包括有符號無窮大和 NaN 在內的幾種額外的浮點資料型別也通常被允許作為此類函式的輸入。在許多廣泛採用的標準中,例如 IEEE 754-2008,浮點代數歸類於浮點運算的更大標題之下。

操作函式可能的異常
sinsin(x)(-infty,+infty)無效操作(如果 |x|=infty);下溢
coscos(x)(-infty,+infty)無效操作(如果 |x|=infty);下溢
tantan(x)(-infty,+infty)無效操作(如果 |x|=infty);下溢
sinPisin(pix)(-infty,+infty)無效操作(如果 |x|=infty);下溢;多種情況
cosPicos(pix)(-infty,+infty)無效操作(如果 |x|=infty);多種情況
asinarcsin(x)[-1,+1]無效操作(如果 |x|>1);下溢
acosarccos(x)[-1,+1]無效操作(如果 |x|>1
atanarctan(x)[-infty,+infty]下溢
atanPiarctan(x)/pi[-infty,+infty]下溢
atan2(y,x)參見下文[-infty,+infty]^2下溢;多種情況
atan2Pi(y,x)參見下文[-infty,+infty]^2下溢
sinhsinh(x)[-infty,+infty]上溢;下溢
coshcosh(x)[-infty,+infty]上溢
tanhtanh(x)[-infty,+infty]下溢
asinharcsinh(x)[-infty,+infty]下溢
acosharccosh(x)[+1,+infty]無效操作(如果 x<1
atanharctanh(x)[-1,+1]下溢;除以零(如果 |x|=1);無效操作(如果 |x|>1

上表總結了 IEEE 754-2008 中“推薦的算術運算”標題下包含的代數函式。請注意,三角函式也包含在內。

請注意,函式atan2(y,x)的確切定義在表中被省略,但是它是點(x,y) 與正 x 軸在原點所成的角,範圍為[-pi,+pi];類似地,atan2Pi(y,x)是同一函式的歸一化版本,具有縮放範圍[-1,+1]。有關通篇提及的函式的其他細節和注意事項,請參見文件(IEEE Computer Society 2008,§5 和 §9);標記為“多種情況”的異常也在文件中詳細說明(IEEE Computer Society 2008,pp 43-45)。


另請參閱

代數, 偏置指數, 浮點運算, 浮點指數, 浮點正規數, 浮點數, 浮點優選指數, 浮點量子, 浮點表示, IEEE 754-2008, 區間算術, NaN, 靜默 NaN, 訊號 NaN, 尾數, 次正規數

此條目由Christopher Stover貢獻

透過 探索

參考文獻

Goldberg, D. "What Every Computer Scientist Should Know About Floating-Point Arithmetic." ACM Comput. Surv. 23, 5-48, March 1991. http://docs.sun.com/source/806-3568/ncg_goldberg.html.Hauser, J. R. "Handling Floating-Point Exceptions in Numeric Programs." ACM Trans. Program. Lang. Sys. 18, 139-174, 1996. http://www.jhauser.us/publications/HandlingFloatingPointExceptions.html.IEEE Computer Society. "IEEE Standard for Floating-Point Arithmetic: IEEE Std 754-2008 (Revision of IEEE Std 754-1985)." 2008. http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=4610935.Severance, C. (Ed.). "IEEE 754: An Interview with William Kahan." Computer, 114-115, Mar. 1998.Stevenson, D. "A Proposed Standard for Binary Floating-Point Arithmetic: Draft 8.0 of IEEE Task P754." IEEE Comput. 14, 51-62, 1981.

如此引用

Stover, Christopher. "浮點代數。" 來自 —— 資源,由 Eric W. Weisstein 建立。 https://mathworld.tw/Floating-PointAlgebra.html

主題分類