Skip to content

Commit 5c67809

Browse files
authored
Merge pull request sagemath#304 from passagemath/README-msolve
passagemath-msolve README
2 parents d65f93e + b836d21 commit 5c67809

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

pkgs/sagemath-msolve/README.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,24 @@ About this pip-installable distribution package
2323
-----------------------------------------------
2424

2525
This pip-installable source distribution ``sagemath-msolve`` provides an interface to `msolve <https://msolve.lip6.fr/>`_, which implements computer algebra algorithms for solving polynomial systems (with rational coefficients or coefficients in a prime field).
26+
27+
28+
Examples
29+
--------
30+
31+
A quick way to try it out interactively::
32+
33+
$ pipx run --pip-args="--prefer-binary" --spec "passagemath-msolve[test]" ipython
34+
35+
In [1]: from sage.all__sagemath_msolve import *
36+
37+
In [2]: R = PolynomialRing(QQ, 2, names=['x', 'y'], order='lex')
38+
39+
In [3]: x, y = R.gens()
40+
41+
In [4]: I = Ideal([ x*y - 1, (x-2)**2 + (y-1)**2 - 1])
42+
43+
In [5]: I.variety(RBF, algorithm='msolve', proof=False)
44+
Out[5]:
45+
[{x: [2.76929235423863 +/- 2.08e-15], y: [0.361103080528647 +/- 4.53e-16]},
46+
{x: 1.000000000000000, y: 1.000000000000000}]

0 commit comments

Comments
 (0)