Function Plotter: Supported Functions

The following functions, operators and constants are pre-defined in Oberon Function Plotter:

Functions
abs(t) Returns the absolute value of a number, a number without its sign.
arccos(t) Returns the arccosine of a number, in radians in the range 0 to Pi.
arccosh(t) Returns the inverse hyperbolic cosine of a number.
arcsin(t) Returns the arcsine of a number in radians, in the range -Pi/2 to Pi/2.
arcsinh(t) Returns the inverse hyperbolic sine of a number.
arctan(t) Returns the arctangent of a number in radians, in the range -Pi/2 to Pi/2.
arctan2(ty,tx) Returns the arctangent of the specified x and y coordinates, in radians between -Pi and Pi, excluding -Pi.
arctanh(t) Returns the inverse hyperbolic tangent of a number
ceil(t) Rounds a number up, to the nearest integer
cos(t) Returns the cosine of an angle
cosh(t) Returns the hyperbolic cosine of a number
degrees(t) Converts radians to degrees.
exp(t) Returns e raised to the power of a given number.
fact(t) Returns the factorial of a number, x!
fix(t) Returns the integer part of a number.
floor(t) Rounds a number down, to the nearest integer
frac(t) Returns the fractional part of a number.
if(t,a,b) Returns the value of a if t is not zero, otherwise returns b.
integrate(f(x),x,a,b,dx) Returns a numerical approximation to the integral of f with respect to x from a to b. dx is an optional parameter representing the step of integration.
ln(t) Returns the natural logarithm of a number.
log(t,base) Returns the logarithm of a number to the given base.
log10(t) Returns the base-10 logarithm of a number.
max(a,b) Returns a greater number of a or b.
min(a,b) Returns a lesser number of a or b.
mod(t,divisor) Returns the remainder after a number is divided by a divisor.
product(expr,n,n1,n2,s) Evaluates the expression 'expr' for each integer value of index 'n' from 'n1' to 'n2' and multiplies the results up. If the step 's' value is not specified, 1 is assumed
radians(t) Converts degrees to radians.
rand(t) Returns a random number greater than or equal to 0 and less than 1. Parameter is optional. If omitted or positive, returns next random number. If zero, returns last generated number. If negative, resets the generator to a new sequence using the value as random seed.
sign(t) Returns the sign of a number: 1 if the number is positive, zero if the number is zero, or -1 if the number is negative.
sin(t) Returns the sine of an angle.
sinh(t) Returns the hyperbolic sine of a number.
sqrt(t) Returns a square root of a number.
sum(expr,n,n1,n2,s) Evaluates the expression 'expr' for each integer value of index 'n' from 'n1' to 'n2' and adds up the results. If the step 's' value is not specified, 1 is assumed
tan(t) Returns the tangent of an angle.
tanh(t) Returns the hyperbolic tangent of a number.
Operators
+ Addition: A + B
- Subtraction: A - B
* Multiplication: A * B
/ Division: A / B
^ Power: A ^ B
& Logical AND: (A & B) = 1 if both A and B are not zero, 0 otherwise
| Logical OR: (A | B) = 1 if either A or B is not zero, 0 otherwise
! Logical NOT: (!A) = 1 if A is zero, 0 otherwise
> Greater than: (A > B) = 1 if A is greater than B
< Less than: (A < B) = 1 if A is less than B
>= Greater than or equal to: (A >= B) = 1 if A is greater than or equal to B
<= Less than or equal to: A <= B = 1 if A is less than or equal to B
= Greater than or equal to: (A = B) = 1 if A is equal to B
<> Less than or equal to: A <> B = 1 if A is not equal to B
Constants
pi Returns the value of Pi, 3.14159265358979
e Returns the value of the base of natural logarithm, 2.71828182845905

 


[ Documentation | Function Plotter | Oberon Product Index | Oberon Home Page ]

Copyright 2002 by Alex Vakulenko. All rights reserved.
This page was last revised on 11/19/02.