Unix / Linux - Shell Builtin Mathematical Functions



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.

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

Advertisements