Last updated: March, 2018. | |
QMTools Help: Variables | |
Overview
Editor Basics
Editor Menus
Applet Basics
Shortcut Keys
Math Basics Math Menus Functions Variables Built-in Math Animation Graph Basics Plot Markup Graph Slicing QM Waves Eigen-Energies Scattering QM Statistics QM Math |
Variables are characterized by a name, a value, and [possibly] a domain, and fall into two broad categories: dependent and independent. The value of a dependent variable must be assigned in context, (with an equation that often references other variables, or even functions). Variables include parameters, function arguments, and even [reserved] constants.
Mouse and keyboard input is described below for the Windows platform; for
Mac users, a right-click becomes a ctrl-click, and cmd
substitutes for ctrl in all keyboard shortcuts.
Variables used as function arguments are created implicitly with the function, but parameters must be defined explicitly.
The domain defines the range of values permitted for the variable, All domains have an upper and lower bound (may be infinite). Domains may be discrete or continuous. For a discrete domain the allowed values (or their logarithms) are presumed distributed uniformly, and there are a countable number of them. The domain concept applies to only that subset of variables we regard as independent. Function arguments fall into this category; indeed, any function we wish to graph must have an [artificial] grid imposed on its variables. Likewise, we are at liberty to assign a domain to parameters whose value expression does not reference other parameters; we call such parameters primitives. Domains are set using the QMTools Domain Editor, a dialog box with editable fields specifying the minimum and maximum values permitted for the variable, and (for discrete domains) the number of values allowed. The domain editor appears on the Math Palette popup menu only as needed, i.e., when the mouse is right-clicked over an entry that defines either a function or a primitive parameter. ![]() ![]() |