Topic: "Programming with Big Numbers?" (page 2 of 2)

< 1 2
Author Post
unknown user
how did ya notice ?
EMail
belo
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
I didn't solve any challenges involving programming with big number (yet) but there is a language supporting big number with arbitrary precision (without additional libs). Its oz (linkhttp://www.mozart-oz.org). It's a very powerful language but quite unusual if you never program with declarative language. Actually, its more an academic language than a production one but still ... interesting.

Belo
private message
Chaosdreamer
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
I have tried to implement the NTL library for c/c++ as The Hivemind suggested, but I continually get the same error when I try to compile. I have tried to work out what is wrong, but I have no idea. :wall: I am still in the early stages of learning, and would like to start using the Big Integers class (ZZ.h) but this is the only file in all of the NTL library that seems to be causing a problem. The error message is:

"ZZ.h": E2015 Ambiguity between 'negate(ZZ &,const ZZ &)' and '_STL::negate<_Tp>' in function operator -(const ZZ &) at line 342

Any help from any of you c geniuses would be greatly appreciated. :thumbsup:
private message
chameleon
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
i use java for these kinds of problems

it is just slightly slower than c/c++ but it provides some basic things c doesn't have

for example there is a class called BigInteger which can hold an nearly unlimited amounts of bits (limited by your RAM)
for simplier problems the 64-Bit type long is even better (faster)

vb is always slower than c or java but can also be used
i just don't like vb because it is not a typed language (or not always) and therefore i get too much runtime errors

c is just too complicated for me (see the error post above ;))
private message

Topic: "Programming with Big Numbers?" (page 2 of 2)

< 1 2