Last updated: March, 2018. | |
QMTools Help: Functions | |
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 |
From the Math Palette, you may define functions of any number of variables, and the function may return a real or complex number.
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.
A complex-valued function returns a complex number as the result of an evaluation of real arguments. Such functions may be defined as separate real and imaginary parts [rectangular form]; the imaginary part is distinguished as the multiplier of the imaginary unit, which can be inserted on the Math Palette using the keyboard shortcut alt+ctrl+I. Polar forms also may be used if desired. Evaluation of a complex function produces an ordered pair of real numbers, one each for the real and imaginary part, i.e., the result of evaluation is always reported in rectangular form.
The complex function f(x) with real part 2x and imaginary
part 3 + x3 would be entered as shown below; the
result of evaluating the function at x = 3 is also shown.
|