Computing.Net > Forums > Programming > Moore's law

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Moore's law

Reply to Message Icon

Name: donever
Date: February 19, 2009 at 11:09:53 Pacific
OS: windows pro x64
CPU/Ram: athlon 4g
Product: Custom / CUSTOM BUILD
Subcategory: General
Comment:

does anybody know moore's law formula?



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: February 19, 2009 at 11:50:43 Pacific
Reply:

only about 880,000 hits on google:

http://en.wikipedia.org/wiki/Moore'...


0

Response Number 2
Name: donever
Date: February 19, 2009 at 12:04:10 Pacific
Reply:

do you know the formula. assume if I have an input box to allow user to enter an integer between 1 and 10.the input number will double every 18 month. once integer input, the math will perform like this. so far this is what i got but the math does not double every 18 months.


Dim strInputComputerSpeed As String
Dim decInputComputerSpeed As Decimal
Dim decTotalComputerSpeed As Decimal
Dim decYear As Decimal = 1D

Do Until decYear > 15


strInputComputerSpeed = Me.txtInput.Text

If IsNumeric(strInputComputerSpeed) Then
decInputComputerSpeed = Convert.ToDecimal(strInputComputerSpeed)
If decInputComputerSpeed > 0 And decInputComputerSpeed <= 10 Then
decTotalComputerSpeed = decInputComputerSpeed + decInputComputerSpeed

Me.lstDisplay.Items.Add("After " & decYear & " years, your computer speed will reach " & decTotalComputerSpeed & " GHz")
decYear += 1

End If
End If
Loop


0

Response Number 3
Name: nails
Date: February 19, 2009 at 12:21:40 Pacific
Reply:

It's not really an exact calculation. Off that link I posted, you can see the transistor count since 1971:

http://en.wikipedia.org/wiki/Transi...


0

Response Number 4
Name: donever
Date: February 19, 2009 at 12:29:36 Pacific
Reply:

i need to know the formula!I know it double every 18 months. I'm trying to write this small application!


0

Response Number 5
Name: StuartS
Date: February 19, 2009 at 14:21:41 Pacific
Reply:

There is no precise formula. It is like Murphy's Law or Sod's Law or Godwin's Law even, it is aleatory.

Stuart


0

Related Posts

See More



Response Number 6
Name: donever
Date: February 19, 2009 at 14:38:07 Pacific
Reply:

here is the formula

T = I * 2

T represent total result. I, represent input variable. and 2 is the double. which mean if user enter 2 as the input the after 1 year, the result will be 4. it work for the first time but I cannot get the loop to repeat this for 15 time. anybody with any advice!


0

Response Number 7
Name: klint
Date: February 20, 2009 at 08:01:19 Pacific
Reply:

You are resetting decTotalComputerSpeed to the exact same value each time through your loop:

decTotalComputerSpeed = decInputComputerSpeed + decInputComputerSpeed

What you need to do is have a variable (decTotalComputerSpeed) that is initialized before entry into the loop, and then updated each time INSIDE the loop using the CURRENT value, not the initial value. I won't give you any more clues as that would spoil the fun.


0

Response Number 8
Name: donever
Date: February 20, 2009 at 17:46:38 Pacific
Reply:

thank for the advice klint. I figure it out. the solution is to move the loop like this and some math problem.

strInputComputerSpeed = Me.txtInput.Text

If IsNumeric(strInputComputerSpeed) Then
decInputComputerSpeed = Convert.ToDecimal(strInputComputerSpeed)
If decInputComputerSpeed > 0 And decInputComputerSpeed < 11 Then

Do Until decYear > 15
dectotalComputerSpeed = decInputComputerSpeed + decInputComputerSpeed
Me.lstDisplay.Items.Add("After " & decYear & " years, your computer speed will reach " & decTotalComputerSpeed & " GHz")

decYear += 1
decInputComputerSpeed *= 2

End If
End If
Loop


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Moore's law

the purpose of html documents www.computing.net/answers/programming/the-purpose-of-html-documents/7756.html

RealBASIC good for a non/new progra www.computing.net/answers/programming/realbasic-good-for-a-nonnew-progra/8995.html

Batch Line Variables www.computing.net/answers/programming/batch-line-variables/14353.html