Questions tagged [bigfloat]

33 questions
2
votes
1 answer

Symbol not found: _mpfr_acos, Expected in: flat namespace

I am trying to run a Python script that includes multiple packages. The error I continuously get involves the mpfr.so file (MPFR module). Here are the contents of the entire message: Traceback (most recent call last): File…
rebekah
  • 21
  • 1
2
votes
3 answers

installing Python bigfloat module

I'm trying to get the bigfloat Python package onto my mac, but I'm not very good at this sort of thing. I have downloaded the latest package as described here. The documentation says: In order to use the bigfloat package you will need to have both…
user1551817
  • 6,693
  • 22
  • 72
  • 109
1
vote
0 answers

Handling very (while not arbitrary) small or big floating point numbers in C++

Our program manipulates extensively real numbers that happen to be very small or big. while we don't need a very high precision. We are strongly concerned about performance (CPU usage). Such numbers could be 2.5687e-45785 , for instance. Remark : as…
1
vote
1 answer

Ploting a function with BigFloats values in Julia

I have a function ( lets call it test(M) ), that "spits out" only BigFloats, like shown below. test(100) 22.48487818538224586950434052086250350042005040604872584710165219826379165499864 I would like to plot this function. Howver, it seems that this…
1
vote
0 answers

Avoid scientific notation in the numerical output of mathematical calculations of decimal numbers in javascript

I have a function that performs mathematical calculations on various numbers, including decimal numbers, and returns two string and numeric outputs. The problem I have with numeric output for decimal numbers is that it is a scientific notation.…
1
vote
1 answer

Convert Autograd ArrayBox to BigFloat

As said in the title, I want to convert from Autograd ArrayBox to BigFloat. My function is simple: def fun(mean, variance, bin_mean, bin_variance): first = np.float(bf.sqrt(1.0 * bin_variance / (bin_variance + variance))) second_numerator…
Đorđe Relić
  • 418
  • 4
  • 13
1
vote
1 answer

trigamma and digamma functions for bigfloat variable in python

I need to compute the scipy.special trigamma and digamma functions of a variable with type bigfloat in python but I get the following error message: TypeError: ufunc 'psi' not supported for the input types, and the inputs could not be safely coerced…
Shayla
  • 11
  • 3
1
vote
1 answer

Bigfloat - Error in the precision

I'm trying to use Bigfloat library in python 2.7. from bigfloat import * f1 = Context(precision=2000) with precision(2000): f1 = 1e-19*1e-19*9e9/((1-1e-18)*(1-1e-18))-1e-19*1e-19*9e9 with precision(100): f2 =…
user84055
  • 33
  • 4
1
vote
1 answer

python bigfloat installation issues

My Problem is similar to this poster and I'm using a MAC OsX 10.9.5 version: python 'bigfloat' package installation issues When I try to install the "mpc-1.0.2" package, it doesn't compile and gives this error: grep: /home/case/local/lib/libgmp.la:…
ML_Passion
  • 1,031
  • 3
  • 15
  • 33
1
vote
3 answers

Installing bigfloat, GMP and MPFR in windows for python

I am trying to install bigfloat in Python 3.2 on a Windows 7 machine. The documentation says that I first need to install GMP and MPFR. I have downloaded both of these to my desktop (as well as the bigfloat package). However as they are C packages I…
Nate Ackerman
  • 111
  • 1
  • 2
0
votes
0 answers

Third party library variables not defined in Cmath library (?)

I'm kind of a newbie with c++ so just a heads up there. I have added a third party arbitrary precision arithmetic library called "bigfloat" to my c++ project (https://github.com/Mariotti94/BigFloat) because I need some high precision when…
user18514413
0
votes
1 answer

BigFloat calculations produce different results in various machines

I am using a third-party library in my project for BigFloat values (I used these two libraries https://github.com/Osinko/BigFloat and https://www.nuget.org/packages/BigFloat). The results I get in my machine is the wanted results; however, when I…
Sanam
  • 77
  • 1
  • 11
0
votes
1 answer

Python: BigFloat+Multiprocessing

I am trying to parallelise a series of computations that use bigfloat. However, there is the error Error sending result: '[BigFloat.exact('1.0000000', precision=20)]'. Reason: 'TypeError('self._value cannot be converted to a Python object for…
PepeToro
  • 559
  • 4
  • 14
0
votes
1 answer

How to exponentiate two big floats

I am using golang math/big package, and when I read the documentation, i could not find a exponentiate function for bigFloats. I found something called MantExp but i do not know what this means. How can I exponent floating point bignumbers in go?
Ank i zle
  • 2,089
  • 3
  • 14
  • 36
0
votes
1 answer

Install big float on mac OS X

I am trying to install big float on OS X but i am encountering multiple issues. I have installed amp without any problem, but when I have tried to install mpfr I got this error: Warning: mpfr-3.1.5 already installed, it's just not linked. What…
lelli
  • 41
  • 8