| | |
Big Numbers Problem
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
1
#11 24 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 21 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 api array asp.net barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom database databaseconnection datagrid datagridview dataset datetime dbconnection degrees design development draganddrop drawing encryption enum eventhandlers excel file firefox form format forms function gdi+ grantorrevokepermissionthroughc#.net image index input install java label libraries list listbox loop mandelbrot marshalbyrefobject math mouseclick movingimage mysql mysql.data.client operator path photoshop php picturebox pixelinversion platform post programming radians regex remoting resourcefile richtextbox server sleep socket sql statistics stream string study system.servicemodel table tcpclientchannel text textbox thread time timer update usercontrol validation visualstudio webbrowser windows winforms wpf wpfc# xml





