Unix/Linux - Shell 內建數學函式



本教程大部分內容涵蓋了 Bourne Shell,但此頁面列出了Korn Shell中可用的所有內建數學函式。

Korn shell 提供對標準數學函式集的訪問。它們使用 C 函式呼叫語法進行呼叫。

序號 函式及描述
1

abs

絕對值

2

log

自然對數

3

acos

反餘弦

4

sin

正弦

5

asin

反正弦

6

sinh

雙曲正弦

7

cos

餘弦

8

sqrt

平方根

9

cosh

雙曲餘弦

10

tan

正切

11

exp

指數函式

12

tanh

雙曲正切

13

int

浮點數的整數部分

廣告