7 May
2013
7 May
'13
1:49 p.m.
a C/C++ version might RUN faster. however, if you take into account the amount of time required to PROGRAM it (in arbitrary precision!), the advantage might go to mathematica. plus, PowersRepresentations[n,k,p] is more general: it gives the distinct representations of the integer n as a sum of k non-negative p^th powers. bob --- Bill Gosper wrote:
------- Yow! In[36]:= tim[Length[PowersRepresentations[31415, 4, 2]]]
During evaluation of In[36]:= 1.875057
Out[36]= 829
Anybody feel like speedbumming this in C? --rwg _______________________________________________ math-fun mailing list math-fun@mailman.xmission.com http://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun