Usage: |
ft = nmfunc1(t)
|
Input: |
| nmfunc1dfunc | global variable, string, name of the function that
has to be restricted to a line by this quantlet; as
a result, the function should return a scalar
|
| nmfunc1dx | global variable, n x 1 vector, a point x0 on a line to
which the function should be restricted
|
| nmfunc1dd | global variable, n x 1 vector, direction vector "direc"
of a line to which the function should be restricted
|
| t | scalar, the only input parameter of a restricted function
|
Output: |
| ft | scalar, ft = f(t) = func(x0 + t*direc) |