Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
bea87aaf
Verified
Commit
bea87aaf
authored
Dec 4, 2023
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Manual: minor formatting improvements
[skip ci]
parent
edaf9385
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/manual/source/the-model-file.rst
+15
-13
15 additions, 13 deletions
doc/manual/source/the-model-file.rst
with
15 additions
and
13 deletions
doc/manual/source/the-model-file.rst
+
15
−
13
View file @
bea87aaf
...
...
@@ -14371,16 +14371,16 @@ operators.
The following operators can be used on booleans:
* Comparison operators: ``==
,
!=``
* Logical operators: ``&&
, ||,
!``
* Comparison operators: ``==
``, ``
!=``
* Logical operators: ``&&
``, ``||``, ``
!``
.. rubric:: Real
The following operators can be used on reals:
* Arithmetic operators: ``+
, -, *, /,
^``
* Comparison operators: ``<
, >, <=, >=, ==,
!=``
* Logical operators: ``&&
, ||,
!``
* Arithmetic operators: ``+
``, ``-``, ``*``, ``/``, ``
^``
* Comparison operators: ``<
``, ``>``, ``<=``, ``>=``, ``==``, ``
!=``
* Logical operators: ``&&
``, ``||``, ``
!``
* Ranges with an increment of ``1``: ``REAL1:REAL2`` (for example, ``1:4``
is equivalent to real array ``[1, 2, 3, 4]``).
...
...
@@ -14389,9 +14389,11 @@ The following operators can be used on reals:
will create an array containing an array (i.e. ``[ [1, 2, 3, 4] ]``).
* Ranges with user-defined increment: ``REAL1:REAL2:REAL3`` (for example,
``6:-2.1:-1`` is equivalent to real array ``[6, 3.9, 1.8, -0.3]``).
* Functions: ``max, min, mod, exp, log, log10, sin, cos, tan, asin, acos,
atan, sqrt, cbrt, sign, floor, ceil, trunc, erf, erfc, gamma, lgamma,
round, normpdf, normcdf``. NB ``ln`` can be used instead of ``log``
* Functions: ``max``, ``min``, ``mod``, ``exp``, ``log``, ``log10``,
``sin``, ``cos``, ``tan``, ``asin``, ``acos``, ``atan``, ``sqrt``,
``cbrt``, ``sign``, ``floor``, ``ceil``, ``trunc``, ``erf``, ``erfc``,
``gamma``, ``lgamma``, ``round``, ``normpdf``, ``normcdf``. NB ``ln`` can
be used instead of ``log``
.. rubric:: String
...
...
@@ -14399,7 +14401,7 @@ String literals have to be enclosed by **double** quotes (like ``"name"``).
The following operators can be used on strings:
* Comparison operators: ``<
, >, <=, >=, ==,
!=``
* Comparison operators: ``<
``, ``>``, ``<=``, ``>=``, ``==``, ``
!=``
* Concatenation of two strings: ``+``
* Extraction of substrings: if ``s`` is a string, then ``s[3]`` is
a string containing only the third character of ``s``, and
...
...
@@ -14413,8 +14415,8 @@ Tuples are enclosed by parentheses and elements are separated by commas (like
The following operators can be used on tuples:
* Comparison operators: ``==
,
!=``
* Functions: ``empty
,
length``
* Comparison operators: ``==
``, ``
!=``
* Functions: ``empty
``, ``
length``
.. rubric:: Array
...
...
@@ -14424,7 +14426,7 @@ by commas (like ``[1,[2,3],4]`` or ``["US", "FR"]``).
The following operators can be used on arrays:
* Comparison operators: ``==
,
!=``
* Comparison operators: ``==
``, ``
!=``
* Dereferencing: if ``v`` is an array, then ``v[2]`` is its 2nd element
* Concatenation of two arrays: ``+``
* Set union of two arrays: ``|``
...
...
@@ -14436,7 +14438,7 @@ The following operators can be used on arrays:
* Extraction of sub-arrays: e.g. ``v[4:6]``
* Testing membership of an array: ``in`` operator (for example:
``"b"`` in ``["a", "b", "c"]`` returns ``1``)
* Functions: ``empty
, sum,
length``
* Functions: ``empty
``, ``sum``, ``
length``
.. rubric:: Comprehension
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment