Cookbook: Difference between revisions

Jump to navigation Jump to search
164 bytes removed ,  22 August 2012
Line 73: Line 73:
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 need to compute the time evolution of the elongation of
a spring for different values of the spring constant  


<math> k </math>
<math> k </math>
 
and the initial elongation
 
<math> x_0 </math>
 
of a spring, computes the time evolution of the elongation
 
<math> x (t ; x_0, k) </math>
 
by solving the Cauchy problem
 
<math> x' = - k x\\ x(0) = x_0 </math>


==== Solution ====
==== Solution ====
349

edits

Navigation menu