Topic: Results
Online Help
Substitution
Calcpad can substitute the values of variables in all formulas in the output, just before the answer:
x_{1} = (b – √D)/(2·a) = (3 – √89)/(2·4) = 1.55
For that purpose, you need to check the "Substitution" checkbox at the bottom of the program window. That makes the results easy to review and check. This is important when calculations have to be checked by supervisors, teachers etc. This is also an advantage over the spreadsheet software where the actual formulas are hidden in the cells.
If you do not need the substitution, you can uncheck this option. Then the answers will follow directly the calculation formulas:
x_{1} = (b – √D)/(2·a) = 1.55
After that, if you position the mouse over any variable, you will see a tooltip with the respective value.
There is also an option to control the variable substitution behavior inside worksheets. You can use the following switches for that purpose:
#nosub
 do not substitute variables (no substitution);
#novar
 show equations only with substituted values (no variables);
#varsub
 show equations with variables and substituted values (default).
If an equation gets too long and does not fit on a single line, you can choose the way it looks in the output by using these two switches:
#split
 the equation is split after the "=" symbol;
#wrap
 the equation is wrapped at the end of the line (default).
Table of contents

+
About Calcpad

+
Writing code

+
Coding aids

+
Expressions

+
Reporting

+
Programming

−
Results

+
Working with files