Skip to content

Commit

Permalink
Merge pull request #38 from endjin/features/linear-algebra-mathjax
Browse files Browse the repository at this point in the history
Add MathJax to Linear Algebra examples
  • Loading branch information
idg10 authored Mar 18, 2024
2 parents 14c1298 + 4328c34 commit 150895c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
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
4 changes: 2 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ param (
[string] $BuildModulePath,

[Parameter()]
[version] $BuildModuleVersion = "1.5.3",
[version] $BuildModuleVersion = "1.5.4",

[Parameter()]
[version] $InvokeBuildModuleVersion = "5.7.1"
[version] $InvokeBuildModuleVersion = "5.10.3"
)

$ErrorActionPreference = $ErrorActionPreference ? $ErrorActionPreference : 'Stop'
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 150895c

Please sign in to comment.