Pipeng Toolbox : User Programmable Calculators Login
Short Cuts
GO
Main ±
Beams ±
References ±
Fluid Flow ±
Fluid Properties ±
Maths ±
Materials ±
Pipelines ±
Soils ±
Subsea ±
Data ±
Units ±
Help ±
Demo

User Programmable

Use the user programmable calculator to write your own programs, with inbuilt plots and tables etc. Select the number of X input variables and Z output variables on the setup page. For example if you have one equation with two input variables select two X input variables, and one Z output variable.

The calculators use Javascript so you can use the full range of programming constructs: if, else, for, while. You can also define functions and objects to use in your code. Enter Javascript statements to define all of the output variables z1, z2, z3... in terms of the input variables x1, x2, x3.... and any previously defined variables. Each Javascript statement should be on a new line and must end with a semi colon ';' eg : z1 = x1 + 2 * x2;. You can also reference the variables by index eg: for(i=0: i<3; i++){x[i] = sin(z[i]);}. Refer to the help page in Resources for more details.

    Related Modules :

    [FREE] tools are free in basic mode with no login (no plots, tables, goal seek etc). Login or Open a free account to use the tools in plus mode (with plots, tables, goal seek etc).
    [PLUS] tools are free in basic CHECK mode with Login or Open a free account (CHECK values no plots, tables, goal seek etc). Buy a Subscription to use the tools in plus mode (with plots, tables, goal seek etc).
    Try plus mode using the Plus Mode Demo tools with no login.   Help Using The Pipeng Toolbox (opens in the popup workbook)

    Links : ±
    CALCULATOR : User Programmable [FREE]   ±

    User programmable calculator.

    Enter your program using javascript statements to define all of the output variables z1, z2, z3... in terms of the input variables x1, x2, x3.... and any previously defined variables. Each Javascript statement should be on a new line and must end with a semi colon ';' eg : z1 = x1 + 2 * x2;. Variables can also be referenced by index eg: for(i=0: i<3; i++){x[i] = sin(z[i]);}. Javascript can include the full range of programming constructs: if, else, for, while, as well as functions and objects.

    Change the number of input and output variables on the setup page. Use the plot pages to plot the variables. Use the save page to save your program.

    Tool Input

    • c : Javascript
    • x : Input Data

    Tool Output