Unix 简明教程

Unix / Linux - Shell Builtin Mathematical Functions

本教程的大部分内容涵盖了 Bourne Shell,但此页面列出了 Korn Shell 可用的所有数学内置函数。

The most of the part of this tutorial covered Bourne Shell but this page list down all the mathematical builti-in functions available in Korn Shell.

Korn Shell 提供对标准数学函数集的访问权限。它们使用 C 函数调用语法进行调用。

The Korn shell provides access to the standard set of mathematical functions. They are called using C function call syntax.

Sr.No.

Function & Description

1

abs Absolute value

2

log Natural logarithm

3

acos Arc cosine

4

sin Sine

5

asin Arc sine

6

sinh Hyperbolic sine

7

cos Cosine

8

sqrt Square root

9

cosh Hyperbolic cosine

10

tan Tangent

11

exp Exponential function

12

tanh Hyperbolic tangent

13

int Integer part of floating-point number