Questions tagged [bigfloat]
33 questions
14
votes
2 answers
Is there a BigFloat class in C#?
System.Numerics.BigInteger lets you multiply large integers together, but is there anything of the same type for floating point numbers? If not, is there a free library I can use?
//this but with floats
System.Numerics.BigInteger maxint = new…

jb.
- 9,921
- 12
- 54
- 90
4
votes
1 answer
Is there a way to stop Julia using scientific (exponential) notation with BigFloats?
OK, I have what seems to be, on the face of it, a simple problem. I want to take the decimal part of an irrational number up to a specified number of digits and treat that as an integer. For example, if my irrational number is 2.657829... and I want…

Mark Birtwistle
- 362
- 2
- 10
4
votes
1 answer
Julia: BigFloat Normal distribution
In Julia has anyone implemented the normal distributions pdf or cdf to support arbitrary precision BigFloats.
For example this code returns 0.0, when in fact the values should be slightly different.
x = parse(BigFloat, "2.1")
x_small =…

Rob Donnelly
- 2,256
- 2
- 20
- 29
4
votes
2 answers
python 'bigfloat' package installation issues
I'm trying to get the package 'bigfloat' installed on my Mac (OS X 10.8.4), and I'm running into some issues. The package 'bigfloat' requires two other dependencies: 1) mpfr, and 2) gmp.
I've installed gmp here: http://gmplib.org/ <-- This seemed…

astromax
- 6,001
- 10
- 36
- 47
3
votes
1 answer
How to use setprecision in Julia under MacOS?
I am the author of this question, Bogumił Kamiński helped me solve the problem, however, I changed computers, I am using MacOs and when I went to reproduce the example, I couldn't.
this is my code in the julia environment:
julia>…

Tomaz
- 181
- 4
3
votes
1 answer
precision in julia
I am having trouble working with high precision in julia. I am not able to set a precision of 240 decimal places. I am currently using the BigFloat package, it is the most suitable for me at the moment.
I have this code:
epsilon = big(10)^(-240)
a…

Tomaz
- 181
- 4
3
votes
1 answer
How to use setprecision in Julia?
I am trying to increment a code that uses the setprecision function, but every time I use an example, however simple, it always gives the same error.
when I do:
x = big"1.23456789" setprecision(x, 20)
I get the following error:
ERROR: LoadError:…

Tomaz
- 181
- 4
3
votes
2 answers
Fast BigFloat unit for Delphi
I'm looking for a fast BigFloat unit, which can deal with addition, subtraction, multiplication and division (log would be fine but isn't necessary) and which has a precision of at least 100 decimal places.
I've tried this unit, but it's about 1,000…

Henry
- 65
- 6
3
votes
1 answer
Imprecise floats in Tupper's self-referential formula
I am trying to make a Python program that plots Tupper's self-referential formula and I have run into some problems.
First my program couldn’t handle the big floats it had to handle so I decided to use BigFloats to sort out my problems. It worked,…

Alexander Simko
- 183
- 2
- 12
2
votes
1 answer
What causes this loss of precision for increasing number of roots found?
I have a while loop that calculates the roots of my equation. It works perfectly when I am working with low numbers, for example 100, the precision is a little more than 250 decimal places (I need 250 decimal places of precision).
The problem is…

Willian Andrade
- 23
- 5
2
votes
2 answers
rationalize() for BigFloats has an upper limit?
I have the following code:
function recursion(i::BigFloat)
r = BigFloat(0)
if i >= 1.0
i = i - 1.0
r = 1.0/(2.0+recursion(i))
end
return r
end
function main()
solution = 0
i = BigFloat(1)
while i < 1000
…

MFerguson
- 1,739
- 9
- 17
- 30
2
votes
1 answer
pushing a big float inside a tuple Julia
I am trying to "push" a big float into a Tuple. But get following error:
# where test() is a function with big floats as values
store = Tuple{Any, Any}][]
for i in 1:10
push!(store, test(i))
end
store
The error message mentions convert() as a…

Struggling_Student
- 454
- 3
- 17
2
votes
2 answers
Calculating big float number fast like 0.4 ^ 100000000 ,, any ideas?
Ehm ... I got a problem
I've a certain calculation that result is over 10^-308 (the biggest value in double .net ) any way I solved this problem through a library called BIGFLOAT http://www.fractal-landscapes.co.uk/bigint.html ,
What ever I need…

xsari3x
- 442
- 2
- 12
- 36
2
votes
1 answer
Precision issue of Golang big.Float
I've met some interesting problem of Golang big.Float calculation.
The Problem is
10001000100010001000100010001000100010001000100015.5533 / 1000000000000000000
= 10001000100010001000100010001000.1000100010001000155533
However, big.Float gave…

William Shih
- 33
- 1
- 3
2
votes
1 answer
Python Numpy Exponential Value from Array of BigFloats
I'm trying to compute the natural log of the exponential plus the median of an array but precision of the floating point numbers has to be at 2000 or the answer will always be 0.
Here is what I have so far:
import bigfloat
x =…

Kenneth Orton
- 399
- 1
- 11