Built-in Mathematical Functions (ksh93 Only)
ksh93 provides access to the standard set of mathematical functions. They are called using C function call syntax.
Name |
Function |
Name |
Function |
|
Absolute value |
|
Euclidean distance |
|
Arc cosine |
|
Integer part of floating-point number |
|
Arc sine |
|
Natural logarithm |
|
Arc tangent |
|
Exponentiation (x y) |
|
Arc tangent of two values |
|
Sine |
|
Cosine |
|
Hyperbolic sine |
|
Hyperbolic cosine |
|
Square root |
|
Exponential (e x) |
|
Tangent |
|
Floating-point remainder |
|
Hyperbolic tangent |
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.