# Changes

,  09:51, 22 August 2012
Line 60: Line 60:
==== Problem  ====

==== Problem  ====
−
One sometimes needs to define a family of functions depending on a set of parameters, ''e.g.''
+
One sometimes needs to define a family of functions depending on a set of parameters, e.g.,
[itex]f (x, y, z; a, b, c)[/itex]
+

+
[itex] f (x, y, z; a, b, c) [/itex]
+

where

where
[itex]x, y, z[/itex]
+

+
[itex] x, y, z [/itex]

denote a the variables on which the function operates and

denote a the variables on which the function operates and
[itex]a, b, c[/itex]
+

+
[itex] a, b, c [/itex]
+

are the parameters used to chose one specific element of the family of functions.

are the parameters used to chose one specific element of the family of functions.

For example, let's say we want to implement a function that given the spring constant

For example, let's say we want to implement a function that given the spring constant
[itex]k[/itex] and the initial elongation [itex]x_0[/itex] of a
+

+
[itex] k [/itex]
+

+
and the initial elongation
+

+
[itex] x_0 [/itex]
+

+
of a spring, computes the time evolution of the elongation
+

+
[itex] x (t ; x_0, k) [/itex]
+

+
by solving the Cauchy problem
+

+
[itex] x' = - k x\\ x(0) = x_0 [/itex]
+

==== Solution ====

==== Solution ====

==== Discussion ====

==== Discussion ====
349

edits