
All the predefined functions and constants that KmPlot knows can be shown by selecting → , which displays this page of KmPlot's handbook.
These functions and constants and even all user defined functions can be used to determine the axes settings as well. See the section called “Axes Configuration”.
By default, the trigonometric functions work in radians. However, this can be changed via → menu item.
- sin(x), arcsin(x), cosec(x), arccosec(x)
The sine, inverse sine, cosecant and inverse cosecant respectively.
- cos(x), arccos(x), sec(x), arcsec(x)
The cosine, inverse cosine, secant and inverse secant respectively.
- tan(x), arctan(x), cot(x), arccot(x)
The tangent, inverse tangent, cotangent and inverse cotangent respectively.
The Hyperbolic Functions.
- sinh(x), arcsinh(x), cosech(x), arccosech(x)
The hyperbolic sine, inverse sine, cosecant and inverse cosecant respectively.
- cosh(x), arccosh(x), sech(x), arcsech(x)
The hyperbolic cosine, inverse cosine, secant and inverse secant respectively.
- tanh(x), arctanh(x), coth(x), arccoth(x)
The hyperbolic tangent, inverse tangent, cotangent and inverse cotangent respectively.
- sqr(x)
The square x^2 of x.
- sqrt(x)
The square root of x.
- sign(x)
The sign of x. Returns 1 if x is positive, 0 if x is zero, or −1 if x is negative.
- H(x)
The Heaviside Step Function. Returns 1 if x is positive, 0.5 if x is zero, or 0 if x is negative.
- exp(x)
The exponent e^x of x.
- ln(x)
The natural logarithm (inverse exponent) of x.
- log(x)
The logarithm of x to base 10.
- abs(x)
The absolute value of x.
- floor(x)
Rounds x to closest integer less than or equal to x.
- ceil(x)
Rounds x to the closest integer greater than or equal to x.
- round(x)
Rounds x to the closest integer.
- gamma(x)
The gamma function.
- factorial(x)
The factorial of x.
- min(x1,x2,...,xn)
Returns the minimum of the set of numbers {x1,x2,...,xn}.
- max(x1,x2,...,xn)
Returns the maximum of the set of numbers {x1,x2,...,xn}.
- mod(x1,x2,...,xn)
Returns the modulus (Euclidean length) of the set of numbers {x1,x2,...,xn}.