Minor corrections in README.md

This commit is contained in:
Miguel Marco 2017-03-20 13:47:37 +01:00
parent bde0120212
commit 56e328f1d6
Signed by: mmarco
GPG Key ID: DD0114EDB7410592
2 changed files with 9 additions and 16 deletions

View File

@ -3,7 +3,7 @@
## General description. ## General description.
This is a library for computing homotopy continuation of a given root of one This is a library for computing homotopy continuation of a given root of one
dimensional sections of bivariate complex polynomials (of degree greater than 2). dimensional sections of bivariate complex polynomials.
The output is a piecewise linear aproximation of the path followed by the root, The output is a piecewise linear aproximation of the path followed by the root,
with the property that there is a tubular neighborhood, with square transversal with the property that there is a tubular neighborhood, with square transversal
section, that contains the actual path, and there is a three times thicker tubular section, that contains the actual path, and there is a three times thicker tubular
@ -25,7 +25,7 @@ the [MPFR](http://www.mpfr.org/) and [GMP](https://gmplib.org/) libraries.
## Usage: ## Usage:
After installing the library, you can call it from any .cpp program by calling After installing the library, you can call it from any .cpp program by calling
the homotopyPath or homotopyPath_mp functions. In the file tests/sirocco_test.cpp the `homotopyPath` or `homotopyPath_mp` functions. In the file tests/sirocco_test.cpp
you can see a simple example you can see a simple example
### Double precission: ### Double precission:

View File

@ -20,13 +20,6 @@ cdef extern from "sirocco.h":
def devuelve(RealNumber a):
cdef mpfr_prec_t ap = mpfr_get_prec(a.value)
cdef RealNumber my_number = RealField(ap)()
mpfr_set(my_number.value, a.value, MPFR_RNDN)
return my_number
def contpath_mp(deg, values, RealNumber y0r, RealNumber y0i, int prec): def contpath_mp(deg, values, RealNumber y0r, RealNumber y0i, int prec):
cdef int cdeg = deg cdef int cdeg = deg
cdef mpfr_t* cvalues = <mpfr_t*> sage_malloc(sizeof(mpfr_t)*len(values)) cdef mpfr_t* cvalues = <mpfr_t*> sage_malloc(sizeof(mpfr_t)*len(values))