@@ -308,14 +308,14 @@ To fully understand what is going on, let me explain it step by step.
308
308
First we load the module that make
309
309
the calculations: L < C < Math::Model > |https://github.com/moritz/Math-Model> .
310
310
311
- = begin code :skip-test<Snippet for explanantion purposes>
311
+ = begin code :skip-test<Snippet for explanation purposes>
312
312
use Math::Model;
313
313
= end code
314
314
= end item
315
315
316
316
= begin item
317
317
We create the model to add all the information in it.
318
- = begin code :skip-test<Snippet for explanantion purposes>
318
+ = begin code :skip-test<Snippet for explanation purposes>
319
319
my $m = Math::Model.new(
320
320
= end code
321
321
= end item
@@ -325,7 +325,7 @@ We declare the derivatives that are in our model. In this case, if
325
325
you remember our equation, we have our variable I < x > and its derivative
326
326
I < x' > (usually know as the velocity).
327
327
328
- = begin code :skip-test<Snippet for explanantion purposes>
328
+ = begin code :skip-test<Snippet for explanation purposes>
329
329
derivatives => {
330
330
velocity => 'x',
331
331
},
@@ -338,7 +338,7 @@ formulas for the derivatives that are not also integration variables
338
338
(in this case, only I < x > ), and for other variables we use in the formulas
339
339
(the growth rate).
340
340
341
- = begin code :skip-test<Snippet for explanantion purposes>
341
+ = begin code :skip-test<Snippet for explanation purposes>
342
342
variables => {
343
343
velocity => { $:growth_constant * $:x},
344
344
growth_constant => { 1 }, # basal growth rate
@@ -352,7 +352,7 @@ Finally we declare our initial conditions and use I<captures> to
352
352
tell L < C < Math::Model > |https://github.com/moritz/Math-Model> which
353
353
variable or variables to record while the simulation is running.
354
354
355
- = begin code :skip-test<Snippet for explanantion purposes>
355
+ = begin code :skip-test<Snippet for explanation purposes>
356
356
initials => {
357
357
x => 3,
358
358
},
0 commit comments