English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

It will help to have paste and copy functions what language should I use to make a programme to do it, and if possible can you write a simple programme to do this ?

2007-02-06 22:08:21 · 4 answers · asked by joey 3 in Computers & Internet Programming & Design

4 answers

Your number is too big. Maybe break it down into a 5000 element array-- then use a few other arrays and systematically perform the math using the array elements as decimal places. start small and figure out an algorith and then once you figure something out apply it to your 5000 digit number.

In other words, if you used a 64 bit number you still would only get values 0 - 18446744073709551615 .... which is far from the 5000 digits you want. So youre gonna have to do it using a series of small calculations done on small integers. Use C++ / C# because they can handle lots of work with ease. And download visual studio express because it have a library of built in classes that will save you a ton of time.

2007-02-14 07:16:49 · answer #1 · answered by bonesawosu 2 · 0 0

The .net 3.0 architecture has an object called BigInteger which can handle any size integer, provided there is memory to fit it. I do not know or think it supports the square root operation, but you can check. The program to do this would be trivial, yet not simple.

2007-02-07 10:09:00 · answer #2 · answered by Pfo 7 · 0 0

You're going to have to program your own squareroot function using strings to hold such big numbers. Unless of course, you have a 128-bit PC at your disposal, and then you'll be doing just fine.

Best of luck to you!

2007-02-07 06:22:11 · answer #3 · answered by Anonymous · 1 0

a program written in JAVA

2007-02-07 06:17:15 · answer #4 · answered by iyiogrenci 6 · 1 0

fedest.com, questions and answers