Questions tagged [flint]

FLINT: Fast Library for Number Theory

FLINT is a C library for doing number theory, maintained by William Hart. FLINT is licensed GPL v2+.

FLINT supports arithmetic with numbers, polynomials, power series and matrices over many base rings, including:

  • Multiprecision integers and rationals
  • Integers modulo n
  • p-adic numbers
  • Finite fields (prime and non-prime order)
  • Real and complex numbers (via the Arb extension library)
10 questions
2
votes
0 answers

flint/arb.h: No such file or directory

I'm trying to compile this simple FLINT program: #include "flint/arb.h" int main() { arb_t x; arb_init(x); arb_const_pi(x, 50 * 3.33); arb_printn(x, 50, 0); flint_printf("\n"); flint_printf("Computed with FLINT-%s\n",…
1
vote
0 answers

FLINT lib: how to delete a polynomial

In the library FLINT, we have the function fmpz_poly_clear to clear a fmpz_poly polynomial from the memory. But I am using the C++ interface of this library, so, my polynomials are of the type fmpz_polyxx or fmpz_mod_polyxx. I would like to know how…
0
votes
0 answers

Which finite fields are generated automatically by Nemo (which uses flint)

I'm doing a lot of arithmetic in finite fields, using Julia and the Nemo package (https://nemocas.github.io/Nemo.jl/stable/finitefield/). The documentation says @doc raw""" gen(a::FqPolyRepField) Return the generator of the finite field. Note that…
Kevin O'Bryant
  • 303
  • 2
  • 10
0
votes
0 answers

Why isn't my executable file created by a C program using the arblib library working?

I installed the arblib library using vcpkg and trying to run a simple program from their website (https://arblib.org/setup.html): #include "arb.h" int main() { arb_t x; arb_init(x); arb_const_pi(x, 50 * 3.33); arb_printn(x, 50, 0);…
0
votes
0 answers

Getting extended precision values of incomplete gamma functions using mpfr::mpreal

I am trying to obtain the value of an incomplete gamma function with complex arguments, to be precise I am interested in obtaining Gamma[0, a + i*b] for real parameters a,b. I'm using mpfr in C++ for the remainder of my code, and am facing the…
Lucas
  • 1
0
votes
0 answers

Is it possible to handle fractions of multivariate rational polynomials using flint or bpas lib

I have to simplify such expressions: (1 + 2*a)/(b*(1 + c)) - 1/c, simplifying this expression i need to get something like this: (2*a*c - b*c - b + c) / (b*c*(c + 1)). I tried to use fmpz_mpoly_q from flint/calcium library and…
wowonline
  • 1,061
  • 1
  • 10
  • 17
0
votes
0 answers

Value of Derived Type changes unexpectedly in C-Fortran Interoperability Code

In the following Fortran code which uses C library the value of tol changes unexpectedly. What might be the reason behind this behaviour? PROGRAM ComplexIntegral USE farblib IMPLICIT NONE TYPE(fmag_t) :: tol TYPE(facb_t) :: s, t, a,…
0
votes
0 answers

Maximum Size of an Array in FLINT?

I'm working on a project that uses the FLINT library, and I'm running into some problems defining a large fmpz array. Here's a minimal example of the problem #include #include #include…
0
votes
1 answer

Why do I get a configure error when installing MPIR?

I'm having a hard time because I've trying since three days to install the FLINT2 (Fast Library In Number Theory) library for c++ and use it in Visual Studio 2019. I discovered upon the reading of the documentation that I needed first to install…
0
votes
0 answers

Visual Studio Error 2784 : could not deduce template argument for GMP from FLINT

I have a problem running the source code of "homomorphic Simon encryption using YASHE and FV leveled homomorphic cryptosystems" (https://github.com/tlepoint/homomorphic-simon) in Visual Studio 2012. I'm using FLINT 2.5.2, MPIR 2.7.2, MPFR 1.3.1…