12,999,744 members (42,510 online)

# Algorithms

 logic of prob function in ms excel sumit703425-Jun-08 0:40 sumit7034 25-Jun-08 0:40
 Factorials Ian Uy24-Jun-08 8:17 Ian Uy 24-Jun-08 8:17
 Re: Factorials Tim Craig24-Jun-08 10:29 Tim Craig 24-Jun-08 10:29
 Re: Factorials Ian Uy25-Jun-08 6:32 Ian Uy 25-Jun-08 6:32
 Re: Factorials Tim Craig25-Jun-08 8:55 Tim Craig 25-Jun-08 8:55
 Re: Factorials Luc Pattyn25-Jun-08 11:01 Luc Pattyn 25-Jun-08 11:01
 Re: Factorials Tim Craig25-Jun-08 21:06 Tim Craig 25-Jun-08 21:06
 Re: Factorials cp987624-Jun-08 12:33 cp9876 24-Jun-08 12:33
 Re: Factorials Matthew Butler24-Jun-08 12:38 Matthew Butler 24-Jun-08 12:38
 Re: Factorials cp987624-Jun-08 14:05 cp9876 24-Jun-08 14:05
 Re: Factorials Luc Pattyn24-Jun-08 15:02 Luc Pattyn 24-Jun-08 15:02
 Re: Factorials cp987624-Jun-08 20:09 cp9876 24-Jun-08 20:09
 Re: Factorials Luc Pattyn24-Jun-08 23:53 Luc Pattyn 24-Jun-08 23:53
 Re: Factorials cp987625-Jun-08 2:27 cp9876 25-Jun-08 2:27
 Luc Pattyn wrote:countN tells me how many factors of n! end on digit N OK now I see what you are doing. I'm sure you have some very clever reason for this, but it is not clear to me why you do ```count5 += count10; if (count5 != 0) { result = (result * rightmostNonzeroInFactorial(count5)) % 10; count2 -= count5; }``` and not what I would expect: ```if (count5 != 0) { result = (result * rightmostNonzeroInFactorial(count5)) % 10; count2 -= count5; } if (count10 != 0) { result = (result * rightmostNonzeroInFactorial(count10)) % 10; }``` Peter "Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
 Re: Factorials Luc Pattyn25-Jun-08 2:34 Luc Pattyn 25-Jun-08 2:34
 Re: Factorials cp987625-Jun-08 2:40 cp9876 25-Jun-08 2:40
 Re: Factorials tim_one14-Jul-08 8:37 tim_one 14-Jul-08 8:37
 Re: Factorials Arash Partow25-Jun-08 2:14 Arash Partow 25-Jun-08 2:14
 Re: Factorials Ian Uy25-Jun-08 6:26 Ian Uy 25-Jun-08 6:26
 How to determine the next x,y coordinate for a tank in a 2-D game... Edmundisme18-Jun-08 8:35 Edmundisme 18-Jun-08 8:35
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... 73Zeppelin18-Jun-08 11:38 73Zeppelin 18-Jun-08 11:38
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... Matthew Butler18-Jun-08 11:44 Matthew Butler 18-Jun-08 11:44
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... 73Zeppelin18-Jun-08 22:00 73Zeppelin 18-Jun-08 22:00
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... Edmundisme18-Jun-08 12:00 Edmundisme 18-Jun-08 12:00
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... Matthew Butler18-Jun-08 11:41 Matthew Butler 18-Jun-08 11:41
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... Edmundisme18-Jun-08 12:01 Edmundisme 18-Jun-08 12:01
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... CPallini18-Jun-08 21:19 CPallini 18-Jun-08 21:19
 Polyline offset algorithm beko16-Jun-08 21:59 beko 16-Jun-08 21:59
 Re: Polyline offset algorithm Alan Balkany17-Jun-08 4:07 Alan Balkany 17-Jun-08 4:07
 Re: Polyline offset algorithm beko17-Jun-08 4:43 beko 17-Jun-08 4:43
 Re: Polyline offset algorithm CPallini17-Jun-08 7:03 CPallini 17-Jun-08 7:03
 Re: Polyline offset algorithm beko17-Jun-08 8:26 beko 17-Jun-08 8:26
 Re: Polyline offset algorithm cp987617-Jun-08 12:10 cp9876 17-Jun-08 12:10
 Re: Polyline offset algorithm Arash Partow18-Jun-08 1:22 Arash Partow 18-Jun-08 1:22
 Re: Polyline offset algorithm beko18-Jun-08 19:55 beko 18-Jun-08 19:55
 What's the period of (cos ax)(sin bx)? sherifffruitfly14-Jun-08 10:00 sherifffruitfly 14-Jun-08 10:00
 Re: What's the period of (cos ax)(sin bx)? cp987614-Jun-08 19:03 cp9876 14-Jun-08 19:03
 Re: What's the period of (cos ax)(sin bx)? MarkBrock15-Jun-08 2:00 MarkBrock 15-Jun-08 2:00
 Re: What's the period of (cos ax)(sin bx)? CPallini15-Jun-08 22:02 CPallini 15-Jun-08 22:02
 Quaternion to Euler ``` Xmen ```11-Jun-08 3:08 ``` Xmen ``` 11-Jun-08 3:08
 Re: Quaternion to Euler cmk11-Jun-08 11:27 cmk 11-Jun-08 11:27
 Re: Quaternion to Euler ``` Xmen ```11-Jun-08 12:48 ``` Xmen ``` 11-Jun-08 12:48
 Re: Quaternion to Euler Mark Churchill12-Jun-08 18:38 Mark Churchill 12-Jun-08 18:38
 Graphical Object drawing algorithms Monty29-Jun-08 2:59 Monty2 9-Jun-08 2:59
 Re: Graphical Object drawing algorithms 73Zeppelin9-Jun-08 3:11 73Zeppelin 9-Jun-08 3:11
 Re: Graphical Object drawing algorithms Monty29-Jun-08 3:24 Monty2 9-Jun-08 3:24
 Re: Graphical Object drawing algorithms 73Zeppelin9-Jun-08 3:37 73Zeppelin 9-Jun-08 3:37
 Re: Graphical Object drawing algorithms Tim Craig9-Jun-08 17:37 Tim Craig 9-Jun-08 17:37
 Re: Graphical Object drawing algorithms Monty29-Jun-08 21:02 Monty2 9-Jun-08 21:02
 Re: Graphical Object drawing algorithms Tim Craig9-Jun-08 21:15 Tim Craig 9-Jun-08 21:15
 Last Visit: 31-Dec-99 18:00     Last Update: 24-Jun-17 14:42 Refresh « Prev1...80818283848586878889 Next »