Help Contents | Module Library
2-D Function Plot
An EngineersToolbox Calculation Module

Background Information
This module evaluates and plots user-defined mathematical expressions of the form y = f(x).
 
Input

Functions of the form y = f(x) are entered in the text editor component of the main input form shown in Figure 1.    Tables 1 and 2 list the built-in mathematical operators and functions supported by the module. Multiple line expressions are allowed, and all input lines except for the final line must terminate with a semicolon.  The expression input is not case sensitive. Results are generated when the 'Calculate' button is clicked.

 

Table 1.  Mathematical operators

Operator Description
+ Addition
- Subtraction or unary minus sign.
* Multiplication
/ Division
^ Exponential
% Modulus

 

Table 2. Supported Mathematical Functions:

Function Description
abs(x) absolute value of x
acos(x) arc cosine of x
asin(x) arc sine of x
atan(x) arc tangent of x
cos(x) cosine of x
cosh(x) hyperbolic cosine of x
exp(x) e^x where e is the base of natural logarithms
log(x) base 10 logarithm of x
ln(x) natural logarithm of x
sign(x) sign of x
sin(x) sine of x
sinh(x) hyperbolic sine of x
sqrt(x) square root of x
tan(x) tangent of x
tanh(x) hyperbolic tangent x
u(x,x0) the unit step function u(x-x0)
round(x) value of x rounded to the nearest integer value
floor(x) value of x rounded up to the next integer value
ceil(x) value of x rounded down to the next integer value
random(x) random number from 0.0 to x

 

Figure 1. Module input form

 
Results
Function results are tabulated and plotted using standard ETB output facilities as shown in Figures 2 and 3.

 

Figure 2. Module plotted results


Figure 3. Module tabulated results

 
References

Help Contents | Module Library
Copyright © 2001-2008 Engrasp, Inc.  All rights reserved.