<math.h>

The <math.h> include file declares all the floating-point math functions:

附註:
  1. 貝塞爾函數是一組名為 j0j1jny0y1yn的函數。
  2. 浮點數字僅保證 15 個有效位數。 如果在計算中使用多個浮點數字,則這可能會大幅影響預期結果。

<math.h> defines the macro HUGE_VAL, which expands to a positive double expression, and possibly to infinity on systems that support infinity.

對於所有數學函數,當輸入引數超出該函數容許的值範圍時,會發生 網域錯誤 。 如果發生網域錯誤, errno 會設為 EDOM的值。

如果函數的結果無法以 double 值表示,則會發生範圍錯誤。 如果結果的量值太大 (溢位) ,函數會傳回巨集 HUGE_VAL的正或負值,並將 errno 設為 ERANGE。 如果結果太小 (下溢) ,則函數會傳回零。