Skip to content

Commit

Permalink
save progress. Mention help mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
TorkelE committed May 24, 2024
1 parent 00659b4 commit faf2d81
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ area = length * width
```@example ex1
min(1.0, 3.0)
```
Julia has a specific *help mode*, which can be [queried for information about any function](https://docs.julialang.org/en/v1/stdlib/REPL/#Help-mode) (including those defined by Catalyst).

Each Julia variable has a specific *type*, designating what type of value it contains. While not directly required to use Catalyst, this is useful to be aware of. To learn the type of a specific variable, use the `typeof` function. More information about types can be [found here](https://docs.julialang.org/en/v1/manual/types/).
```@example ex1
Expand Down Expand Up @@ -87,7 +88,7 @@ For more information on how to use the Catalyst model creator (also known as *th

Next, we wish to simulate our model. To do this, we need to provide some additional information to the simulator. This is
* The initial condition. That is, the concentration (or copy numbers) of each species at the start of the simulation.
* The timespan. That is, the timeframe over which we wish to run the simulation.
* The time span. That is, the time frame over which we wish to run the simulation.
* The parameter values. That is, the values of the model's parameters for this simulation.

The initial condition is given as a *Vector*. This is a type which collects several different values. To declare a vector, the values are specific within brackets, `[]`, and separated by `,`. Since we only have one species, the vector holds a single element. In this element, we set the value of $X$ using the `:X => 1.0` syntax. Here, we first denote the name of the species (with a `:` pre-appended, which creates a `Symbol`), next follows a `=>` and then the value of $X$. Since we wish to simulate the *concentration* of X over time, we will let the initial condition be decimal valued.
Expand Down

0 comments on commit faf2d81

Please sign in to comment.