This discussion is closed.
Camford
Badges: 12
Rep:
?
#1
Report Thread starter 17 years ago
#1
Does anyone know any place on the internet where I can find a program to do multiplication for me? I need something that can deal with numbers that have more than 40 digits.

P.S. If you are really bored, can you help me to check that if

99988855898465431321564687561321 321396325
*
25605658465421321654687987984546 54362132
=
25602804944843340132373992220425 52551102128566883517288553622616 30987506443964900
0
theone
Badges: 0
Rep:
?
#2
Report 17 years ago
#2
You could download matlab or maple or something...
0
Angel Lory
Badges: 0
Rep:
?
#3
Report 17 years ago
#3
(Original post by Camford)
Does anyone know any place on the internet where I can find a program to do multiplication for me? I need something that can deal with numbers that have more than 40 digits.

P.S. If you are really bored, can you help me to check that if

99988855898465431321564687561321 321396325
*
25605658465421321654687987984546 54362132
=
25602804944843340132373992220425 52551102128566883517288553622616 30987506443964900
Dude! I hope you don't do that for fun!!
0
Camford
Badges: 12
Rep:
?
#4
Report Thread starter 17 years ago
#4
(Original post by theone)
You could download matlab or maple or something...
The limit for longint is something in the 10^32 region, meaning that the largest whole number it can handle has 32 digits. Although real number is longer, but the answer it gives is not as accurate.

Any Ideas?
(Original post by Angel Lory)
Dude! I hope you don't do that for fun!!
I don't do it for fun. I just want to make sure that my Large Number Multiplier is doing the calculation correctly.
0
Rich
Badges: 2
Rep:
?
#5
Report 17 years ago
#5
(Original post by Camford)
Does anyone know any place on the internet where I can find a program to do multiplication for me? I need something that can deal with numbers that have more than 40 digits.

P.S. If you are really bored, can you help me to check that if

99988855898465431321564687561321 321396325
*
25605658465421321654687987984546 54362132
=
25602804944843340132373992220425 52551102128566883517288553622616 30987506443964900
That's wrong according to Mathematica, which gives the result as:

25602804944843340132373992220425 52551102128566883517288553622616 30987506443964900

Arbitrary precision integer multiplication is not difficult to write in a programming language such as C(++) or (God forbid, something like Visual Basic), just think about how you'd do long multiplication as a human and replicate it in a programming language.

If you don't have the necessary prerequisite programming skills, you have a few options, either acquire software such as Mathematica, Matlab or Maple (or there may be freeware software available for arbitrary precision arithmetic, I don't know). The Windows XP PowerToys calculator supports precision up to 512 bits which allows for numbers much longer than you have above. It's available from MS' site. Alternatively, I believe Java includes an arbitrary precision arithmetic package, if you have the Java skills to use it.

EDIT: It appears your calculation was in fact right, sorry.

I hope this helps,
0
NickNack
Badges: 1
Rep:
?
#6
Report 17 years ago
#6
why dont you do it by the power of the mind? shouldn't be too difficult especially with such small numbers! lol y do u need to know anyway?
0
Oli
Badges: 0
#7
Report 17 years ago
#7
Had to make a 60 digit calculator in computing last year...

PM me if u want it, ive got it lying about somewhere.
0
Camford
Badges: 12
Rep:
?
#8
Report Thread starter 17 years ago
#8
Thanks for the reply. I guess that means I have something here can deal with numbers which give products of 2*1024^3 digits. That's one hell of a number...

Next stop. Square rooting large numbers.

P.S. Program written in Delphi (Pascal).

Had to make a 60 digit calculator in computing last year...
Never did such thing in computing...had to do something to differentiate polynomials though...
0
elpaw
Badges: 15
Rep:
?
#9
Report 17 years ago
#9
i had to deal with large numbers while writing a combination of the enigma and RSA ciphers. i used an implementation in C++ called CLongInt<n>, where n is the number of bits. I had the source code somewhere, but I can't find it...
0
rzarector
Badges: 0
#10
Report 17 years ago
#10
I have been trying to implement this for a while now any idea on where i can start.
0
cobra
Badges: 14
Rep:
?
#11
Report 17 years ago
#11
Things like this are fun in mathematica, its just fun to do like 30000! just cos you can and end up with a number about 20 A4 pages long on size 12 font. Plotting 3d cylindrical spiarals using parametric coordinates is also fun, (sad i hear you call)
0
paragk
Badges: 0
#12
Report 17 years ago
#12
(Original post by Camford)
Does anyone know any place on the internet where I can find a program to do multiplication for me? I need something that can deal with numbers that have more than 40 digits.

P.S. If you are really bored, can you help me to check that if

99988855898465431321564687561321 321396325
*
25605658465421321654687987984546 54362132
=
25602804944843340132373992220425 52551102128566883517288553622616 30987506443964900
I have code/software and code that can multiply any number (any number of digits). contact me.. [email protected]
0
musicbloke
Badges: 15
Rep:
?
#13
Report 17 years ago
#13
why ot use gelosia on paper - it takes a little longer but is still pretty quick.
MB
0
X
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

Which of these would you use to help with making uni decisions?

Webinars (71)
12.18%
Virtual campus tours/open days (142)
24.36%
Live streaming events (51)
8.75%
Online AMAs/guest lectures (55)
9.43%
A uni comparison tool (135)
23.16%
An in-person event when available (129)
22.13%

Watched Threads

View All