Examples:



next up previous contents
Next: notice Up: newpar Previous: newpar

Examples:

The total number of model parameters for the example is four.

XSPEC> newpar 2 0.1          ! The value of the second parameter is set to
                                  0.1.

XSPEC> newpar 3              ! The program will prompt for a specification
                                  for the 3rd parameter,

0.001,0                         ! which has its value set to 0.001 and its
                                  delta set to zero, fixing it in later
                                  fits.  The program now prompts for a
                                  specification for the 4th parameter,

21                              ! which is set to 21.  As there is no 5th
                                  parameter, the program displays a
                                  summary and returns to command level.

XSPEC> newpar ,,.001         ! The value of the delta of the 3rd parameter
                                  (which is the default index as it was
                                  the first parameter modified in the
                                  previous newpar invocation) is set
                                  to 0.001, allowing it to be adjusted
                                  during any fits.

XSPEC> newpar 0              ! No parameters are modified, but a summary
                                  of the current parameter values will be
                                  printed.

The total number of parameters for this example is six.

XSPEC> newpar 4 = 1     ! The value of parameter 4 is set to the
                             value of parameter 1. This has the
                             consequence of model parameter 4 being frozen
                             at the value of parameter 1 during subsequent
                             fitting procedures. If model parameter 1 is a
                             free parameter, then both parameters 1 and 4
                             change their values simultaneously in the
                             fit procedure.
                             Note the spaces around the ``=" sign!

XSPEC> newpar 4 = 1 0.9 ! The value of parameter 4 is set to 0.9
                             times the value of parameter 1.

XSPEC> newpar 6 = 3 .1  ! The value of parameter 6 is set to 0.1
                             times the value of parameter 3.

XSPEC> thaw 6           ! Makes parameter 6 independent of parameter 3
                             and a free parameter.



Keith Arnaud
Fri Nov 18 16:30:43 EST 1994