bignum Questions
1
Solved
i've got a short haskell function here that is supposed to convert "ABCDEF" into 0x41,0x42,0x43,0x44,0x45,0x46 (their ascii values), then multiply them so it becomes 0x4142,4344,4546 but it seems t...
1
Solved
2^64 is still far from the "infinity" my ram/hard drive can handle...
First I wonder how GMP works with memory/processor since it does some kind of shady optimisations...
I was also wondering if ...
4
Solved
Is there is some mathematical "optimum" base that would speed up factorial calculation?
Background:
Just for fun, I'm implementing my own bignum library. (-: Is this my first mistake? :-).
I'm exp...
Scarabaeoid asked 19/6, 2010 at 22:1
1
Solved
Is there a bignum built into JavaScript or browsers?
The alternate is loading an external library like
<script type="text/javascript" src="the_bignum_library.js"></scri...
Dinosaurian asked 18/6, 2010 at 18:47
7
Solved
This is Problem 3 from Project Euler site
I'm not out after the solution, but I probably guess you will know what my approach is. To my question now, how do I handle numbers exceeding unsigned int...
5
Solved
When doing calculations on very large numbers where integral data types such as double or int64 falls short, a separate class to handle such large numbers may be needed.
Does anyone care to offer...
Karsten asked 25/8, 2008 at 14:20
3
Solved
I need to get the square root of a 210 digit number accurately, I thought GMP was the right tool for the job, what am I doing wrong?
#include <stdlib.h>
#include <stdio.h>
#include "gm...
1
Solved
I'm trying to use the bignum module in Perl and want to set the precision. I know this can be done via a one liner as detailed on the module's CPAN page:
$ perl -Mbignum=p,-50 -le 'print sqrt(20)'...
6
I'm doing some Project Euler problems and most of the time, the computations involve large numbers beyond int, float, double etc.
Firstly, I know that I should be looking for more efficient ...
Triable asked 2/1, 2010 at 10:21
5
Solved
Does .NET come with a class capable of representing extremely large integers, such as 100 factorial? If not, what are some good third party libraries to accomplish this?
3
Solved
I just finished my exam in an introductory C course about 20 minutes ago. The first question on the exam caught me somewhat off guard, and involved finding the difference two large numbers.
The go...
Ornie asked 22/8, 2009 at 20:17
3
Solved
I am still a student, and I find project Euler very fun.
sometimes the question requires calculations that are bigger than primitive types. I know you can implement it but I am too lazy to d...
5
Solved
I know how to convert binary to decimal. I know at least 2 methods: table and power ;-)
I want to convert binary to decimal and print this decimal. Moreover, I'm not interested in this `decimal'; ...
4
Solved
Given Wikipedia's discussion of Double Factorials, can anyone suggest where I might find a bignum version of this for Perl, or else suggest how it might be written?
6
Is there any lib that convert very long numbers to string just copying the data?
These one-liners are too slow:
def xlong(s):
return sum([ord(c) << e*8 for e,c in enumerate(s)])
def xstr(...
3
Solved
In the code below I use mpf_add to add the string representation of two floating values. What I don't understand at this point is why 2.2 + 3.2 = 5.39999999999999999999999999999999999999. I would h...
Stipel asked 7/10, 2008 at 15:14
© 2022 - 2024 — McMap. All rights reserved.