Cookbook: Difference between revisions

Jump to navigation Jump to search
9 bytes added ,  22 August 2012
Line 103: Line 103:


In the above example, the function "sprime" represents a family of functions of  
In the above example, the function "sprime" represents a family of functions of  
the variables <math>x,t</math> parametrized by the parameter <math>k</math>.
the variables  
 
<math>x,t</math>  
 
parametrized by the parameter  
 
<math>k</math>.
 
The [http://www.gnu.org/software/octave/doc/interpreter/Anonymous-Functions.html#Anonymous-Functions anonympus function]
The [http://www.gnu.org/software/octave/doc/interpreter/Anonymous-Functions.html#Anonymous-Functions anonympus function]


@(x, t) sprime (x, t, k)
  @(x, t) sprime (x, t, k)


is a function of only <math>x,t</math> where the parameter <math>k</math> is 'frozen' to the value it has at the moment in the current scope.
is a function of only <math>x,t</math> where the parameter <math>k</math> is 'frozen' to the value it has at the moment in the current scope.
349

edits

Navigation menu