987 reputation
39
bio website mathematicacookbook.com
location New York
age
visits member for 2 years, 9 months
seen Mar 19 '12 at 6:44

Programmer, Author, Blogger, Lover of Science and Math

Books: Mathematica Cookbook, O'Reilly XSLT Cookbook, O'Reilly


Sep
24
awarded  Autobiographer
Jan
29
awarded  Good Answer
Jan
17
awarded  Yearling
Jun
22
awarded  Nice Answer
Jan
17
awarded  Yearling
Apr
10
awarded  Nice Answer
Jan
28
awarded  Nice Answer
Jan
28
answered Functional style using lazy lists?
Jan
26
awarded  Mortarboard
Jan
26
answered How do you efficiently return all of a List but one element?
Jan
26
answered Does there exist any way to add type annotations?
Jan
26
answered Functions vs. patterns
Jan
26
answered With versus Function
Jan
21
awarded  Teacher
Jan
21
comment Fastest square number test
True, but this does not speed up the sq test per se it is just a faster way to apply the function across a list than Table is. Good idea though!
Jan
21
comment Fastest square number test
The overhead of messaging involved in MatheLink would kill it. Possibly Mathematica 8's ability to load a DLL would help if you used C. But consider if your application really warrants this compared to what I offered below. The speed up you may get is probably not worth the effort.
Jan
21
comment Fastest square number test
Ignore what I said about EvenQ! Need coffee!
Jan
21
comment Fastest square number test
Adding a test for EvenQ gives a slight speed up but not much. If the numbers are very large it probably helps more. Testing for ending in 0,1,4,6,9, or 25 is possible but I have not tried it and seem like overkill.
Jan
21
answered Fastest square number test
Jan
18
awarded  Nice Question