MATSLISE: Schrödinger |
![]() ![]() |
Using parameters in the input fields
As an extra feature, it is possible to use a parameter in the input fields
V(x)
, a
, b
and in the boundary conditions.
When any of these input fields
contains a parameter (e.g. c
) the user must enter the name of the parameter (e.g. c
) and
the value(s) of the parameter (e.g. 4
or 1:5
or [1,4,6]
) in the
"parameter names(s)"-field, resp. "parameter value(s)"-field.
The parameter-fields can also be used to replace rather lengthy subexpressions in the potential-function by a parameter (See e.g. the Truncated Gelfand-Levitan predefined problem).
It is possible to define more than one parameter (Figure 2 or the predefined problem in Razavy.mat). But it is not allowed to use parameters in the specification of the value(s) of a parameter. When multiple parameters are used, then the names of the parameters are entered in the parameter name(s)-field and separated by a comma. The corresponding values for the parameters are entered in the parameter value(s)-field, also separated by a comma.
![]() | The Schrödinger equation | The construct-button |
![]() |