| | |
Big Numbers Problem
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
1
#11 27 Days Ago
Ok, let's take an example:
137*1456
We can factorize it:
137*(1000 + 400 + 50 + 6)
To see the connection, we can convert this in form like this:
137*(1*10^3 + 4*10^2 + 5*10^1 + 6*10^0)
(where ^ means powering)
So, depending on the position of the digit in the number, we can represent it in such view (see above).
so, what we have:
137*1456=137*1*10^3 + 137*4*10^2 + 137*5*10^1 + 137*6*10^0
All you have to do now - is extract algorithm from this and code it
137*1456
We can factorize it:
137*(1000 + 400 + 50 + 6)
To see the connection, we can convert this in form like this:
137*(1*10^3 + 4*10^2 + 5*10^1 + 6*10^0)
(where ^ means powering)
So, depending on the position of the digit in the number, we can represent it in such view (see above).
so, what we have:
137*1456=137*1*10^3 + 137*4*10^2 + 137*5*10^1 + 137*6*10^0
All you have to do now - is extract algorithm from this and code it
So what if you can see the darkest side of me?
No one would ever change this animal I have become
Help me believe it's not the real me
Somebody help me tame this animal
No one would ever change this animal I have become
Help me believe it's not the real me
Somebody help me tame this animal
•
•
Join Date: Apr 2009
Posts: 19
Reputation:
Solved Threads: 0
0
#12 24 Days Ago
dear Antenka i forgot to check for new replies
but anyway thank you so much for your efforts i am done , i solved it by multiplying the two arrays and putting the results in two D dimensional arrays
then adding each column elements and puttin the result in anew array
its workin properly
thank you anyway again
but anyway thank you so much for your efforts i am done , i solved it by multiplying the two arrays and putting the results in two D dimensional arrays then adding each column elements and puttin the result in anew array
its workin properly
thank you anyway again
él¡é
![]() |
Other Threads in the C# Forum
- Previous Thread: What is designer.cs?
- Next Thread: Seperating UI code
| Thread Tools | Search this Thread |
.net access algorithm appportability array avltree barchart bitmap box broadcast c# capturing check checkbox client combobox control conversion csharp custom customactions database datagrid datagridview dataset datetime degrees delegate development disappear draganddrop drawing encryption enum error event excel file form format forms function gdi+ http httpwebrequest image index input install java label list listbox mailmerge mandelbrot math monodevelop mouseclick mysql operator path photoshop picturebox pixelinversion pixels post programming radians regex remote remoting resolved. richtextbox rotation server sleep socket sockets sql statistics stream string table text textbox thread time timer transparency update usercontrol validation virtualization visualbasic visualstudio webbrowser windows winforms wpf xml





