Skip to content

Commit fe3ffb8

Browse files
committed
update for better Latexify display
1 parent 21e944e commit fe3ffb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/model_creation/dsl_basics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,10 @@ Catalyst comes with the following predefined functions:
267267
### [Registration of non-algebraic functions](@id dsl_description_nonconstant_rates_function_registration)
268268
Previously we showed how user-defined functions [can be used in rates directly](@ref dsl_description_nonconstant_rates_available_functions). For functions containing more complicated syntax (e.g. `for` loops or `if` statements), we must add an additional step: registering it using the `@register_symbolic` macro. Below we define a function which output depends on whether `X` is smaller or larger than a threshold value. Next, we register it using `@register_symbolic`, after which we can use it within the DSL.
269269
```@example dsl_basics
270-
threshold_func(X) = (X < 10) ? X : 10.0
271-
@register_symbolic threshold_func(X)
270+
thresfunc(X) = (X < 10) ? X : 10.0
271+
@register_symbolic thresfunc(X)
272272
rn = @reaction_network begin
273-
threshold_func(X), 0 --> X
273+
thresfunc(X), 0 --> X
274274
d, X --> 0
275275
end
276276
```

0 commit comments

Comments
 (0)