| | |
Big Numbers Problem
Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
1
#11 Oct 30th, 2009
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: 22
Reputation:
Solved Threads: 0
0
#12 Nov 2nd, 2009
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
Views: 451 | Replies: 12
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast button buttons c# chat check checkbox class client code color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development drawing encryption enum event excel file files form format ftp function gcd gdi+ http httpwebrequest image index input java list listbox listener login mandelbrot math mouseclick mysql networking object oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting richtextbox save saving server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml





