• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

doc/H12-Jun-2020-2,1831,649

examples/H12-Jun-2020-11,6979,657

include/H12-Jun-2020-9,5964,902

m4/H12-Jun-2020-9,8688,925

mime/H12-Jun-2020-661574

src/H12-Jun-2020-95,99877,846

tools/H12-Jun-2020-819594

AUTHORSH A D02-Dec-2019119 43

COPYINGH A D02-Dec-201934.3 KiB675553

ChangeLogH A D12-Jun-20203.1 KiB7966

INSTALLH A D11-Jun-202015.4 KiB369287

Makefile.amH A D11-Jun-2020401 2418

Makefile.inH A D12-Jun-202027.4 KiB913812

READMEH A D12-Jun-20202.3 KiB8864

aclocal.m4H A D12-Jun-202060.6 KiB1,6781,518

compileH A D11-Jun-20207.2 KiB349259

config.guessH A D11-Jun-202043.2 KiB1,4811,288

config.h.inH A D12-Jun-20204.1 KiB161109

config.subH A D11-Jun-202035.3 KiB1,8021,661

configureH A D12-Jun-2020838.6 KiB27,35223,362

configure.acH A D03-May-202222.3 KiB734592

depcompH A D11-Jun-202023 KiB792502

install-shH A D11-Jun-202015 KiB519337

ltmain.shH A D11-Jun-2020319.6 KiB11,2528,044

missingH A D11-Jun-20206.7 KiB216143

py-compileH A D11-Jun-20204.6 KiB171124

test-driverH A D11-Jun-20204.5 KiB14987

ylwrapH A D11-Jun-20206.7 KiB248143

README

1MPSOLVE 3.2.1
2=============
3
4 MPSolve is a C package to solve polynomials and secular equations. It released under the terms
5 of the GNU General public license as it specified in the COPYING file inside the source directory.
6
7### How to install MPSolve
8
9If you have downloaded an official MPSolve tarball you can
10install MPSolve simply by typing these commands in a shell:
11
12    ./configure
13    make
14    [sudo] make install
15
16whilst, if you have checked out the git repository directly
17you have to use the script `autogen.sh` first, and then the
18usual `configure`, `make`, `make install` sequence.
19
20The last command is optional and install mpsolve system-wide. You can simply
21use the mpsolve executable built in its directory by launching
22`./src/mpsolve/mpsolve` from the source directory.
23
24Full install is needed to use MPSolve as a library in other C,
25FORTRAN, Matlab, ... software without further tweaking.
26
27The `examples/` folder contains a mix of example source files that use
28MPSolve and bindings for other programming languages such as Python,
29Octave, Matlab (TM), ...
30
31### Using the mpsolve binary
32
33The mpsolve binary is thought as a simple way to solve polynomials
34and/or secular equation using a text file as input. A generic
35input file for mpsolve is composed by a preamble and
36a body. The comments are identified by lines starting with '!'.
37
38In the preamble will be specified all the options for solving
39and some general information about the polynomial.
40The body will contain the coefficients.
41
42Every option in the preamble has to be specified as Key; or Key=value;
43This is an example of a valid input for mpsolve that specifies
44the polynomial x^5 - 1
45
46    ! File: nroots5.pol
47    Degree=5;
48    Monomial;
49    Real;
50    Integer;
51
52    -1
53     0
54     0
55     0
56     0
57     1
58
59    ! EOF
60
61 The same polynomial can be specified by using sparse notation:
62
63    ! File nroots5sparse.pol
64    Degree=5;
65    Monomial;
66    Real;
67    Integer;
68    Sparse;
69
70    5  1  ! Highest degree coefficient
71    0  -1 ! Coefficient of degree 0
72
73    ! EOF
74
75 If the `Real` option is not specified real and imaginary part of the coefficients
76 will be needed as input. Rational input is also used in here:
77
78    ! File: random-poly.pol
79    Degree=3;
80    Monomial;
81    Rational;
82
83    45/9 7/4
84    3/23 293/34234
85    234/2369234 2348234/324
86    324 234324/23
87
88