You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-10Lines changed: 37 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,16 @@ using TypedPolynomials
18
18
@set x == z^2&& y == z^3
19
19
```
20
20
21
+
The following example shows how to build an [basic semialgebraic set](http://www.mit.edu/~parrilo/cdc03_workshop/10_positivstellensatz_2003_12_07_02_screen.pdf)
22
+
```julia
23
+
using TypedPolynomials
24
+
@polyvar x y
25
+
@set x^2+ y^2<=1# Euclidean ball
26
+
# Cutting the algebraic variety https://en.wikipedia.org/wiki/Algebraic_variety#/media/File:Elliptic_curve2.png
27
+
@set y^2== x^3- x && x <=0
28
+
@set y^2== x^3- x && x >=1
29
+
```
30
+
21
31
## Solving systems of algebraic equations
22
32
23
33
Once the algebraic set has been created, you can check whether it is zero-dimensional and if it is the case, you can get the finite number of elements of the set simply by iterating over it, or by using `collect` to transform it into an array containing the solutions.
@@ -32,9 +42,13 @@ The code sample above solves the system of algbraic equations by first
32
42
computing a *Gröbner basis* for the system, then the multiplication matrices
33
43
and then a Schur decomposition of a random combination of these matrices.
34
44
Additionally, SemialgebraicSets defines an interface that can be implemented by
35
-
other solvers for these systems.
36
-
This allows for instance to solve the systems with
The following example shows how to build an [basic semialgebraic set](http://www.mit.edu/~parrilo/cdc03_workshop/10_positivstellensatz_2003_12_07_02_screen.pdf)
72
+
### Solve with [MacaulayLab](http://www.macaulaylab.net/)
73
+
74
+
You can solve the system with
75
+
[MacaulayLab](http://www.macaulaylab.net/) as follows.
76
+
First install [MacaulayLab.jl](https://github.com/blegat/MacaulayLab.jl)
77
+
and then run the following:
59
78
```julia
60
-
using TypedPolynomials
61
-
@polyvar x y
62
-
@set x^2+ y^2<=1# Euclidean ball
63
-
# Cutting the algebraic variety https://en.wikipedia.org/wiki/Algebraic_variety#/media/File:Elliptic_curve2.png
0 commit comments