Click here to Skip to main content
15,887,596 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Comparing Two Values to get the percentage increase? Pin
Robert.C.Cartaino20-Aug-08 5:12
Robert.C.Cartaino20-Aug-08 5:12 
GeneralRe: Comparing Two Values to get the percentage increase? Pin
Ian Uy20-Aug-08 5:29
Ian Uy20-Aug-08 5:29 
GeneralRe: Comparing Two Values to get the percentage increase? Pin
Robert.C.Cartaino20-Aug-08 11:26
Robert.C.Cartaino20-Aug-08 11:26 
GeneralRe: Comparing Two Values to get the percentage increase? Pin
Member 419459320-Aug-08 12:53
Member 419459320-Aug-08 12:53 
GeneralRe: Comparing Two Values to get the percentage increase? Pin
Ian Uy21-Aug-08 0:54
Ian Uy21-Aug-08 0:54 
GeneralRe: Comparing Two Values to get the percentage increase? Pin
cp987620-Aug-08 14:08
cp987620-Aug-08 14:08 
GeneralRe: Comparing Two Values to get the percentage increase? Pin
Roger Wright21-Aug-08 6:39
professionalRoger Wright21-Aug-08 6:39 
GeneralRe: Comparing Two Values to get the percentage increase? Pin
Member 419459323-Aug-08 6:18
Member 419459323-Aug-08 6:18 
Roger Wright wrote:
You're still going to have a hell of a time getting a computer to calculate a number that larg


I beg to differ, it does not take that long. I made the calculations (I am only reporting the digit count of the various values, but I can report the actual values if desired):

14.984 msec to calculate (14,984 seconds for 1000 loops).

Chars in 10^56 = 57
Chars in 136*10^56 (=V1) = 63

Chars in 10^19707 = 19708
Chars in 236*10^19707 (=V2) = 19714

Chars in (V2-V1) = 19714
Chars in quotient of (V2-V1)/V1 = 19652
Chars in remainder of (V2-V1)/V1 = 63

Chars in quotient of V2/V1 = 19652
Chars in remainder of V2/V1 = 63

Dave Augustine.
Questionprogram for TREND Pin
DineshKumarSinha18-Aug-08 1:45
DineshKumarSinha18-Aug-08 1:45 
AnswerRe: program for TREND Pin
CPallini18-Aug-08 2:01
mveCPallini18-Aug-08 2:01 
QuestionAlgorithm Pin
SatyaVas14-Aug-08 21:31
SatyaVas14-Aug-08 21:31 
AnswerRe: Algorithm Pin
Stephen Hewitt14-Aug-08 21:54
Stephen Hewitt14-Aug-08 21:54 
GeneralRe: Algorithm Pin
SatyaVas15-Aug-08 3:04
SatyaVas15-Aug-08 3:04 
Questionazimuth formula Pin
winburn12-Aug-08 21:39
winburn12-Aug-08 21:39 
AnswerRe: azimuth formula Pin
lar3ry13-Aug-08 6:16
lar3ry13-Aug-08 6:16 
QuestionBig Oh Computation Pin
Ian Uy12-Aug-08 6:49
Ian Uy12-Aug-08 6:49 
AnswerRe: Big Oh Computation Pin
Jason Lepack (LeppyR64)12-Aug-08 8:17
Jason Lepack (LeppyR64)12-Aug-08 8:17 
GeneralRe: Big Oh Computation Pin
Ian Uy12-Aug-08 8:31
Ian Uy12-Aug-08 8:31 
GeneralRe: Big Oh Computation Pin
Jason Lepack (LeppyR64)12-Aug-08 8:35
Jason Lepack (LeppyR64)12-Aug-08 8:35 
GeneralRe: Big Oh Computation Pin
Ian Uy12-Aug-08 8:40
Ian Uy12-Aug-08 8:40 
GeneralRe: Big Oh Computation Pin
Jason Lepack (LeppyR64)12-Aug-08 8:42
Jason Lepack (LeppyR64)12-Aug-08 8:42 
GeneralRe: Big Oh Computation Pin
Ian Uy12-Aug-08 8:52
Ian Uy12-Aug-08 8:52 
GeneralRe: Big Oh Computation Pin
Jason Lepack (LeppyR64)12-Aug-08 8:55
Jason Lepack (LeppyR64)12-Aug-08 8:55 
GeneralRe: Big Oh Computation Pin
Ian Uy12-Aug-08 8:57
Ian Uy12-Aug-08 8:57 
GeneralRe: Big Oh Computation Pin
Jason Lepack (LeppyR64)12-Aug-08 9:01
Jason Lepack (LeppyR64)12-Aug-08 9:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.