Skip to content

Commit

Permalink
Add MathJax to Linear Algebra examples
Browse files Browse the repository at this point in the history
This makes it clear what linear equations we're actually solving, so the reader doesn't have to try and work that out at the same time as trying to comprehend how the code goes about doing this.
  • Loading branch information
idg10 committed Mar 18, 2024
1 parent 14c1298 commit 942cf8e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ using (var ctx = new Z3Context())

### Problem - Linear Algebra

Solve the following system with 3 variables, with linear equalities and inequalities.
Solve the following system with 3 variables, with linear equalities and inequalities:

$$
x_1 - x_2 \ge 1
\\
x_1 - x_2 \le 3
\\
x_1 = 2x_3 + x_2
$$

```csharp
using (var ctx = new Z3Context())
Expand Down
8 changes: 8 additions & 0 deletions examples/z3-problems.dib
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ using (var ctx = new Z3Context())

Solve the following system with 3 variables, with linear equalities and inequalities.

$$
x_1 - x_2 \ge 1
\\
x_1 - x_2 \le 3
\\
x_1 = 2x_3 + x_2
$$

#!csharp

using (var ctx = new Z3Context())
Expand Down

0 comments on commit 942cf8e

Please sign in to comment.