appScience software

disclaimer

fc31024

How multi-line modes work

Multi-line mode

This mode is designed for complex arithmetic expressions, where you evaluate many different parameters that depend on other parameters. Each time you press the '=' key or the 'return' key, formula calculator evaluates every expression, line by line, starting at the top. It displays the results of every expression. You make the results field larger by dragging the divider just below it.

Define your own function by simply typing it in and pressing return. Functions are defined by a name, brackets, one or more parameters separated by commas and an equals sign, such as myFunc(this,that)=this-that. Formula calculator recognises this as a function definition and saves it in the user functions list. While it remains in the math input text field it is available for all expressions that appear after it. If you want to save it you need to go to the list of user functions, select your function and check the keep for next time switch. You can also type a description of your function.

fciosfixed

When in fixed order mode it is important that parameters have values before they appear in subsequent expressions, otherwise formula calculator cannot evaluate the expression.

For example

y=2*x
x=3

cannot be evaluated since formula calculator will try to perform 2*x before x has a value. In this case you should interchange the order of the two expressions.

fciosany

In any order mode, you can type your equations in any order. Formula calculator processes the equations from top to bottom and evaluates all expressions that have values. It then repeats, processing the equations from top to bottom and tries to evaluate the expressions again. In most cases, many of the parameters encountered on the first iteration will now have values and can be evaluated. This proces is repeated until formula calculator cannot evaluate any more expressions. Because the equations are evaluated multiple times, this mode is slower. For very complicated expressions using large arrays of numbers it is more efficient to use the fixed order